Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passin Images to an ActiveX control.

Status
Not open for further replies.

WilliamGS

Programmer
Jan 21, 2004
54
0
0
PE
Hi all, I am making an ActiveX control and it uses a 'CImageList' object, but I have some questions about that:
- How can I pass an icon or bitmap HANDLE to my OCX control?
- Is there some way to pass a 'CImageList' object to my OCX control?
- How can I convert a icon or bitmap HANDLE to 'VARIANT'.

I am using VC++ 6.00.

Thanks a lot,

William GS
 
pass al of them as IDispatch-es and all specific you would access implement as dispatch properties and dispatch methods.

Ion Filipski
1c.bmp
 
Hi Ion Filipski. Please, could you give me some code example for both sides (ActiveX and client - both in C++)?

Thanks again,
William G.S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top