Thread: Help with Combo Boxes Please

  1. #1
    Unregistered
    Guest

    Question Help with Combo Boxes Please

    I'm new to windows programming and I'm trying to figure out how to do combo boxes.

    First, how do I add things to them? I've tried:

    Code:
    SendDlgItemMessage(hWnd, IDC_NAMES, LB_ADDSTRING, 0, (LPARAM)"test")
    but the combo box stayed blank.

    Second, the item the user chooses will return in the LOWORD(wParam) right?

    By the way, any good tutorials on how to do this? I've already tried the FAQ, links, and google, but none describe how to do combo boxes specifically.

    Thanks!

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Lookup the CB_ADDSTRING message..

    Have a search on MSDN for ComboBox messages & notifications (The constants start with CB_ or CBN_)

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. combo boxes
    By BRITA in forum Windows Programming
    Replies: 1
    Last Post: 03-13-2003, 07:42 AM
  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