• Advertisement
Sign in to follow this  

my treeview doesn't have WM_MOUSEMOVE?

This topic is 3560 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I created a treeview like this:
	hTree=CreateWindowEx(0, WC_TREEVIEW, 0, 
	WS_VISIBLE | WS_CHILD | WS_BORDER | TVS_HASLINES, 
	0, 0, 200, 300, hWnd, NULL, hInstance, NULL); 
I thought that its owner, hWnd, would recieve WM_MOUSEMOVE messages. But it doesnt. How do I get that message? Or should I be getting the message as I thought, but I'm screwing something else up? [Edited by - Funkymunky on April 22, 2008 11:15:00 PM]

Share this post


Link to post
Share on other sites
Advertisement
Control owners don't get the messages of their children, they only get whatever notification messages the control decides it wants to send to the owner. In the case of a tree-view, the notifications are listed here.

However you should be able to subclass the control, if you want. If you do that, your function will receive the control's messages first so you can respond to them however you like.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement