Thread: combo boxes

  1. #1
    BRITA
    Guest

    combo boxes

    after I inited a combo box.... how can i make a string to be shown at the top of the combo box, next to the "down arrow" of the combo box.

    thanks.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Code:
    ...
    SendMessage (hWndCombo,
                 CB_ADDSTRING,
                 0,
                 (LPARAM)(LPSTR) strSingleEditLine);
    ...
    SendMessage (hWndCombo,
                 CB_SETCURSEL,
                 (WPARAM) index,
                 0);
    Read more about Combo Boxes here.

    gg

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. New to Combo Boxes
    By Shenanigans in forum C++ Programming
    Replies: 3
    Last Post: 05-26-2006, 12:01 PM
  3. Help with Combo Boxes Please
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 07-26-2002, 06:48 PM
  4. Help With Combo Boxes
    By Daniel in forum Windows Programming
    Replies: 1
    Last Post: 05-25-2002, 07:53 PM
  5. Adding Items to Combo Boxes
    By tenthirty in forum Windows Programming
    Replies: 10
    Last Post: 12-21-2001, 02:37 AM