开发者

Win32 doesn't send mouse events to my window, only its parent. why?

开发者 https://www.devze.com 2023-01-05 03:18 出处:网络
I have a window that\'s a CHILD window of another window. For r开发者_StackOverfloweasons beyond me, NC_HITTEST never gets called on it, no mouse events are called for it (but rather reach its parent

I have a window that's a CHILD window of another window. For r开发者_StackOverfloweasons beyond me, NC_HITTEST never gets called on it, no mouse events are called for it (but rather reach its parent window).

Why is that? I want that child window to process his own mouse clicks.


NC_HITTEST is not likely a message you want to be catching for mouse events. You want to be catching WM_MOUSEMOVE, WM_LBUTTONDOWN, etc...

0

精彩评论

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