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. Editbox Right click problem

Editbox Right click problem

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
8 Posts 4 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
    LaHaHa
    wrote on last edited by
    #1

    I have a editbox in my dialog box. When I use right click on the editbox, it will display a menu. I would like to know how to disable it during the program is running? Please help!

    V H 2 Replies Last reply
    0
    • L LaHaHa

      I have a editbox in my dialog box. When I use right click on the editbox, it will display a menu. I would like to know how to disable it during the program is running? Please help!

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      one approach is subclassing CEdit and handle right mouse button down Kuphryn

      L 1 Reply Last reply
      0
      • V valikac

        one approach is subclassing CEdit and handle right mouse button down Kuphryn

        L Offline
        L Offline
        LaHaHa
        wrote on last edited by
        #3

        Could you tell me more detail about this approach? Please help!

        _ 1 Reply Last reply
        0
        • L LaHaHa

          Could you tell me more detail about this approach? Please help!

          _ Offline
          _ Offline
          _AnsHUMAN_
          wrote on last edited by
          #4

          Derive a class from CEdit.(CMyEdit->CEdit). Override the WM_RBUTTON Click. Create an object of CMyEdit . CMyEdit m_MyEdit.(Associate this with the edit control in which you want to show the menu when right button of the mouse is pressed)

          Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

          L 1 Reply Last reply
          0
          • _ _AnsHUMAN_

            Derive a class from CEdit.(CMyEdit->CEdit). Override the WM_RBUTTON Click. Create an object of CMyEdit . CMyEdit m_MyEdit.(Associate this with the edit control in which you want to show the menu when right button of the mouse is pressed)

            Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

            L Offline
            L Offline
            LaHaHa
            wrote on last edited by
            #5

            If I want to ignore the mouse right click, what should I do? Please help!

            _ 1 Reply Last reply
            0
            • L LaHaHa

              If I want to ignore the mouse right click, what should I do? Please help!

              _ Offline
              _ Offline
              _AnsHUMAN_
              wrote on last edited by
              #6

              Just override the right button click and do nothing in the function. If you are asking them in context to what would happen with the other edit boxes you can associate a CEdit type of control variable and leave them as they are with default functionalities

              Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

              L 1 Reply Last reply
              0
              • _ _AnsHUMAN_

                Just override the right button click and do nothing in the function. If you are asking them in context to what would happen with the other edit boxes you can associate a CEdit type of control variable and leave them as they are with default functionalities

                Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

                L Offline
                L Offline
                LaHaHa
                wrote on last edited by
                #7

                Thank you very much! It's alright now!

                1 Reply Last reply
                0
                • L LaHaHa

                  I have a editbox in my dialog box. When I use right click on the editbox, it will display a menu. I would like to know how to disable it during the program is running? Please help!

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

                  If you derived from each class for controls you have a most power than to use in the standard case

                  _**


                  **_

                  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