CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2004
    Posts
    155

    Post What happen when double click

    Hello

    I wann know that what has happen when I double click a word in any word processor. I will appreciate for your help.

  2. #2
    Join Date
    Nov 2004
    Posts
    155

    Talking Re: What happen when double click

    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

  3. #3
    Join Date
    Feb 2002
    Posts
    4,640

    Re: What happen when double click

    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!

    Viggy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured