ok i have a OnParentNotify(), and i want to detect when a child window is destroyed, what am i forgeting that will notify me that my window is closing
Code:
void CMDAPETDlg::OnParentNotify(UINT temp,LPARAM temp1)
{
CDialog::OnParentNotify(temp,temp1);
if(temp == WM_DESTROY)
{
MessageBox("child window is now closing");
}
}