Click here to Skip to main content
15,918,617 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Valid Pointer ?? Pin
David Crow29-Sep-03 8:53
David Crow29-Sep-03 8:53 
AnswerRe: Valid Pointer ?? Pin
igor196029-Sep-03 13:06
igor196029-Sep-03 13:06 
AnswerRe: Valid Pointer ?? Pin
Michael Dunn29-Sep-03 16:33
sitebuilderMichael Dunn29-Sep-03 16:33 
GeneralVisual Assebmler Pin
Stefak29-Sep-03 7:17
Stefak29-Sep-03 7:17 
GeneralDirectShow with MFC Pin
juryu29-Sep-03 7:09
juryu29-Sep-03 7:09 
GeneralRe: DirectShow with MFC Pin
Ravi Bhavnani29-Sep-03 8:42
professionalRavi Bhavnani29-Sep-03 8:42 
GeneralJPEG2000 Pin
gicio29-Sep-03 7:00
gicio29-Sep-03 7:00 
QuestionInternet Explorer Context Menu? Pin
MKlucher29-Sep-03 6:27
MKlucher29-Sep-03 6:27 
AnswerRe: Internet Explorer Context Menu? Pin
Neville Franks29-Sep-03 11:00
Neville Franks29-Sep-03 11:00 
AnswerRe: Internet Explorer Context Menu? Pin
J. Dunlap29-Sep-03 11:49
J. Dunlap29-Sep-03 11:49 
GeneralRe: Internet Explorer Context Menu? Pin
MKlucher29-Sep-03 19:49
MKlucher29-Sep-03 19:49 
GeneralInheriting existing dialogs Pin
PaulUK0129-Sep-03 6:22
PaulUK0129-Sep-03 6:22 
GeneralHough Transform implementation Pin
lipkaj29-Sep-03 5:36
lipkaj29-Sep-03 5:36 
GeneralCustom OnSize handling Pin
Terry O'Nolley29-Sep-03 4:46
Terry O'Nolley29-Sep-03 4:46 
I have an app that is finished except for the aesthetics associated with my window resizing.

I need the windows size to be no smaller than a certain dimension and I need the height and width to always be a certain ratio.

I have built an OnSize handler, but it doesn't stop the window from resizing.

I have also tried using the WINDOWPLACEMENT structure and manually changing the values in that structure in response to the cx and cy passed to my OnSize handler, but it doesn't prevent all of my controls from resizing as the user continues to drag the window border.

How do I intercept the Window's resizing before the resize actually occurs so I can prevent the window from being resized?










GeneralRe: Custom OnSize handling Pin
David Crow29-Sep-03 4:57
David Crow29-Sep-03 4:57 
GeneralRe: Custom OnSize handling Pin
Terry O'Nolley29-Sep-03 5:22
Terry O'Nolley29-Sep-03 5:22 
GeneralRe: Custom OnSize handling Pin
David Crow29-Sep-03 5:27
David Crow29-Sep-03 5:27 
GeneralRe: Custom OnSize handling Pin
Terry O'Nolley29-Sep-03 6:08
Terry O'Nolley29-Sep-03 6:08 
GeneralRe: Custom OnSize handling Pin
David Crow29-Sep-03 6:18
David Crow29-Sep-03 6:18 
GeneralRe: Custom OnSize handling Pin
Terry O'Nolley29-Sep-03 12:26
Terry O'Nolley29-Sep-03 12:26 
GeneralRe: Custom OnSize handling Pin
Chris Meech29-Sep-03 6:22
Chris Meech29-Sep-03 6:22 
GeneralRe: Custom OnSize handling Pin
Terry O'Nolley29-Sep-03 12:27
Terry O'Nolley29-Sep-03 12:27 
GeneralRe: Custom OnSize handling Pin
Anonymous29-Sep-03 5:07
Anonymous29-Sep-03 5:07 
GeneralRe: Custom OnSize handling Pin
Terry O'Nolley29-Sep-03 5:12
Terry O'Nolley29-Sep-03 5:12 
GeneralRe: Custom OnSize handling Pin
Anonymous29-Sep-03 5:22
Anonymous29-Sep-03 5: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.