 |
when
not running in "whole screen mode", RUNit creates a window
at the edge of the screen.
the window is created with the extended style WS_EX_TRANSPARENT,
so you usually don't see much of it.
CreateWindowEx(WS_EX_ACCEPTFILES|WS_EX_TRANSPARENT|WS_EX_TOOLWINDOW,
szAppName, szTitle, WS_POPUP, 0,0, iScreenWidth,1, NULL, NULL, hInstance,
NULL);
so
"detecting" the mouse click is nothing more than processing
the WM_RBUTTONDOWN message in this case.
in
"whole screen mode" RUNit installs a systemwide HOOK to
filter out the WM_RBUTTONDOWN messages of all windows in the system.
SetWindowsHookEx(WH_GETMESSAGE,
GetMsgProc, hInstDll, (DWORD)NULL);
this
leads us to the next question...
|