[콤보박스 아이템 수]

아이템수=SendMessage(InstFact.hComboBox, CB_GETCOUNT, 0, 0);



[콤보박스 아이템 인덱스 설정]

// wParam 이 인덱스 번호
SendMessage(InstFact.hComboBox, CB_SETCURSEL, 1, 0);




[콤보박스 현재 선택된 인덱스 번호]

선택인덱스=SendMessage(InstFact.hComboBox, CB_GETCURSEL, 0, 0);





참조: http://msdn.microsoft.com/en-us/library/ff485901(v=VS.85).aspx



** 콤보박스 메세지 리스트 **

CB_ADDSTRING
CB_DELETESTRING
CB_DIR
CB_FINDSTRING
CB_FINDSTRINGEXACT
CB_GETCOMBOBOXINFO
CB_GETCOUNT
CB_GETCUEBANNER
CB_GETCURSEL
CB_GETDROPPEDCONTROLRECT
CB_GETDROPPEDSTATE
CB_GETDROPPEDWIDTH
CB_GETEDITSEL
CB_GETEXTENDEDUI
CB_GETHORIZONTALEXTENT
CB_GETITEMDATA
CB_GETITEMHEIGHT
CB_GETLBTEXT
CB_GETLBTEXTLEN
CB_GETLOCALE
CB_GETMINVISIBLE
CB_GETTOPINDEX
CB_INITSTORAGE
CB_INSERTSTRING
CB_LIMITTEXT
CB_RESETCONTENT
CB_SELECTSTRING
CB_SETCUEBANNER
CB_SETCURSEL
CB_SETDROPPEDWIDTH
CB_SETEDITSEL
CB_SETEXTENDEDUI
CB_SETHORIZONTALEXTENT
CB_SETITEMDATA
CB_SETITEMHEIGHT
CB_SETLOCALE
CB_SETMINVISIBLE
CB_SETTOPINDEX
CB_SHOWDROPDOWN
Posted by bloodguy
,