Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Right click menu and sending messages

Right click menu and sending messages

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasedebuggingtutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lobanovski
    wrote on last edited by
    #1

    hi all, i'm ashamed to ask such questions, but i can't even figure it out how i can form a query to search for this on the web site or the internet... 1. i need to mimic standard menu items from user-defined ones... let me explain, MFC - standard MDI app (made by the wizard) has few standard menu items (File->Open... for example). Now i made a dilog, which has a button in it, and if the user clcks that button, the handler must act like it's a standard CDocument::OnOpenDocument(...) method. I know, I can construct CFileDialog myself, show it to the user and call CMyDoc::OnOpenDocument(string)... but this will defeat Doc-View approach... What can i do? Just send the message ID_FILE_OPEN... to what window than?? 2. right button click and a popup menu appears. what's it name? where can read more about it? thanks for your time! alex debug - is my life style

    M 1 Reply Last reply
    0
    • L lobanovski

      hi all, i'm ashamed to ask such questions, but i can't even figure it out how i can form a query to search for this on the web site or the internet... 1. i need to mimic standard menu items from user-defined ones... let me explain, MFC - standard MDI app (made by the wizard) has few standard menu items (File->Open... for example). Now i made a dilog, which has a button in it, and if the user clcks that button, the handler must act like it's a standard CDocument::OnOpenDocument(...) method. I know, I can construct CFileDialog myself, show it to the user and call CMyDoc::OnOpenDocument(string)... but this will defeat Doc-View approach... What can i do? Just send the message ID_FILE_OPEN... to what window than?? 2. right button click and a popup menu appears. what's it name? where can read more about it? thanks for your time! alex debug - is my life style

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      lobanovski wrote: 2. right button click and a popup menu appears. what's it name? where can read more about it? It is called a "context menu". MSDN and CodeProject have information on them. Michael But you know when the truth is told, That you can get what you want or you can just get old, Your're going to kick off before you even get halfway through. When will you realise... Vienna waits for you? - "The Stranger," Billy Joel

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups