Read-Only Combobox
-
Hallo,
ich habe eine letzte Frage für heute und zwar: Wie kann man eine Combobox (Dropdown) Read-Only machen. Also dass der User nur Werte aus der Dropdown-Liste aussuchen kann und nichts selbstständig eingeben kann?
Hier mein Code:hEdit[0] = CreateWindow(_T("COMBOBOX"), NULL, WS_CHILD | WS_VISIBLE | CBS_DROPDOWN, 60, 62, 136, 60, hWnd, (HMENU)1, (HINSTANCE) GetWindowLong (hWnd, GWL_HINSTANCE), NULL);
-
Probier mal CBS_DROPDOWNLIST anstatt CBS_DROPDOWN.
-
siehe hier:
http://www.dreamincode.net/forums/topic/165538-microsoft-working-with-the-combobox-control/