DrawItem with ListItem, ListView and User Control

P

Paulem0071

All,

I have successfully intercepted and am drawing a custom ListView and
ListItems with images. However, I would like to draw an custom control over
my listView to display additional features (similar in concept to a context
menu) applicable to the selected ListItem.

Any suggestions regarding how to display this custom control (user control)
on top of a ListView?

The user control display is dependent upon a particular image index.

Thank you
 
P

Paulem0071

Yes, but I think I need to add it to the parent form controls collection and
display it, I think, and then i'm concerned about placement on top of the
ListView

Peter Duniho said:
[...]
Any suggestions regarding how to display this custom control (user
control)
on top of a ListView?

Position it over the ListView where you want it to be drawn?
 
P

Paulem0071

Brilliant Idea, placing it on the form in the container (the ListView) where
I wanted it, then hiding it allowed me to make it appear at the proper Point
without a lot of confusing PointToScreen and PointToClient conversions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top