MCPcopy Create free account
hub / github.com/WinMerge/winmerge / PostCommandMessage

Function PostCommandMessage

Src/MouseHook.cpp:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

MouseProcMethod · 0.85

Calls 1

IsWindowDialogFunction · 0.85

Tested by

no test coverage detected