Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ProgressBars (and other controls) within a CListCtrl (Report mode)??

Status
Not open for further replies.

milner

Programmer
Apr 15, 1999
28
CA
Is it possible to display a progress bar or button, checkbox, combobox, etc. within a List Control (report mode)?

ALSO,
how can I change the behaviour of a CListCtrl(report mode) (or is there a better control) to allow me to click anywhere on the row to select the entire row and highlight it. (instead of just the text in the leftmost column.

Thanks,

milner
 
milner,

From MSDN OdListVw sample:

One of the limitations of the ListView common control is that when the control is in report view, the control only highlights the first column when a row is selected. To work around this limitation, you can create the ListView as an owner draw control (using the LVS_OWNERDRAWFIXED style) and perform all the painting yourself.

See the entire sample for the implementation.

> Is it possible to display a progress bar or button, checkbox,
> combobox, etc. within a List Control

'Owner Draw' controls are how you accomplish all of these extended behaviors.

Good luck
-pete

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top