开发者

Returning HTTRANSPARENT for WM_NCHITTEST in a plugin

开发者 https://www.devze.com 2023-04-04 08:29 出处:网络
How can I get a plugin to make the program have my clicks go though the window? I heard I would have to return HTTRANSPARENT for WM_NCHITTEST. Is it possible to do that with hooking? This is as far as

How can I get a plugin to make the program have my clicks go though the window? I heard I would have to return HTTRANSPARENT for WM_NCHITTEST. Is it possible to do that with hooking? This is as far as I have got in my hook:

LRESULT CALLB开发者_Python百科ACK myHook(int nCode, WPARAM wParam, LPARAM lParam) 
{
    CWPSTRUCT* pwp = (CWPSTRUCT*)lParam;

    if (nCode >= 0)
    {
    if (pwp->message==WM_NCHITTEST)
        MessageBox(NULL, TEXT("NCHITTEST has been receieved."), TEXT("NCHITTEST"), MB_ICONINFORMATION);                
    }

    return CallNextHookEx(hHook,nCode,wParam,lParam);
}
0

精彩评论

暂无评论...
验证码 换一张
取 消