Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to implement an ActiveX Combo control

0 views
Skip to first unread message

shichongdong

unread,
Nov 29, 2005, 5:52:45 AM11/29/05
to
Hi,
I need some samples or toturials about implementing an ActiveX combo
control. Any links are welcome.

Thanks
-Jerry

Tom Serface

unread,
Nov 29, 2005, 10:49:51 AM11/29/05
to

Ajay Kalra

unread,
Nov 29, 2005, 12:02:06 PM11/29/05
to
Since it is provided by comctl32.dll(and available in Win32), why would
you want to have this is as an ActiveX control?

---------
Ajay Kalra
ajay...@yahoo.com

shichongdong

unread,
Dec 7, 2005, 7:19:28 AM12/7/05
to
There are many ActiveX control toturials that implement an OnDraw()
method (or something like this) to draw something like a circle or
smile face. What i need is a ActiveX control which behavior like
windows common controls like listbox or combobox. Can i enbed a
windows common control in the COM object or implement a COM object that
draw the control myself?

Ajay Kalra

unread,
Dec 7, 2005, 9:11:30 AM12/7/05
to
> Can i enbed a windows common control in the COM object

Why not? Your ActiveX control can have any of the Win32 common controls
in it.

---------
Ajay Kalra
ajay...@yahoo.com

shichongdong

unread,
Dec 7, 2005, 8:29:48 PM12/7/05
to
Hi Ajay,
I want to enbed a combo box control in the ActiveX control. I create a ATL
project and use ATL control wizard to create an ActiveX control. I select
combo box (what's difference with combboxEx32) and others use default
settings. I compling and test it using Tools->Activex control test
container. The active control isn't like a combo box. What else should i do
to make it work as combo box? Any samples and toturials are welcome.


"Ajay Kalra" <ajay...@yahoo.com> wrote in message
news:1133964690.7...@g43g2000cwa.googlegroups.com...

Ajay Kalra

unread,
Dec 7, 2005, 10:57:12 PM12/7/05
to
Its been a while since I wrote an ActiveX control. A different forum
(ATL) will be of more help. I am certain though that you can develop an
ActiveX control that contains builtin Win32 controls.

Why are you using ActiveX? Who is the target? VB?

------
Ajay Kalra
ajay...@yahoo.com

shichongdong

unread,
Dec 7, 2005, 11:22:18 PM12/7/05
to
Hi Ajay,
I got an ActiveX control and i need implementing an ActiveX combo box
control to work with it.
I found some samples that enbed an win32 controls in the ActiveX control
then write code to draw the controls. This is essential?
I try to enbed Win32 controls and call create method to create controls, but
it doesn't work. What really should i do?

"Ajay Kalra" <ajay...@yahoo.com> wrote in message

news:1134014232.3...@g43g2000cwa.googlegroups.com...

Ajay Kalra

unread,
Dec 7, 2005, 11:37:13 PM12/7/05
to
Sorry, I dont think I can be of further help. I would try other related
newsgroups in addition to Codeproject/Codeguru.

-------
Ajay Kalra
ajay...@yahoo.com

0 new messages