MFC Clist control subclassing 
Author Message
 MFC Clist control subclassing

There's a style bit that can be asserted to the control that will do this
for you.

For example- in the OnInitDialog() event of a dialog that has a CListCtrl
on it you might call something like this:

m_ListCtrl.ModifyStyle( 0, LVS_SHOWSELALWAYS, 0 );
--
Richard Lewis Haggard

Haggard & Associates, International
---------------
English is such a wonderful language. Here's a phrase that applies equally
well to a hit man who doesn't want to pay for a meal or a panda. "Eat
shoots and leaves."



Mon, 27 Sep 1999 03:00:00 GMT  
 MFC Clist control subclassing

Can anyone tell me how I can change the behaviour of a CListCtrl so that if
you have two of them in the same dialog when you select an item in one the
selected item in the other is not deselected ie: loses the highlight.


Thanks



Mon, 27 Sep 1999 03:00:00 GMT  
 MFC Clist control subclassing

Quote:
>Can anyone tell me how I can change the behaviour of a CListCtrl so that if
>you have two of them in the same dialog when you select an item in one the
>selected item in the other is not deselected ie: loses the highlight.

The style flag that Richard mentions can be set from the dialog editor
at design time with VC5.

Dave
----
Address is altered to discourage junk mail.
Remove ".---" for the real address.



Wed, 29 Sep 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Subclassing Activex controls from commctrl (treectrl) in MFC

2. Subclassing (superclassing?) MFC control from commctrl (treectrl)

3. Subclassing the header control inside list control

4. Help:ACIVEX controls- subclassing Windows Control

5. CList = Clist assignment.

6. dumping all data in a CList object in another CList object

7. How to declare a CList of CList ???

8. Generic CRecordsets ,virtual list views and CLists of CLists

9. CList Serialization in MFC (avoid SerializeElements)

10. MFC performance of CList

11. STL vs MFC CMap, CArray, CList

12. STL vs. MFC CMap, CArray, CList

 

 
Powered by phpBB® Forum Software