controlling Dialog size on runtime
-
Hi all, Is it Possible to stop the resizing of a Dialog,from inside the "OnSize" event. Depening on the cx,CY values,I would like the dialog to be resized or not. If this is not the right place to the control the dialog size,where should I do it & how? >>OnSize(UINT nType, int cx, int cy) Thanks
-
Hi all, Is it Possible to stop the resizing of a Dialog,from inside the "OnSize" event. Depening on the cx,CY values,I would like the dialog to be resized or not. If this is not the right place to the control the dialog size,where should I do it & how? >>OnSize(UINT nType, int cx, int cy) Thanks
If it is MFC, do not call Base class version of OnSize()(CDialog::OnSize()) method.. " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
Hi all, Is it Possible to stop the resizing of a Dialog,from inside the "OnSize" event. Depening on the cx,CY values,I would like the dialog to be resized or not. If this is not the right place to the control the dialog size,where should I do it & how? >>OnSize(UINT nType, int cx, int cy) Thanks
Pazzuzu wrote: Is it Possible to stop the resizing of a Dialog,from inside the "OnSize" event. Nope! you have to handle
WM_GETMINMAXINFO
for limiting size of the Dialog Box"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
-
Pazzuzu wrote: Is it Possible to stop the resizing of a Dialog,from inside the "OnSize" event. Nope! you have to handle
WM_GETMINMAXINFO
for limiting size of the Dialog Box"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV