View Full Version: COMBOBOX

C++ Learning Community > win32 api C++ programming > COMBOBOX


Title: COMBOBOX


Dragon - July 13, 2003 04:35 AM (GMT)
Ok, I have a quick question about combo boxes. How do I set the default selection of the window? I can add selections to it, but the default one always remains empty.

dr voodoo - July 14, 2003 10:25 PM (GMT)
Try this:
CODE
SendMessage(combo1,CB_SETCURSEL,4,0);

Where 4 is the index of the wanted item and combo1 the HWND of your combo box.




* Hosted for free by InvisionFree