Dave's Brain

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

Add a comment

Sign in to add a comment
Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.