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. Small Challenge for all you experts

Small Challenge for all you experts

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
13 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.
  • B Offline
    B Offline
    bikram singh
    wrote on last edited by
    #1

    How to intercept a WM_LBUTTONDOWN on the drop-down list of a combo box? Without using sucky MFC. Bikram Singh

    T J R 3 Replies Last reply
    0
    • B bikram singh

      How to intercept a WM_LBUTTONDOWN on the drop-down list of a combo box? Without using sucky MFC. Bikram Singh

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      ah ah ah, there you need help. hem, let me see, yess, this is easy. oh s**t, you don't want to ear about "sucky MFC"... too bad for you... :zzz::zzz::zzz:


      TOXCCT >>> GEII power

      B 1 Reply Last reply
      0
      • B bikram singh

        How to intercept a WM_LBUTTONDOWN on the drop-down list of a combo box? Without using sucky MFC. Bikram Singh

        J Offline
        J Offline
        Johan Rosengren
        wrote on last edited by
        #3

        would have loved to answer, but i dont care to experiment with SDK-programming. SDK-programming sucks big time. Stop using it dude! Give MFC a try, and you'll never come back to SDK-programming for any of your UI-related tasks. Infact, the only reason SDK is good is: none... Thats it. From a professional programmers perspective. *laughter*

        B 1 Reply Last reply
        0
        • B bikram singh

          How to intercept a WM_LBUTTONDOWN on the drop-down list of a combo box? Without using sucky MFC. Bikram Singh

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          Will handling CBN_DROPDOWN help? /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

          B 1 Reply Last reply
          0
          • R Ravi Bhavnani

            Will handling CBN_DROPDOWN help? /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

            B Offline
            B Offline
            bikram singh
            wrote on last edited by
            #5

            Yes, that would be the starting point I know, but i am unable to capture any mouse-events on the drop-down listbox itself... Bikram Singh

            R 1 Reply Last reply
            0
            • J Johan Rosengren

              would have loved to answer, but i dont care to experiment with SDK-programming. SDK-programming sucks big time. Stop using it dude! Give MFC a try, and you'll never come back to SDK-programming for any of your UI-related tasks. Infact, the only reason SDK is good is: none... Thats it. From a professional programmers perspective. *laughter*

              B Offline
              B Offline
              bikram singh
              wrote on last edited by
              #6

              Good for you. I dont use SDK programming except for "lower-level" tasks such as this. I assure you, if you use C++ Builder once, you would probably know why I think MFC sucks. Bikram Singh

              J 1 Reply Last reply
              0
              • T toxcct

                ah ah ah, there you need help. hem, let me see, yess, this is easy. oh s**t, you don't want to ear about "sucky MFC"... too bad for you... :zzz::zzz::zzz:


                TOXCCT >>> GEII power

                B Offline
                B Offline
                bikram singh
                wrote on last edited by
                #7

                ha ha ! Bikram Singh

                1 Reply Last reply
                0
                • B bikram singh

                  Good for you. I dont use SDK programming except for "lower-level" tasks such as this. I assure you, if you use C++ Builder once, you would probably know why I think MFC sucks. Bikram Singh

                  J Offline
                  J Offline
                  Johan Rosengren
                  wrote on last edited by
                  #8

                  Well, you said "without using MFC". Do you think this is a C++ Builder forum? Now, as you don't seem very experienced, let me explain a few things: MFC is a framework. You can use MFC with MSCVC++, but also CodeWarrior and the old Borland C++. C++ Builder is a development environment. I don't know the name of the current underlying framework - in the pre-Builder days, it was OWL. VCL, perhaps? Comparing the development environments, C++ Builder (which I have not used) was loosely built on Delphi, (which I have used). Delphi is a RAD-tool, and if you have difficulties with other development tools, you might want to stay with C++ Builder, and ask questions in appropriate foras. I'm sure that there are newsgroups targetted specifically to C++ Builder. But of course, you are what is commonly called a troll, which I am - sad to say - currently feeding. To summarize, my suggestion is that you either get a life, or haunt foras where you will actually get some answers. I have used more development environment than you can comfortably shake a stick at, so I think I'll leave your puerile suggestion where it belongs :laugh:

                  B 1 Reply Last reply
                  0
                  • J Johan Rosengren

                    Well, you said "without using MFC". Do you think this is a C++ Builder forum? Now, as you don't seem very experienced, let me explain a few things: MFC is a framework. You can use MFC with MSCVC++, but also CodeWarrior and the old Borland C++. C++ Builder is a development environment. I don't know the name of the current underlying framework - in the pre-Builder days, it was OWL. VCL, perhaps? Comparing the development environments, C++ Builder (which I have not used) was loosely built on Delphi, (which I have used). Delphi is a RAD-tool, and if you have difficulties with other development tools, you might want to stay with C++ Builder, and ask questions in appropriate foras. I'm sure that there are newsgroups targetted specifically to C++ Builder. But of course, you are what is commonly called a troll, which I am - sad to say - currently feeding. To summarize, my suggestion is that you either get a life, or haunt foras where you will actually get some answers. I have used more development environment than you can comfortably shake a stick at, so I think I'll leave your puerile suggestion where it belongs :laugh:

                    B Offline
                    B Offline
                    bikram singh
                    wrote on last edited by
                    #9

                    Johan Rosengren wrote: Do you think this is a C++ Builder forum? Does the board say "Visual C++" or does it say "MFC"? Or cant you read? Johan Rosengren wrote: But of course, you are what is commonly called a troll, which I am - sad to say - currently feeding. I guess you get your kicks out of abusing people. You obvisouly have a rigid mindset. I said "sucky MFC" not "sucky Mr. X so-and-so". You need to grow up. And finally, Stop Flaming. Stick with the program. Bikram Singh

                    J 1 Reply Last reply
                    0
                    • B bikram singh

                      Johan Rosengren wrote: Do you think this is a C++ Builder forum? Does the board say "Visual C++" or does it say "MFC"? Or cant you read? Johan Rosengren wrote: But of course, you are what is commonly called a troll, which I am - sad to say - currently feeding. I guess you get your kicks out of abusing people. You obvisouly have a rigid mindset. I said "sucky MFC" not "sucky Mr. X so-and-so". You need to grow up. And finally, Stop Flaming. Stick with the program. Bikram Singh

                      J Offline
                      J Offline
                      Johan Rosengren
                      wrote on last edited by
                      #10

                      bikram singh wrote: Does the board say "Visual C++" or does it say "MFC"? Or cant you read? I explained the difference between MFC and C++ Builder - which you seem to have gotten mixed up. bikram singh wrote: I guess you get your kicks out of abusing people. Where did I abuse you? bikram singh wrote: You need to grow up. And finally, Stop Flaming. Stick with the program. I'll leave this speaking for itself :cool:

                      1 Reply Last reply
                      0
                      • B bikram singh

                        Yes, that would be the starting point I know, but i am unable to capture any mouse-events on the drop-down listbox itself... Bikram Singh

                        R Offline
                        R Offline
                        Ravi Bhavnani
                        wrote on last edited by
                        #11

                        Would CBN_SELCHANGE help? That notifies you when the active selection in the dropdown list changes. You get another notification (CBN_SELENDOK or CBN_SELENDCANCEL, depending on whether the user made a selection or pressed Esc) when the listbox closes. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

                        B 1 Reply Last reply
                        0
                        • R Ravi Bhavnani

                          Would CBN_SELCHANGE help? That notifies you when the active selection in the dropdown list changes. You get another notification (CBN_SELENDOK or CBN_SELENDCANCEL, depending on whether the user made a selection or pressed Esc) when the listbox closes. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

                          B Offline
                          B Offline
                          bikram singh
                          wrote on last edited by
                          #12

                          That doesnt work either :( The only notification I'm getting on the dropped-down listbox is WM_CTLCOLORLISTBOX, which I get each time I do a mouse-over on an item. Nothing else! I can "capture" a right-click on an item, using GetKeyState(VK_RBUTTON), but that only works bcos I change the item-selection while keeping the R button pressed, which causes a WM_CTLCOLORLISTBOX message , in which I call GetKeyState() as above. But this isnt a solution for me! :( :( Spy++ shows no messages except WM_CTLCOLORLISTBOX :( :( :( :( And thank you for helping out ! Bikram Singh

                          B 1 Reply Last reply
                          0
                          • B bikram singh

                            That doesnt work either :( The only notification I'm getting on the dropped-down listbox is WM_CTLCOLORLISTBOX, which I get each time I do a mouse-over on an item. Nothing else! I can "capture" a right-click on an item, using GetKeyState(VK_RBUTTON), but that only works bcos I change the item-selection while keeping the R button pressed, which causes a WM_CTLCOLORLISTBOX message , in which I call GetKeyState() as above. But this isnt a solution for me! :( :( Spy++ shows no messages except WM_CTLCOLORLISTBOX :( :( :( :( And thank you for helping out ! Bikram Singh

                            B Offline
                            B Offline
                            bikram singh
                            wrote on last edited by
                            #13

                            Ultimately, I had to subclass the combobox' listbox. Was wanting to avoid doing it though. But well, if you cant fight em join em i guess! Bikram Singh

                            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