CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    MA, USA
    Posts
    2

    How do I simulate a mouse click.

    Hi All,

    I am cleating a floating popup menu. The problem is after I select the menu item and the action occurs.
    The next time I click on something like a list box, button or other window, nothing happens. I have to click
    twice before the action take place. I am using VC++ 6.0.

    Any ideas?

    rjm12


  2. #2
    Join Date
    Apr 1999
    Posts
    53

    Re: How do I simulate a mouse click.

    It may be that the first mouse click (off the popup menu) is just setting the focus to the window you are clicking on; the next mouse click actually then performs the action.

    Maybe what you need to do is, in your popup menu, set the window focus back to its parent window after it performs an action.

    Yours,
    Wes Rogers


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