Minimize button for the application
-
Hi, Dialog box properties are set as below STYLE DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU Problem is with minimize button, Dialog box gets minimized task bar when i press on minimize button but when i press left click of the mouse the application is not restoring back and also when i use alt+tab am not able to restore back the application.Only i can restore by pressing right click of the mouse on the application and select "restore" option. Thanks in advance
-
Hi, Dialog box properties are set as below STYLE DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU Problem is with minimize button, Dialog box gets minimized task bar when i press on minimize button but when i press left click of the mouse the application is not restoring back and also when i use alt+tab am not able to restore back the application.Only i can restore by pressing right click of the mouse on the application and select "restore" option. Thanks in advance
Does this happen with a brand new project (i.e., one that you've added no code to), also?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Does this happen with a brand new project (i.e., one that you've added no code to), also?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Hi, when i tried with single dialog box it is working but when i include another it is not working. This is how i did 1)Create an SDI application (as our project is done using SDI application) 2)2 new dialog boxes 3)On execution first dialog box opens with OK and CANCEL button (minimize is working fine).On pressing OK button second dialog box opens whose mimimize is not working. 4)Code changes which i have made is as below 1) BOOL CTest_minimizebutApp::InitInstance() { CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CTest_minimizebutDoc), RUNTIME_CLASS(CMainFrame), // main SDI frame window RUNTIME_CLASS(CTest_minimizebutView)); dlg.DoModal(); // AddDocTemplate(pDocTemplate); // Parse command line for standard shell commands, DDE, file open CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); } 2) void CmainDialog::OnOK() { // TODO: Add extra validation here dlg1.DoModal(); CDialog::OnOK(); }