Click to See Complete Forum and Search --> : VC++: ActiveX Controls
Hi,
I need to develop an ActiveX Control just like a ListBox control, but will
have some extra methods . While developing the control I subclassed the new
control from a LISTBOX control. How can I keep the methods already available
for a ListBox such as
AddItem() and DeleteItem(), while adding some new ones? Please can somebody
help?
rkb
Luis Abreu
12-18-2000, 07:18 AM
On 17 Dec 2000 22:51:16 -0800, "rkb" <krishnendu_bakshi@yahoo.com>
wrote:
>
>Hi,
> I need to develop an ActiveX Control just like a ListBox control, but will
>have some extra methods . While developing the control I subclassed the new
>control from a LISTBOX control. How can I keep the methods already available
>for a ListBox such as
>AddItem() and DeleteItem(), while adding some new ones? Please can somebody
>help?
> rkb
If you subclassed it, that means that you're redirecting the events
that should go to a list control to your class (which I'm calling X).
Now, if you derive X from the list control, then when you instantiate
X, you can access the methods from the list control plus your own new
methods.
Luis Abreu
Syed Adnan Shahid
12-19-2000, 06:09 AM
"Syed Adnan Shahid" <neduet_pk@yahoo.com> wrote:
>
>Hi,
> I need to develop an ActiveX Control just like a ListBox control, but
will
>have some extra methods . While developing the control I subclassed the
new
>control from a LISTBOX control. How can I keep the methods already available
>for a ListBox such as
>AddItem() and DeleteItem(), while adding some new ones? Please can somebody
>help?
> Adnan
devx.com
Copyright Internet.com Inc. All Rights Reserved