How to get instance handle of an ActiveX control
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I am using VC6 w/ MFC and have an app with the COleDocument/CView architecture. A COleClientItem is added (and activated) successfully to the document but now I would like to get at some of the resource items in that control, namely the icons. I figured I would use the ::LoadIcon and use the instance handle of the control but I don't know how to get it. The GetIconFromRegistry() is not useful :( as the control does not register its icon that way. (I wrote the OCX control and if someone knows how to register the icon, that would be fine as well.) If I go the ::LoadIcon() route, how do I get the instance handle of the control? Thanks!