Thread: Double click for context menu?

  1. #1
    Registered User mepaco's Avatar
    Join Date
    Aug 2002
    Posts
    47

    Double click for context menu?

    Okay, I have an MFC - Windows Explorer based app and I want to add context menus. I created the Menu resource and added the menu items. I used the class Wizard to add handlers for the menu commands and added a handler for WM_RBUTTONUP to display the context menu. It works, except it only displays the menu if you double click with the right mouse button. If you single click the right mouse button the handler doesn't get called. Any ideas?

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    One solution is to instantiate the context menu on right button down (single).

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 04:09 AM
  2. C++ to C Conversion
    By dicon in forum C Programming
    Replies: 7
    Last Post: 06-11-2007, 08:38 PM
  3. Conversion From C++ To C
    By dicon in forum C++ Programming
    Replies: 2
    Last Post: 06-10-2007, 02:54 PM
  4. Certain functions
    By Lurker in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2003, 01:26 AM