Hi, Just wondered if anyone can point me in the right direction here.
I've create a control that draws a variable number of buttons onto a Picturebox, which allows me to have vastly more controls on the screen that window handles would safely allow (have tested it with 500 buttons). I'm using DrawThemeBackground etc to do it and it works well. DrawThemeIcon however is striking problems - works perfectly when the control is running within a .Net environment, but I also use the same control in a COM environment - specifically a COM visible control in the project is created from an HTML page, and that control dynamically adds this control onto itself, however the images will not display - the buttons all drawn, but DrawThemeIcon returns 80004005. I've tried using ImageList_Create to create my own image list, and populated it with IPictureDisp handles, but it still only works well on .Net and displays no images in COM. Error once again is 80004005 which seems like a generic COM error message. Is there anything obvious I have missed? Dino =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
