Click here to Skip to main content
15,905,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Changing dialog style Pin
Ernesto D.7-Apr-03 23:10
Ernesto D.7-Apr-03 23:10 
GeneralRe: Changing dialog style Pin
Chopper7-Apr-03 23:16
Chopper7-Apr-03 23:16 
GeneralRe: Changing dialog style Pin
Joan M8-Apr-03 0:21
professionalJoan M8-Apr-03 0:21 
GeneralRe: Changing dialog style Pin
Chopper8-Apr-03 1:04
Chopper8-Apr-03 1:04 
GeneralRe: Changing dialog style Pin
Joan M8-Apr-03 3:16
professionalJoan M8-Apr-03 3:16 
GeneralRe: Changing dialog style Pin
Chopper8-Apr-03 3:22
Chopper8-Apr-03 3:22 
GeneralRe: Changing dialog style Pin
Joan M8-Apr-03 3:25
professionalJoan M8-Apr-03 3:25 
GeneralRe: Changing dialog style Pin
Joan M8-Apr-03 3:51
professionalJoan M8-Apr-03 3:51 
I've found it... it's only a function so I won't e-mail you... hare you have it:

void CDialogResDlg::OnSizing(UINT fwSide, LPRECT pRect) 
{
	if (!this->bAllowResizing)
	{
		// Here you should have calculated the dimensions before the change of the condition and make the resizing accordingly to them...
		if (pRect->bottom - pRect->top != 400) pRect->bottom = pRect->top + 400;
		if (pRect->right - pRect->left != 400) pRect->right = pRect->left + 400;
	}

	CDialog::OnSizing(fwSide, pRect);
}


remember to choose the resizing border in the dialog editor properties...

Hope this helps...
GeneralGetting system font Pin
puzzolino7-Apr-03 21:55
puzzolino7-Apr-03 21:55 
GeneralRe: Getting system font Pin
dysxq8-Apr-03 4:13
dysxq8-Apr-03 4:13 
GeneralMultiple Views in a SDI project Pin
Anonymous7-Apr-03 21:34
Anonymous7-Apr-03 21:34 
GeneralRe: Multiple Views in a SDI project Pin
Cedric Moonen7-Apr-03 21:44
Cedric Moonen7-Apr-03 21:44 
GeneralDevice units to Pixels Pin
Ernesto D.7-Apr-03 21:16
Ernesto D.7-Apr-03 21:16 
GeneralRe: Device units to Pixels Pin
Martyn Pearson7-Apr-03 21:39
Martyn Pearson7-Apr-03 21:39 
GeneralRe: Device units to Pixels Pin
puzzolino7-Apr-03 21:44
puzzolino7-Apr-03 21:44 
GeneralReplace Data in file Pin
Cedric Moonen7-Apr-03 20:36
Cedric Moonen7-Apr-03 20:36 
GeneralRe: Replace Data in file Pin
csc7-Apr-03 21:40
csc7-Apr-03 21:40 
GeneralRe: Replace Data in file Pin
Martyn Pearson7-Apr-03 21:43
Martyn Pearson7-Apr-03 21:43 
GeneralRe: Replace Data in file Pin
Cedric Moonen7-Apr-03 22:07
Cedric Moonen7-Apr-03 22:07 
GeneralFile search problem Pin
RaajaOfSelf7-Apr-03 20:19
RaajaOfSelf7-Apr-03 20:19 
GeneralRe: File search problem Pin
Martyn Pearson7-Apr-03 21:46
Martyn Pearson7-Apr-03 21:46 
GeneralRe: File search problem Pin
csc7-Apr-03 21:57
csc7-Apr-03 21:57 
QuestionHow to get vector single line font as in AutoCAD???How to use it?? Pin
Jon_Hu7-Apr-03 18:49
Jon_Hu7-Apr-03 18:49 
GeneralOpenGL vs. Direct3d Pin
snood7-Apr-03 18:29
snood7-Apr-03 18:29 
GeneralRe: OpenGL vs. Direct3d Pin
puzzolino7-Apr-03 21:22
puzzolino7-Apr-03 21:22 

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.