Code: Select all
while( (wnd=::GetWindow(mf->m_hWndClient, GW_CHILD)) != NULL) {
if(wnd == wnd2)
Sleep(100);
else {
::PostMessage(wnd, WM_CLOSE, 0, 0);
wnd2 = wnd;
}
}
Moderator: Moderators
Code: Select all
while( (wnd=::GetWindow(mf->m_hWndClient, GW_CHILD)) != NULL) {
if(wnd == wnd2)
Sleep(100);
else {
::PostMessage(wnd, WM_CLOSE, 0, 0);
wnd2 = wnd;
}
}