Click here to Skip to main content
15,880,956 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
When I create a button or list box in a dockable pane (CDockablePane) I've no problem using the control.
But when I create a static, WM_LBUTTONDOWN is not sent to it and the pane is dragged instead.
What's the problem and how can I resolve it?
Thanks.
Posted
Updated 8-Nov-10 0:51am
v2
Comments
fjdiewornncalwe 8-Nov-10 7:12am    
Where in the object heirarchy are you trying to consume the WM_LBUTTONDOWN message? Is it at the parent of the CDockablePane or at a child of that object?

Please, do not post the same question on multiple forums: that doesn't increase your chances to get an answer but make people wasting their time answering the same things twice.

Thank you!
 
Share this answer
 
i think that i've got a bit closer to the symptom. in a window when a child window is disabled the click is sent to its parent, even though it's on the child window. i think this is why the dockable pane receives the click. right?
i replaced my custom control with an edit box and this didn't happen again and clicking on the edit control inserted in the dockable pane was sent to the edit control itself. i tried a static text too. it was not disabled, but the click was sent to the dockable pane (parent). i also tried a disabled button. the click was sent to the parent again.
now my question is that how can i make the click be sent to the custom control? what causes the click to be dispatched to the parent window, not the child itself.
in response to ur question, i may say that the custom control is created as a child of the dockable pane.
thx
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900