How can I retrieve handles of images/icons ?

  • Thread starter Thread starter Joseph Gia
  • Start date Start date
J

Joseph Gia

My .NET Compact Framework application uses an ImageList to hold all
icons/images. How can I retrieve the handles to these icons/images to pass
them to functions such as SHNotificationAdd ?

Many thanks

Joseph Gia
 
There is no clean way thanks to the design of the CF v1. One thing that
occured to me at some point is to assign ImageList to a toolbar and use
Toolbar messages to retrieve the associated hIcon. It is quite possible that
you could juggle the stuff in a way that will suite your needs. For example
if you assign ImageList to a toolbar, then immediately retrieve your hIcon
and instantly remove ImageList from toolbar, it will not have a chance to
repaint.
 

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

Back
Top