Billy ONeal
Billy ONeal

Reputation: 106549

Native CheckedListBox?

In .NET land, there's the tremendously useful System.Windows.Forms.CheckedListBox class.

What is the equivalent in Windows Common Controls land? (if any)

Upvotes: 2

Views: 297

Answers (3)

Andrew T Finnell
Andrew T Finnell

Reputation: 13628

Turn a list view into one with checkboxes. If you want it similar to a ListBox, only use 1 column.

ListView_SetExtendedListViewStyle (handle, LVS_EX_CHECKBOXES | LVS_EX_FULLROWSELECT);

Upvotes: 5

Michał Turecki
Michał Turecki

Reputation: 3167

This article might be of interest for you. In short windows allows quite easily to implement checkboxes in Listbox and combobox through custom drawing and messaging.

Upvotes: 0

9dan
9dan

Reputation: 4282

Almost identical UI can be developed with the List View control by using item state images.

But selection management and other functionalities need to be implemented manually.

Upvotes: 0

Related Questions