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. drop down list

drop down list

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialc++question
10 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.
  • C Offline
    C Offline
    celllllllll
    wrote on last edited by
    #1

    Hi, Can someone please tell me how to enable the DROP DOWN list while writing code? For example: m_open.drop down list so that I can select what I want Thanks

    C++Prog

    Steve EcholsS M 2 Replies Last reply
    0
    • C celllllllll

      Hi, Can someone please tell me how to enable the DROP DOWN list while writing code? For example: m_open.drop down list so that I can select what I want Thanks

      C++Prog

      Steve EcholsS Offline
      Steve EcholsS Offline
      Steve Echols
      wrote on last edited by
      #2

      Do you mean drop the list down programatically? m_open.ShowDropDown( TRUE );


      - S 50 cups of coffee and you know it's on!

      • S
        50 cups of coffee and you know it's on!
        Code, follow, or get out of the way.
      C 1 Reply Last reply
      0
      • Steve EcholsS Steve Echols

        Do you mean drop the list down programatically? m_open.ShowDropDown( TRUE );


        - S 50 cups of coffee and you know it's on!

        C Offline
        C Offline
        celllllllll
        wrote on last edited by
        #3

        no...not programatically.....but its default. Like when I type m_open. After "." it should open me a drop down list and we can select anything. For example "IsWindowEnabled". And then I won't have to type it, I can select and then press ENTER. I hope I explained it now. Thanks

        C++Prog

        Steve EcholsS 1 Reply Last reply
        0
        • C celllllllll

          no...not programatically.....but its default. Like when I type m_open. After "." it should open me a drop down list and we can select anything. For example "IsWindowEnabled". And then I won't have to type it, I can select and then press ENTER. I hope I explained it now. Thanks

          C++Prog

          Steve EcholsS Offline
          Steve EcholsS Offline
          Steve Echols
          wrote on last edited by
          #4

          Ah, you mean Intellisense. It's touch and go for me on VC6 - sometimes I get it, sometimes I don't. I have no idea what breaks it.


          - S 50 cups of coffee and you know it's on!

          • S
            50 cups of coffee and you know it's on!
            Code, follow, or get out of the way.
          C 1 Reply Last reply
          0
          • Steve EcholsS Steve Echols

            Ah, you mean Intellisense. It's touch and go for me on VC6 - sometimes I get it, sometimes I don't. I have no idea what breaks it.


            - S 50 cups of coffee and you know it's on!

            C Offline
            C Offline
            celllllllll
            wrote on last edited by
            #5

            O okay....but thanks anyways for telling me what is it called..Smile. Intellisense..now will remember it. Thanks

            C++Prog

            1 Reply Last reply
            0
            • C celllllllll

              Hi, Can someone please tell me how to enable the DROP DOWN list while writing code? For example: m_open.drop down list so that I can select what I want Thanks

              C++Prog

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              First make sure that the variable's type is known (as seen by the compiler) at the point you are typing. If the variable isn't already defined then intellisense won't know what to put in the list. If that doesn't work then possibly the intellisense database is corrupt (that's been happening for many VS versions :)). To rebuild the intellisense database: 1) Exit VS or at least close the project/solution. 2) Find the <solutionname>.ncb file in your solution/project folder. 3) Rename it to something like <solutionname>_bak.ncb if you want to be safe ;) 4) If you didn't rename it then delete it. 5) Open the project/solution in VS and a new .ncb file will be built

              C 1 Reply Last reply
              0
              • M Mark Salsbery

                First make sure that the variable's type is known (as seen by the compiler) at the point you are typing. If the variable isn't already defined then intellisense won't know what to put in the list. If that doesn't work then possibly the intellisense database is corrupt (that's been happening for many VS versions :)). To rebuild the intellisense database: 1) Exit VS or at least close the project/solution. 2) Find the <solutionname>.ncb file in your solution/project folder. 3) Rename it to something like <solutionname>_bak.ncb if you want to be safe ;) 4) If you didn't rename it then delete it. 5) Open the project/solution in VS and a new .ncb file will be built

                C Offline
                C Offline
                celllllllll
                wrote on last edited by
                #7

                How would I make sure that the variable type is known at the point of typing? I rebuilded the .ncb file but that doesn't work. Thanks for your effort.

                C++Prog

                M D 3 Replies Last reply
                0
                • C celllllllll

                  How would I make sure that the variable type is known at the point of typing? I rebuilded the .ncb file but that doesn't work. Thanks for your effort.

                  C++Prog

                  M Offline
                  M Offline
                  Mark Salsbery
                  wrote on last edited by
                  #8

                  celllllllll wrote:

                  How would I make sure that the variable type is known at the point of typing?

                  Just like the compiler sees it - startin at the top, through all include files and their included files. If I just start typing: myvariable. Intellisense knows nothing. If I type: CWnd myvariable; myvariable. Intellisense gives me the list of CWnd members, assuming somewhere above these lines I have included the header file declaring the CWnd class. p.s. I still kind of chuckle every time I type the word "Intellisense", considering it is the #1 problem I've had over the years with VS :) *edit* One other thing - Intellisense has always started working again at some point for me :laugh:

                  1 Reply Last reply
                  0
                  • C celllllllll

                    How would I make sure that the variable type is known at the point of typing? I rebuilded the .ncb file but that doesn't work. Thanks for your effort.

                    C++Prog

                    M Offline
                    M Offline
                    Mark Salsbery
                    wrote on last edited by
                    #9

                    Ah shoot - I said "one other thing" - I lied. Also, if there's a coding error above the line you're typing and intellisense can't parse through the error then it will stop working as well. So, sometimes compiling (if the error isn't obvious) will show you where it's getting hung up. Mark

                    1 Reply Last reply
                    0
                    • C celllllllll

                      How would I make sure that the variable type is known at the point of typing? I rebuilded the .ncb file but that doesn't work. Thanks for your effort.

                      C++Prog

                      D Offline
                      D Offline
                      David Crow
                      wrote on last edited by
                      #10

                      celllllllll wrote:

                      How would I make sure that the variable type is known at the point of typing?

                      It will also fail to work if you are in a method that has not yet been added to the class' .h file.


                      "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                      "Judge not by the eye but by the heart." - Native American Proverb

                      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