|
|
От: | Аноним | |
| Дата: | 08.07.09 10:10 | ||
| Оценка: | |||
while(GetMessage(&msg, NULL, 0x00, 0x00) != -1)
{
if(msg.message == WM_QUIT)
{
break;
}
hwnd = (HWND) SendMessage(hwndMDIClient, WM_MDIGETACTIVE, 0, 0L);
if(!TranslateMDISysAccel(hwndMDIClient, &msg)
&& !TranslateAccelerator(g_hwnd, hAccelTable, &msg))
{
if(!hwnd || !IsWindow(hwnd) || !IsDialogMessage(hwnd, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
}