JasonGenX
JasonGenX

Reputation: 5434

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

I have a window that's a CHILD window of another window. For reasons 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.

Upvotes: 2

Views: 1025

Answers (1)

selbie
selbie

Reputation: 104524

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...

Upvotes: 1

Related Questions