How to minimize & Maximize a Dialog
-
How i can minimise a Dialog on a button Click.
-
How i can minimise a Dialog on a button Click.
ShowWindow(SW_MINIMIZE);
_**
**_
whitesky
-
How i can minimise a Dialog on a button Click.
ShowWindow(SW_MINIMIZE); Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_
-
ShowWindow(SW_MINIMIZE);
_**
**_
whitesky
Thaks, but it isnot working in the WenCE.
-
Thaks, but it isnot working in the WenCE.
Not working?? Did you pass the handle? or did you use
this->
pointer? what's error message?
--[:jig:]-- [My Current Status]
-
Not working?? Did you pass the handle? or did you use
this->
pointer? what's error message?
--[:jig:]-- [My Current Status]
I had used if(m_bMinimize) CMyDlg::ShowWindow(SW_MINIMIZE); ; ; ; ; ; CMyDlg::ShowWindow(SW_SHOWMAXIMIZED); This code is written in a button click of my Dialog. The Dialog is minimised but it does not maximise again. This is working fine in VC++ but does not working in WinCE
-
I had used if(m_bMinimize) CMyDlg::ShowWindow(SW_MINIMIZE); ; ; ; ; ; CMyDlg::ShowWindow(SW_SHOWMAXIMIZED); This code is written in a button click of my Dialog. The Dialog is minimised but it does not maximise again. This is working fine in VC++ but does not working in WinCE
Hey I'm sorry!! CE doesn't support
SW_SHOWMAXIMIZED
But I think you can stil do it with::MoveWindow
instead. Move it to the size of the screen coordinates :cool:. And always have this in your hand... The Golden Sword^
--[:jig:]-- [My Current Status]
-
How i can minimise a Dialog on a button Click.
#define MENU_HEIGHT 26 RECT rc; //get window size GetWindowRect(hWnd, &rc); SHFullScreen(hWnd, SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON); ShowWindow(hwndCB, SW_HIDE); MoveWindow(hWnd, rc.left, rc.top-MENU_HEIGHT, rc.right, rc.bottom+MENU_HEIGHT, TRUE);
Click Here for more^ Enjoy!
--[:jig:]-- [My Current Status]
-
I had used if(m_bMinimize) CMyDlg::ShowWindow(SW_MINIMIZE); ; ; ; ; ; CMyDlg::ShowWindow(SW_SHOWMAXIMIZED); This code is written in a button click of my Dialog. The Dialog is minimised but it does not maximise again. This is working fine in VC++ but does not working in WinCE
yes you can use MoveWindow or SetWindowPos instead this function_**
**_
whitesky