minor cool changes
This commit is contained in:
@@ -52,7 +52,7 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance,
|
||||
WNDCLASS wc = { 0 };
|
||||
WCHAR szBuffer[MAX_PATH];
|
||||
RECT rcRoot;
|
||||
POINT ptOffset;
|
||||
POINT ptOffset = { 0 };
|
||||
|
||||
// Initialize the instance
|
||||
hAppInstance = hInstance;
|
||||
|
||||
@@ -176,6 +176,18 @@ LRESULT CALLBACK CmdProc(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||
}
|
||||
|
||||
default:
|
||||
if (GET_WM_COMMAND_ID(wParam, lParam) >= IDM_WINDOW_CHILDSTART)
|
||||
{
|
||||
DefFrameProc(hWnd, hWndMDIClient, 0, wParam, lParam);
|
||||
}
|
||||
else
|
||||
{
|
||||
HWND hChild = (HWND)SendMessage(hWndMDIClient, WM_MDIGETACTIVE, 0, 0);
|
||||
if (hChild)
|
||||
{
|
||||
SendMessage(hChild, WM_COMMAND, wParam, lParam);
|
||||
}
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user