mfc >> Get ImageList off the ActiveX control

by ZGMyMDAw » Tue, 21 Mar 2006 14:29:27 GMT

Hello everyone:


Here's my dilemma. I have an OCX control that I use in my app that has a
window resembling Microsoft's ListView. I need to get image list of that
control to be able to use it in my app (I want to have the same graphics as
in OCX control). I can obtain its HWND handle and I tried SendMessage with
LVM_GETIMAGELIST to retrieve image list but it always returns NULL.

I checked the class name of that list view and it appears to be
"ListView20WndClass". Is it the same as WC_LISTVIEW? What am I doing wrong?
And how can I get an HIMAGELIST handle to that ActiveX control?

Thank you in advance...




Similar Threads

1. Getting activex control event from ActiveX control.

2. .Net ActiveX control not getting multibyte characters

I have created a datagrid control in C# that is hosted inside an ATL
composite control.  When I try and enter multibyte characters into the
datagrid text fields I only get garbage.

To enter a multibyte character I have installed the CJK character set
and added them to the IME.  I then bring up the control, set the IME to
Japanese, enter characters with the IME and press enter.  As soon as I
press enter the characters become nonsense.
If I host my .Net Datagrid in a .Net window and repeat the same steps
the characters come in just fine.

Any ideas on what is changing my characters?

Thanks in advance.

3. Getting into ActiveX Control

4. ActiveX Control method''s not getting called

Hi there
I used one ActiveX Composite Control. Problem is that its OnInitDialog
gets called nicely, but none of its funtion gets called so when I
actually debug the code I found one assertion in Winocc.cpp line 345
which say not an ole control yet, though my App is in Release Build and
I used AfxEnableContainerControl also in App's InitInstance .
Note: My App is using one MFC Dll and that Dll's one of the function is
using this ActiveX Control. Even I tried AfxOleInit(),all obselete
functions like Enable3dControl(), etc..
Can anybody solve this proble assasp. 
Thanking you..

5. Getting a CTreeCtrl ID in an ActiveX control

6. Getting rid of border around ActiveX control

Hello,

I write an ActiveX control that automates MS Word. Specifically, the
control embeds MS Word into a PowerPoint presentation. The problem that
I faced is a thin border around the control when the presentation is
run. I need to get rid of it so that there are no any borders around
the control. I have tried to resize the control by calling the main
frame's MoveWindow hoping the border will move out of the visible area,
but the border still persists. Apparently, the border has nothing to do
with the main frame. So the question is - how to get rid of this
border?

Thanks in advance.
Dennis.