News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Combo-Box

Started by Nilrem, February 21, 2005, 11:00:49 PM

Previous topic - Next topic

Nilrem

FillMyCombo proc
LOCAL buffer[256]:BYTE
invoke SendMessage,hCombo,CB_ADDSTRING,0,offset String1
invoke SendMessage,hCombo,CB_ADDSTRING,0,offset String2
invoke SendMessage,hCombo,CB_ADDSTRING,0,offset String3
invoke SendMessage,hCombo,CB_ADDSTRING,0,offset String4
invoke SendMessage,hCombo,CB_SETCURSEL,1,0
invoke SendMessage,hCombo,CB_GETCOUNT,0,0
ret

FillMyCombo endp
What is the reasoning behind this combo-box (drop-down menu) only displaying String2,3, and 4?

Nilrem

Stupid me!

FillMyCombo proc
LOCAL buffer[256]:BYTE
invoke SendMessage,hCombo,CB_ADDSTRING,0,offset String1
invoke SendMessage,hCombo,CB_ADDSTRING,0,offset String2
invoke SendMessage,hCombo,CB_ADDSTRING,0,offset String3
invoke SendMessage,hCombo,CB_ADDSTRING,0,offset String4
invoke SendMessage,hCombo,CB_SETCURSEL,0,0
invoke SendMessage,hCombo,CB_GETCOUNT,0,0
ret

FillMyCombo endp