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. Can i disable CEdit context menu ?

Can i disable CEdit context menu ?

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 3 Posters 1 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
    Le rner
    wrote on last edited by
    #1

    Hi all, Is this possible to disable CEdit context menu ? please tell me ?

    IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

    S D 2 Replies Last reply
    0
    • L Le rner

      Hi all, Is this possible to disable CEdit context menu ? please tell me ?

      IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

      S Offline
      S Offline
      SandipG
      wrote on last edited by
      #2

      Derive a your class from CEdit and handle right button click. Hope it helps.

      Regards, Sandip.

      1 Reply Last reply
      0
      • L Le rner

        Hi all, Is this possible to disable CEdit context menu ? please tell me ?

        IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

        D Offline
        D Offline
        Dy
        wrote on last edited by
        #3

        Yes, you can do that. Derive your class from CEdit, and handle the WM_CONTEXTMENU message. See this[^] MSDN page about WM_CONTEXTMENU. If you only handle the right mouse message as another posted recommended, your user will still be able to get the context menu via the keyboard.

        - Dy

        S 1 Reply Last reply
        0
        • D Dy

          Yes, you can do that. Derive your class from CEdit, and handle the WM_CONTEXTMENU message. See this[^] MSDN page about WM_CONTEXTMENU. If you only handle the right mouse message as another posted recommended, your user will still be able to get the context menu via the keyboard.

          - Dy

          S Offline
          S Offline
          SandipG
          wrote on last edited by
          #4

          Thanks For the info.. :)

          Regards, Sandip.

          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