long CALLBACK Hooks::hkWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
/* cMenu::m_bIsVisible() тут проверка открыто ли твое меню */
if (cMenu::m_bIsVisible() && ImGui_ImplWin32_WndProcHandler(hWnd, uMsg, wParam, lParam))
return 1L;
/* Return input controls to the game */
return CallWindowProc(InputSystem::m_OldWndProc, hWnd, uMsg, wParam, lParam);
}