Maximize dialog based app on startup
-
Hi, I need a proper way of keeping a window maximized all the time. On startup its quite easy, I just call: ShowWindow(SW_SHOWMAXIMIZED); But the problem is if the user minimizes the window and then reopens it, then it wont be maximized again. Thank you for your help Mario
-
Hi, I need a proper way of keeping a window maximized all the time. On startup its quite easy, I just call: ShowWindow(SW_SHOWMAXIMIZED); But the problem is if the user minimizes the window and then reopens it, then it wont be maximized again. Thank you for your help Mario
in the oninitdialog resize the window using setwindowpos(...).
-
Hi, I need a proper way of keeping a window maximized all the time. On startup its quite easy, I just call: ShowWindow(SW_SHOWMAXIMIZED); But the problem is if the user minimizes the window and then reopens it, then it wont be maximized again. Thank you for your help Mario
ok you can use following code buddy add window handller WM_SIZE ok void OnSize( UINT nType, int cx, int cy ){ if(nType==SIZE_MINIMIZED) { }else { this->ShowWindow(SW_SHOW_MAXIMIZED); } } ok that very simple:) Alok Gupta visit me at http://alok.stormpages.com