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. How to trace Right Click on DataGrid

How to trace Right Click on DataGrid

Scheduled Pinned Locked Moved C / C++ / MFC
comdebuggingtutorial
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.
  • S Offline
    S Offline
    Sumit Kapoor
    wrote on last edited by
    #1

    Hi..All Please give me Hint How to capture right click on datagrid control... Actully I want to set a popup menu at right click of Datagrid..please please give me any hint... there is no event given to check right click... Thanks..OK! Good Bye:) ---Sumit Kapoor--- sumit_kapoor1980@hotmail.com

    C 1 Reply Last reply
    0
    • S Sumit Kapoor

      Hi..All Please give me Hint How to capture right click on datagrid control... Actully I want to set a popup menu at right click of Datagrid..please please give me any hint... there is no event given to check right click... Thanks..OK! Good Bye:) ---Sumit Kapoor--- sumit_kapoor1980@hotmail.com

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Add a handler for the MouseDown. In the parameter list, you will have the button wich is pressed (left=1 right=2).

      S 1 Reply Last reply
      0
      • C Cedric Moonen

        Add a handler for the MouseDown. In the parameter list, you will have the button wich is pressed (left=1 right=2).

        S Offline
        S Offline
        Sumit Kapoor
        wrote on last edited by
        #3

        Hi..Thanks for reply... But there is no event for mouse down...this is not as other control in mfc..i'm not getting its full event list..as limited events are provided... please help me...if u know Thanks ---Sumit Kapoor---

        C 1 Reply Last reply
        0
        • S Sumit Kapoor

          Hi..Thanks for reply... But there is no event for mouse down...this is not as other control in mfc..i'm not getting its full event list..as limited events are provided... please help me...if u know Thanks ---Sumit Kapoor---

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          Is it the Microsoft FlexGrid control you are using ?? If so there is a message for mousedown event. If you are using something else, I cannot help you (I don't know all the things you can do with the control)

          S 2 Replies Last reply
          0
          • C Cedric Moonen

            Is it the Microsoft FlexGrid control you are using ?? If so there is a message for mousedown event. If you are using something else, I cannot help you (I don't know all the things you can do with the control)

            S Offline
            S Offline
            Sumit Kapoor
            wrote on last edited by
            #5

            I'm using DataGrid Control..as I've to use data editing in grid that save automatically as user change that data... so I think that I cann't do in flex grid... Give me any idea..Dear.. Thanks again.I'm waiting for reply...Bye ---Sumit Kapoor--- sumit_kapoor1980@hotmail.com

            V 1 Reply Last reply
            0
            • S Sumit Kapoor

              I'm using DataGrid Control..as I've to use data editing in grid that save automatically as user change that data... so I think that I cann't do in flex grid... Give me any idea..Dear.. Thanks again.I'm waiting for reply...Bye ---Sumit Kapoor--- sumit_kapoor1980@hotmail.com

              V Offline
              V Offline
              V 0
              wrote on last edited by
              #6

              I'm not sure on what your working on, but maybe you can add the handler manually. (if you get an error just try to adapt the message handler a little. ==> copy/paste in your .h file) (not pretty, but if all else fails...) If you can detect your mouse pressing in the control where your datagrid is in, maybe you can get the coördinates and try that way? Just ideas, don't have the answer myself. "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimmy Hendrix

              S 1 Reply Last reply
              0
              • V V 0

                I'm not sure on what your working on, but maybe you can add the handler manually. (if you get an error just try to adapt the message handler a little. ==> copy/paste in your .h file) (not pretty, but if all else fails...) If you can detect your mouse pressing in the control where your datagrid is in, maybe you can get the coördinates and try that way? Just ideas, don't have the answer myself. "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimmy Hendrix

                S Offline
                S Offline
                Sumit Kapoor
                wrote on last edited by
                #7

                Hi..Jimmy, Thanks For Hint..I got my solution... Have a Great Life..Bye:-O ---Sumit Kapoor--- sumit_kapoor1980@hotmail.com

                1 Reply Last reply
                0
                • C Cedric Moonen

                  Is it the Microsoft FlexGrid control you are using ?? If so there is a message for mousedown event. If you are using something else, I cannot help you (I don't know all the things you can do with the control)

                  S Offline
                  S Offline
                  Sumit Kapoor
                  wrote on last edited by
                  #8

                  Hi...cedric Thanks For Hint..I got my solution... Have a Great Life..Bye:-O ---Sumit Kapoor--- sumit_kapoor1980@hotmail.com

                  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