combo boxes

This is a discussion on combo boxes within the Windows Programming forums, part of the Platform Specific Boards category; after I inited a combo box.... how can i make a string to be shown at the top of the ...

  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,673
    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, 08: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, 01:37 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21