Click here to Skip to main content
15,904,023 members
Home / Discussions / C#
   

C#

 
QuestionConverting a 20-page pdf to 20 single page pdf? Pin
NotProfessional22-Oct-03 15:00
NotProfessional22-Oct-03 15:00 
AnswerRe: Converting a 20-page pdf to 20 single page pdf? Pin
leppie23-Oct-03 9:17
leppie23-Oct-03 9:17 
GeneralRe: Converting a 20-page pdf to 20 single page pdf? Pin
mistery2225-Oct-03 3:20
mistery2225-Oct-03 3:20 
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 
I've been digging deep into research for a couple days (roughly) on this and could use some help. Basically, I need to implement overlays in a ListView. The SysListVew32 (common control) supports it, but they didn't wrap this functionality in .NET so I plan on deriving my own (adding a few more things along the way) and I want to expose this functionality in a ".NET-like" manner.

The problem is that the docs are cryptic and there literally is NOT much help when googling. Seriously, try searching for "ListView LVIS_OVERLAYMASK" and you get 3 pages of hits, with only a couple hits containing any use of the mask (others are just needlessly defined constants).

So, the docs say to use ImageList_SetOverlayImage. What exactly is this doing? I give it a handle to the ImageList (no problem there), a 0-based index to an image (?) and a 1-based index to an overlay mask (?). WTF | :WTF: The docs also state that both large and small image lists can contain overlays. With these two "helpful" tidbits in mind, can I infer that the overlay icons are in the ImageList itself? Where (at what index)? I've dug into the ImageList_SetOverlayImage function but it doesn't help.

Has anyone worked with overlay icons in a ListView? Can anyone else interpret the docs for said methods / constants? I mean, I've been working with the PSDK (and whatever it was called before) since the early 90's and I've never scratched so much hair off my head!

Anyway, I post this here because I want to do this in C# (extending our current class library). TIA

 

-----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-----
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 
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 

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.