minor cool changes

This commit is contained in:
freedom
2023-09-07 14:52:41 -06:00
parent 2aa96bc024
commit 349a9a9d0d
2 changed files with 13 additions and 1 deletions

View File

@@ -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;

View File

@@ -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;
}