I got a little problem here with my code. I use the ON_WM_MOUSEMOVE message to update a POINT variable that tells me where the cursor is. So when I click on a CTreeView, I use the mouse coordinates to figure out where I just clicked. That works perfectly when I want to pop a menu with a right click. I select the item I'm on using the mouse coordinate and then pop the menu at that same mouse coord. The problem is, the mouse event is not called when a menu is open, so when I got a menu running, and that I want to click to another place, the same menu open again at the same place. This is caused by the window message system that does not call my OnMouseMove() function when a menu is active. Do you guys have any idea how I could open a menu, then open another without having to manually close the one I use with a left click?
Thx in advance
PS : The kind of menu im talking about is the conventional one in windows...when u select a file and click properties, for example.
0 · ·