| 14 | } |
| 15 | |
| 16 | static void PostCommandMessage(WPARAM wParam) |
| 17 | { |
| 18 | HWND hwndTarget = GetForegroundWindow(); |
| 19 | if (IsWindowDialog(hwndTarget)) |
| 20 | return; |
| 21 | PostMessage(hwndTarget, WM_COMMAND, wParam, 0); |
| 22 | } |
| 23 | |
| 24 | LRESULT CALLBACK CMouseHook::MouseProc(int nCode, WPARAM wParam, LPARAM lParam) |
| 25 | { |
no test coverage detected