Click here to Skip to main content
16,005,389 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondebug Version crashing Pin
Jacqi1237-Sep-06 1:17
Jacqi1237-Sep-06 1:17 
AnswerRe: debug Version crashing Pin
Cedric Moonen7-Sep-06 1:22
Cedric Moonen7-Sep-06 1:22 
QuestionRe: debug Version crashing Pin
Rinu_Raj7-Sep-06 1:23
Rinu_Raj7-Sep-06 1:23 
AnswerRe: debug Version crashing Pin
Jacqi1237-Sep-06 1:30
Jacqi1237-Sep-06 1:30 
GeneralRe: debug Version crashing [modified] Pin
prasad_som7-Sep-06 1:52
prasad_som7-Sep-06 1:52 
AnswerRe: debug Version crashing Pin
David Crow7-Sep-06 3:28
David Crow7-Sep-06 3:28 
AnswerRe: debug Version crashing Pin
Hamid_RT8-Sep-06 7:10
Hamid_RT8-Sep-06 7:10 
QuestionHow to restrict user to reduce size of dialog box Pin
BlrBoy7-Sep-06 1:00
BlrBoy7-Sep-06 1:00 
Hello all,

I want to restrict user not to reduce the size of dialog within limits.

My dialog box is created in resource editor and class is derived from CDialog.
I made the Border property "resizable" and it allows the user to resize the dialog.

I want to restrict the user not to reduce the size than certain limit. I write the code in OnSize handler as below

void CMyDlg::OnSize(UINT nType, int cx, int cy)<br />
{<br />
	if (cx < 650)<br />
		cx = 650;<br />
<br />
	if (cy < 270)<br />
		cy = 270;<br />
<br />
	CDialog::OnSize(nType, cx, cy);<br />
<br />
         // resize all controls present in the dialog box <br />
}


But the dialog still can be reduced less than width 650 and height 270.

I tried to put "return" if the cx is < 650 and cy < 270. but user can still reduce the size.

Can any one suggest how to restict the user?

Thanks for your time
Ravi
AnswerRe: How to restrict user to reduce size of dialog box Pin
Sarath C7-Sep-06 1:06
Sarath C7-Sep-06 1:06 
AnswerRe: How to restrict user to reduce size of dialog box Pin
David Crow7-Sep-06 3:30
David Crow7-Sep-06 3:30 
QuestionLinker error 2001 very urgent Pin
uday kiran janaswamy7-Sep-06 0:57
uday kiran janaswamy7-Sep-06 0:57 
AnswerRe: Linker error 2001 very urgent Pin
Aamir Butt7-Sep-06 0:58
Aamir Butt7-Sep-06 0:58 
AnswerRe: Linker error 2001 very urgent Pin
Programm3r7-Sep-06 1:24
Programm3r7-Sep-06 1:24 
GeneralFile Close Notification Pin
Aamir Butt7-Sep-06 0:42
Aamir Butt7-Sep-06 0:42 
GeneralRe: File Close Notification Pin
Rinu_Raj7-Sep-06 1:04
Rinu_Raj7-Sep-06 1:04 
GeneralRe: File Close Notification Pin
Aamir Butt7-Sep-06 1:11
Aamir Butt7-Sep-06 1:11 
GeneralRe: File Close Notification Pin
Aamir Butt7-Sep-06 1:17
Aamir Butt7-Sep-06 1:17 
AnswerRe: File Close Notification Pin
Rinu_Raj7-Sep-06 1:21
Rinu_Raj7-Sep-06 1:21 
GeneralRe: File Close Notification Pin
Aamir Butt7-Sep-06 1:36
Aamir Butt7-Sep-06 1:36 
GeneralRe: File Close Notification Pin
David Crow7-Sep-06 3:36
David Crow7-Sep-06 3:36 
AnswerRe: File Close Notification Pin
Rinu_Raj7-Sep-06 1:27
Rinu_Raj7-Sep-06 1:27 
GeneralRe: File Close Notification Pin
Hamid_RT8-Sep-06 7:10
Hamid_RT8-Sep-06 7:10 
Questiondll debug Pin
_tasleem7-Sep-06 0:33
_tasleem7-Sep-06 0:33 
AnswerRe: dll debug Pin
Rinu_Raj7-Sep-06 0:39
Rinu_Raj7-Sep-06 0:39 
AnswerRe: dll debug[Modified] Pin
prasad_som7-Sep-06 0:40
prasad_som7-Sep-06 0:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.