Newsgroup: comp.lang.c++
Subject: WM_CLOSE in child window procedure problems
From: ProDev7 <chenou7@...>
Date: Sun, 27 Apr 2014 09:35:08 -0500
hello everybody. I developped an mdi application everything is ok. but in the child window procedure if I handle WM_CLOSE:
if I maximize a child window then close it form its close box icon it'll be destroyed normally but its icon and its close box and minimize and maximize boxes are still there. if I don't handle WM_CLOSE everything is ok.
what's wrong with WM_CLOSE in child window procedure?
LRESULT callback ChildWinProc(HWND hWnd,UINT msg,WPARAM wParam,lParam)
{
//case WM_CLOSE:
// DestroyWindow(hWnd);
break;
default:
return DefMDIChildProc(hWnd,msg,wParam,lParam);
}
if I Uncomment the above lines the problem starts if I maximize the child window and then closing it
Subject: WM_CLOSE in child window procedure problems
From: ProDev7 <chenou7@...>
Date: Sun, 27 Apr 2014 09:35:08 -0500
hello everybody. I developped an mdi application everything is ok. but in the child window procedure if I handle WM_CLOSE:
if I maximize a child window then close it form its close box icon it'll be destroyed normally but its icon and its close box and minimize and maximize boxes are still there. if I don't handle WM_CLOSE everything is ok.
what's wrong with WM_CLOSE in child window procedure?
LRESULT callback ChildWinProc(HWND hWnd,UINT msg,WPARAM wParam,lParam)
{
//case WM_CLOSE:
// DestroyWindow(hWnd);
break;
default:
return DefMDIChildProc(hWnd,msg,wParam,lParam);
}
if I Uncomment the above lines the problem starts if I maximize the child window and then closing it
via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://ift.tt/1h4H2yi
View all the progranning help forums at:
http://ift.tt/1dP9txN
No comments:
Post a Comment