Thread: Prob. with Combo Box in VC++

  1. #1
    noname01
    Guest

    Exclamation Prob. with Combo Box in VC++

    I have made a Dialog Box and placed a ComboBox control on it. I have also given the list of options in the Data tab of its properties window. Yet, when i run my program, the Drop Down options i have entered in the Data tab do not appear on clicking on the control.

    noname01

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    421
    you have to add them at runtime.

    look for the CB_ADDSTRING or CBEM_INSERTITEM (depending on if you are using a ComboBox or a ComboBoxEx32)... they'll solve your problems.

    <edit>
    BTW, this is a windows question, not a C++ question. PLease make sure you post in the right forum.... it'll save you getting flamed in the future.
    </edit>

    good luck!
    U.
    Quidquid latine dictum sit, altum sonatur.
    Whatever is said in Latin sounds profound.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Create new combo boxes based on items selected in preview combo box
    By RealityFusion in forum Windows Programming
    Replies: 2
    Last Post: 01-10-2007, 09:50 AM
  2. No data showing in combo box
    By PJYelton in forum Windows Programming
    Replies: 6
    Last Post: 04-29-2005, 07:20 PM
  3. How to program a "back" button with MFC
    By 99atlantic in forum Windows Programming
    Replies: 3
    Last Post: 04-26-2005, 08:34 PM
  4. New Theme
    By XSquared in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 04-01-2004, 08:00 PM
  5. SkyLock tech demo (GUI - DX combo box)
    By jdinger in forum Game Programming
    Replies: 4
    Last Post: 07-14-2002, 09:04 PM