在插件中为 WM_NCHITTEST 返回 HTTRANSPARENT
我怎样才能获得一个插件来使程序让我的点击穿过窗口?我听说我必须为 WM_NCHITTEST 返回 HTTRANSPARENT。是否可以通过挂钩来做到这一点?这是我所掌握的:
LRESULT CALLBACK 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);
}
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 CALLBACK 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);
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论