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

C / C++ / MFC

 
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 
GeneralRe: Custom OnSize handling Pin
Terry O'Nolley29-Sep-03 5:26
Terry O'Nolley29-Sep-03 5:26 
GeneralRe: Custom OnSize handling Pin
Iain Clarke, Warrior Programmer29-Sep-03 5:57
Iain Clarke, Warrior Programmer29-Sep-03 5:57 
GeneralOutput Pin
sardinka29-Sep-03 4:45
sardinka29-Sep-03 4:45 
GeneralRe: Output Pin
David Crow29-Sep-03 4:58
David Crow29-Sep-03 4:58 
GeneralRe: Output Pin
Terry O'Nolley29-Sep-03 5:04
Terry O'Nolley29-Sep-03 5:04 
GeneralRe: Output Pin
sardinka29-Sep-03 6:25
sardinka29-Sep-03 6:25 

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.