DrawItem with ListItem, ListView and User Control

  • Thread starter Thread starter Paulem0071
  • Start date Start date
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
 
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?
 
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.
 
Back
Top