LRESULT _stdcall WndProc(const HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
if (true && ImGui_ImplWin32_WndProcHandler(hwnd, uMsg, wParam, lParam))
return true;
if (openmenu) {
switch (uMsg)
{
case WM_LBUTTONDOWN: case WM_LBUTTONDBLCLK:
case WM_RBUTTONDOWN: case WM_RBUTTONDBLCLK:
case WM_MBUTTONDOWN: case WM_MBUTTONDBLCLK:
case WM_XBUTTONDOWN: case WM_XBUTTONDBLCLK:
case WM_MOUSEWHEEL:
case WM_LBUTTONUP: case WM_RBUTTONUP: case WM_MBUTTONUP:
case WM_XBUTTONUP: case WM_MOUSEMOVE:
return true;
}
}
return CallWindowProc(oWndProc, hwnd, uMsg, wParam, lParam);
}