Man, I hate having to do this...
Code:
COMBOBOX IDC_BIH_BITCOUNT, 187, 70, 35, 12, CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL
Code:
SendDlgItemMessage(hwnd, IDC_BIH_BITCOUNT, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR)"1\0");
SendDlgItemMessage(hwnd, IDC_BIH_BITCOUNT, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR)"4\0");
SendDlgItemMessage(hwnd, IDC_BIH_BITCOUNT, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR)"8\0");
SendDlgItemMessage(hwnd, IDC_BIH_BITCOUNT, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR)"16\0");
SendDlgItemMessage(hwnd, IDC_BIH_BITCOUNT, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR)"24\0");
SendDlgItemMessage(hwnd, IDC_BIH_BITCOUNT, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR)"32\0");
I hate having to ask for help so much, but this one's got me stumped. I get nadda in the Combo Box's drop down list. I've looked through MSDN's stuff on Combo Boxes I don't know how many times. And don't say my problem is that hwnd isn't the Dialog or is NULL or something, cause I'm using the function on about twenty other Edit Controls and it works fine.