Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
can anyone help me out with this one, I'd really appreciate it. I want to minimize my application when I click on the cancel button on my propery sheet. The code below works ok in that the application is minimized. However I can't get it maximized again by clicking on it in the task bar, or right clicking it.
Thanks for yout help
Martin.
BOOL VehicleSheet::OnCommand(WPARAM wParam, LPARAM lParam)
{
if (LOWORD(wParam) == IDCANCEL)
{
CWinApp* pTheApp = AfxGetApp( );
CWnd* pMainWindow = pTheApp->GetMainWnd();
pMainWindow->ShowWindow(SW_MINIMIZE);
return true;
}
can anyone help me out with this one, I'd really appreciate it. I want to minimize my application when I click on the cancel button on my propery sheet. The code below works ok in that the application is minimized. However I can't get it maximized again by clicking on it in the task bar, or right clicking it.
Thanks for yout help
Martin.
BOOL VehicleSheet::OnCommand(WPARAM wParam, LPARAM lParam)
{
if (LOWORD(wParam) == IDCANCEL)
{
CWinApp* pTheApp = AfxGetApp( );
CWnd* pMainWindow = pTheApp->GetMainWnd();
pMainWindow->ShowWindow(SW_MINIMIZE);
return true;
}