|
-
December 15th, 2010, 09:43 AM
#8
Re: Ctreectrl problem
 Originally Posted by Syslock
Thanks, but does a NM_CLICK simulate an "upclick" ?
I want to place the checkmark at the upclick, not the downclick.
I searched the wine source for a reason why the OnLButtonUp handler goes missing, but couldn't find it:
http://source.winehq.org/source/dlls...l32/treeview.c
The WM_LBUTTONUP is missing cause there is no need for handling this message if no drag-drop operation is allowed. So the message probably was sent to the dialog and not to the tree control.
The NM_CLICK was sent *after* the user clicked to a part of the tree control but not if there is a separate control window or button which has its own message handling. 'clicked' means the button was down and up. If you hold the button there is no click.
I recommend against implementing a behavior that isn't standard. So an action caused by a button click should work immediately for the object that was clicked on, i. e. the object that was pointed to when the button was down.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|