[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | Microsoft Visual C/C++ |
|
Moderator: | PLUGH::needle |
|
Created: | Tue Mar 16 1993 |
Last Modified: | Wed Jun 04 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 1121 |
Total number of notes: | 4385 |
1121.0. "CListCtrl that selects all the way across?" by IOSG::TALLETT (www-iosg.reo.dec.com/Tallett.html) Thu May 29 1997 03:45
If you put the standard list view control from Windows 95/NT4 into
report mode and have several columns, then you can only click
on the first column to select an item. Also, when you do that,
only the first column on the line turns blue, indicating the
item is selected.
Does anyone have a list control that selects all the way across?
Microsoft Exchange client does this, but its not a real list
control, but it might do.
We found a KB article with some source code from Microsoft which
purports to solve this problem, but the example *ONLY* works
in report mode, and it is left as an exercise for the reader to
write owner-draw code for the other three modes (large icon,
small icon, list).
Ideal scenario for me would be a subclassed CListCtrl with code
to do the drawing and clicking. That way all the other events and
behaviour would be identical to CListCtrl.
Cheers!
Paul
T.R | Title | User | Personal Name | Date | Lines |
---|
1121.1 | New COMCTL32.DLL / LVS_EX_FULLROWSELECT | STAR::DZIEDZIC | Tony Dziedzic - DTN 381-2438 | Thu May 29 1997 08:27 | 14 |
| The newest Common Controls DLL (COMCTL32.DLL) which comes with
Internet Explorer 3.x contains a "full-row select" style bit
for the List View control - look for LVS_EX_FULLROWSELECT. The
COMMCTRL.H which comes with Visual C++ V5.0 contains this
symbol definition. I believe you can also get that COMMCTRL.H
from the internet client SDK from Microsoft's Web site. With
this bit set, selecting any item or sub-item causes the entire
row to be highlighted.
The catch here is that you need to install IE 3.x to get the new
COMCTL32.DLL. Right now that file is not re-distributable (and
there are separate NT and 95 versions of it). I've been told by
someone at Microsoft that when IE 4 is released there will be a
re-distribution mechanism available for COMCTL32.DLL.
|
1121.2 | See ROWLIST sample | MOLAR::SCAER | Its just a jump to the left... | Thu May 29 1997 15:57 | 5 |
|
See the ROWLIST sample in the VC++ documentation under
Samples/MFC Samples/General MFC Samples.
.........................beth
|
1121.3 | | XSTACY::imladris.ilo.dec.com::grainne | Grainne Ni Choiligh | Tue Jun 03 1997 13:09 | 11 |
|
Re: .2
I think this is the sample referred to by .0 - as the author of .0
notes, unless the sample has been modified since it was first
published by Microsoft, it only implements full-row selection in
report mode. Implementing this functionality in small icon, large
icon and list modes is left 'as an exercise for the student.' I don't
have my VC++ v5.0 CD with the samples on it at hand - the copy of
ROWLIST I have online was obtained from the MS KB web-site, so it's
possible that the VC++ v5.0 sample has been extended.
|