hi im trying to use ComboBox in my dialogbox

CONTROL "",1002,"COMBOBOX",CBS_HASSTRINGS |CBS_DROPDOWNLIST |CBS_AUTOHSCROLL |CBS_DISABLENOSCROLL |WS_CHILD |WS_TABSTOP |WS_VISIBLE ,40,22,85,13,0x0,0
.const
IDCB_THREAD1PRIORITY EQU 1002
.data
StringThreadPrior0                        db "IDLE",0
.code
        call           InitCommonControls
...................................................................
push offset StringThreadPrior0
push 0
push CB_ADDSTRING
push IDCB_THREAD1PRIORITY
push dword ptr
call SendDlgItemMessage
...................................................................
was also trying which is exactly thes same but you know ...

push IDCB_THREAD1PRIORITY
push dword ptr
call GetDlgItem
push offset StringThreadPrior1
push 0
push CB_ADDSTRING
push eax
call SendMessage

after i click on it nothing is going on



please help
Posted on 2009-08-10 12:36:45 by pxor
Increase the "Height" for the dropdown list to show.
Posted on 2009-08-10 17:53:41 by drizz
Thanks it worked out :)
Posted on 2009-08-10 22:30:08 by pxor