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 add a menu item to the popup menu of any CEdit?

Can I add a menu item to the popup menu of any CEdit?

Scheduled Pinned Locked Moved C / C++ / MFC
c++comhelpquestiondiscussion
8 Posts 3 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.
  • T Offline
    T Offline
    ThatsAlok
    wrote on last edited by
    #1

    Hi All,    I just in between of a project.. i need to add some menuitem in the default cut,copy,paste menu.. but problem is that i am not able to get Handle to the Menu so that.. i can add my new sub item...    Could someone give me some pointer to solve this problem.. in brief i want to extend the default Right Click Cut,Copy,Paste menu which come when you right click on any EDIT Box in unmanaged VC++

    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

    cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You

    H J 2 Replies Last reply
    0
    • T ThatsAlok

      Hi All,    I just in between of a project.. i need to add some menuitem in the default cut,copy,paste menu.. but problem is that i am not able to get Handle to the Menu so that.. i can add my new sub item...    Could someone give me some pointer to solve this problem.. in brief i want to extend the default Right Click Cut,Copy,Paste menu which come when you right click on any EDIT Box in unmanaged VC++

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      I know your problem and I think I saw an example that insert items to right click on editbox but i dont know its on www.codeproject.com or www.codeguru.com I search for it if I found I reply to you :)


      WhiteSky


      T 1 Reply Last reply
      0
      • H Hamid Taebi

        I know your problem and I think I saw an example that insert items to right click on editbox but i dont know its on www.codeproject.com or www.codeguru.com I search for it if I found I reply to you :)


        WhiteSky


        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        WhiteSky wrote:

        but i dont know its on www.codeproject.com or www.codeguru.com I search for it if I found I reply to you :)

        my search is't fruitfull today, might be yours:)

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You

        H 1 Reply Last reply
        0
        • T ThatsAlok

          Hi All,    I just in between of a project.. i need to add some menuitem in the default cut,copy,paste menu.. but problem is that i am not able to get Handle to the Menu so that.. i can add my new sub item...    Could someone give me some pointer to solve this problem.. in brief i want to extend the default Right Click Cut,Copy,Paste menu which come when you right click on any EDIT Box in unmanaged VC++

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You

          J Offline
          J Offline
          James R Twine
          wrote on last edited by
          #4

          I think that you will have to override the right-click/WM_CONTEXTMENU and provide your own.  I do not think it is possible to directly modify the the edit control's menu because I think that menu is built-into the edit control and is a standard feature of Win32 (ever since Win2K or Win9x, I believe).    A global hook can simulate a modification to the shared menu...    Peace!

          -=- James


          If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
          Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
          DeleteFXPFiles & CheckFavorites (Please rate this post!)

          T 1 Reply Last reply
          0
          • J James R Twine

            I think that you will have to override the right-click/WM_CONTEXTMENU and provide your own.  I do not think it is possible to directly modify the the edit control's menu because I think that menu is built-into the edit control and is a standard feature of Win32 (ever since Win2K or Win9x, I believe).    A global hook can simulate a modification to the shared menu...    Peace!

            -=- James


            If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
            Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
            DeleteFXPFiles & CheckFavorites (Please rate this post!)

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            James R. Twine wrote:

            I think that menu is built-into the edit control and is a standard feature of Win32 (ever since Win2K or Win9x, I believe).

            I tried that, but no use?

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You

            1 Reply Last reply
            0
            • T ThatsAlok

              WhiteSky wrote:

              but i dont know its on www.codeproject.com or www.codeguru.com I search for it if I found I reply to you :)

              my search is't fruitfull today, might be yours:)

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              How to modify a CEdit context menu[^]By Mr PJ Arends.


              WhiteSky


              T 1 Reply Last reply
              0
              • H Hamid Taebi

                How to modify a CEdit context menu[^]By Mr PJ Arends.


                WhiteSky


                T Offline
                T Offline
                ThatsAlok
                wrote on last edited by
                #7

                WhiteSky wrote:

                How to modify a CEdit context menu[^]By Mr PJ Arends.

                thanks hamid!.. that i am looking for.. thanks a ton!

                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You

                H 1 Reply Last reply
                0
                • T ThatsAlok

                  WhiteSky wrote:

                  How to modify a CEdit context menu[^]By Mr PJ Arends.

                  thanks hamid!.. that i am looking for.. thanks a ton!

                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                  cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief And You

                  H Offline
                  H Offline
                  Hamid Taebi
                  wrote on last edited by
                  #8

                  I glad that your problem solve:-D


                  WhiteSky


                  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