Excuse my superior knowledge disguised as ignorance:
The code executes fine, and if you use the up/down keys, the different symbols appear in the combo, but if you press that down button, it shows a little grey line about 2 pixels high instead of the list. Do I have to set each item's height or what?Code:Combo1 = CreateWindowEx(WS_EX_CLIENTEDGE, "ComboBox", "", WS_CHILD | CBS_DROPDOWNLIST, 115, 30, 50, 30, hWnd, 0, hInst, NULL); HFONT hFont; CHAR* Tahoma = "Tahoma"; hFont = (HFONT) CreateFont( 18 , 0, 0, 0, FW_NORMAL, 0, 0, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, 0, Tahoma); SendMessage(Combo1, WM_SETFONT, (WPARAM)hFont, (LPARAM)true); SendMessage(Combo1, CB_ADDSTRING, 0, (WPARAM) "+"); SendMessage(Combo1, CB_ADDSTRING, 0, (WPARAM) "-"); SendMessage(Combo1, CB_ADDSTRING, 0, (WPARAM) "x"); SendMessage(Combo1, CB_ADDSTRING, 0, (WPARAM) "/"); ShowWindow(Combo1, nCmdShow);




Reply With Quote