Browse - Programming Tips - Win32: How can I disable user typing in a ComboBox?

Date: 2018apr27
OS: Windows
Language: C/C++

Q.  Win32: How can I disable user typing in a ComboBox?

A.  In the Visual Studio GUI set:

Type: Drop List
Or in the resource (.rc) file add CBS_DROPDOWNLIST. For example:
COMBOBOX IDC_TIMEZONE,287,50,109,100,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP