Click here to Skip to main content
15,905,785 members
Home / Discussions / C#
   

C#

 
Generalprint page number, header and footer Pin
hkl22-Oct-03 14:33
hkl22-Oct-03 14:33 
GeneralSorting Pin
totig22-Oct-03 11:04
totig22-Oct-03 11:04 
GeneralRe: Sorting Pin
ankita patel22-Oct-03 11:25
ankita patel22-Oct-03 11:25 
GeneralRe: Sorting Pin
bjoernen22-Oct-03 22:11
bjoernen22-Oct-03 22:11 
GeneralOverlay Icons in ListView Pin
Heath Stewart22-Oct-03 9:47
protectorHeath Stewart22-Oct-03 9:47 
GeneralRe: Overlay Icons in ListView Pin
Stephane Rodriguez.22-Oct-03 12:11
Stephane Rodriguez.22-Oct-03 12:11 
GeneralRe: Overlay Icons in ListView Pin
Heath Stewart22-Oct-03 12:20
protectorHeath Stewart22-Oct-03 12:20 
GeneralRe: Overlay Icons in ListView Pin
Heath Stewart22-Oct-03 12:44
protectorHeath Stewart22-Oct-03 12:44 
Okay, I've been thinking about this more and perhaps am thinking too much because I've confused myself ( I think WTF | :WTF: )

First, are the icon overlay images (just overlays) stored in the same image list as the large and small images, or a different one initially. Second, are the overlays actually applied to the primary (background, as I think I called it in the previous message) image in the image list?

With these two questions answered, then the next question becomes: does the LVITEM.state (bits 8-11) hold the overlay imageindex or the overlay imageindex applied to the primary image?

I was planning on deriving from ListView of course, and then handling the OCM_NOTIFY message (didn't even remember the reflected messages, since only child controls like the header would send WM_NOTIFY Blush | :O ). For the CDDS_ITEMPREPAINT flag I would set the LVIS_OVERLAYMASK in LVITEM.stateMask and then the bit-shifted overlay image index in the LVITEM.state field, right? I take it that the ListView will draw this automatically since it is set appropriately? I'm confused on that one because it seems to me that it would (otherwise, why are those bits there and used?), but the one or two examples I found via google are doing the custom drawing themselves.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralColumn Name wrapping in Listview ! Pin
pahluwalia22-Oct-03 8:19
pahluwalia22-Oct-03 8:19 
GeneralRe: Column Name wrapping in Listview ! Pin
Heath Stewart22-Oct-03 9:40
protectorHeath Stewart22-Oct-03 9:40 
GeneralRe: Column Name wrapping in Listview ! Pin
pahluwalia22-Oct-03 10:26
pahluwalia22-Oct-03 10:26 
GeneralRe: Column Name wrapping in Listview ! Pin
Heath Stewart22-Oct-03 10:29
protectorHeath Stewart22-Oct-03 10:29 
GeneralRe: Column Name wrapping in Listview ! Pin
Stephane Rodriguez.22-Oct-03 11:50
Stephane Rodriguez.22-Oct-03 11:50 
GeneralSimplest of Things are Hard Pin
antoine@orchus-tech22-Oct-03 6:35
antoine@orchus-tech22-Oct-03 6:35 
GeneralRe: Simplest of Things are Hard Pin
leppie22-Oct-03 7:02
leppie22-Oct-03 7:02 
GeneralRe: Simplest of Things are Hard Pin
Philip Fitzsimons22-Oct-03 7:57
Philip Fitzsimons22-Oct-03 7:57 
GeneralRe: Simplest of Things are Hard Pin
antoine@orchus-tech22-Oct-03 18:36
antoine@orchus-tech22-Oct-03 18:36 
GeneralRe: Simplest of Things are Hard Pin
antoine@orchus-tech23-Oct-03 9:49
antoine@orchus-tech23-Oct-03 9:49 
GeneralIcon for EXE file Pin
Khang Nguyen22-Oct-03 6:12
Khang Nguyen22-Oct-03 6:12 
GeneralRe: Icon for EXE file Pin
Daniel M. Edwards22-Oct-03 8:33
Daniel M. Edwards22-Oct-03 8:33 
GeneralRe: Icon for EXE file Pin
Khang Nguyen22-Oct-03 9:31
Khang Nguyen22-Oct-03 9:31 
QuestionCreating Event ID's for Eventlog ? Pin
LongRange.Shooter22-Oct-03 6:11
LongRange.Shooter22-Oct-03 6:11 
GeneralCombobox index Pin
Mike Osbahr22-Oct-03 4:56
Mike Osbahr22-Oct-03 4:56 
GeneralWindows services Pin
Hambi22-Oct-03 2:37
Hambi22-Oct-03 2:37 
GeneralRe: Windows services Pin
Heath Stewart22-Oct-03 5:27
protectorHeath Stewart22-Oct-03 5:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.