Hello
I wann know that what has happen when I double click a word in any word processor. I will appreciate for your help.
Printable View
Hello
I wann know that what has happen when I double click a word in any word processor. I will appreciate for your help.
Sorry, my question is not very clear for you. When I double click a word in any word processor it select one word. I wanna know what has happen behind the scene to make a selection
Well, that depends on how the application is written.
If the view is completely written by the developer, then they are either handling the WM_LBUTTONDOWN message and creating their own "double click", or they are handling the WM_LBUTTONDBLCLK message.
Or, they might be using some other control that does this for them (someone else can comment, but there is a "rich text" control that may already provide this functionality).
What you can do is (if you have Microsoft Visual Studio) create a new MDI applciation using the Wizard; make sure your view is derrived from CRichEditView; build it; and step through the code. You can see what happens! :D
Viggy