Custom ActiveX Control containing standard MFC controls.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Arthur (arthur_at_fubaby.com)
Date: 10/29/04


Date: Fri, 29 Oct 2004 10:56:18 GMT

I'm new to ActiveX stuff, although have quite a bit experience with MFC,
so please bear with me. Want I want to do, is create a custom control
that is a 'collection' standard MFC widgets. Basically a listbox, with
some other widgets for narrowing down the results in it, but the client
app only sees what the user finally selects in the list box. I want to
use this collection of controls in a number of different places and apps
too.

So first question, am I barking up the right tree, by trying to
implement this as an ActiveX control?

I've created an project using the wizard in VS.NET '03, I've enabled the
'Act as a simple frame control' option. As my initial searchs on the net
and in msdn, pointed out using the ISimpleFrameSite interface for this.

Problem is, when I use this control, All I get displayed is the default
circle and rectangle drawn in the overidden OnDraw function. Any widgets
I add to the PropertyPage aren't displayed at all.

So basically my question is, how do I get the ActiveX custom control to
display the PropertyPage?

Arthur.



Relevant Pages

  • Re: MFC 7.1 als Container für .NET Controls
    ... Um ehrlich zu sein kenne ich mich mit der MFC und COM-Interop noch zu wenig aus um es zu glauben bzw. nicht zu glauben. ... Internet Explorer simply loads the Windows Forms control itself and treats it as a COM control. ... Damit es als ActiveX in den entsprechenden Auswahldialogen diverser Anwendungen ...
    (microsoft.public.de.vc)
  • Re: WMP control resizing
    ... I understand how things work re: MFC, ActiveX ... getting the WMP9 activex control in a window and playing movies etc. ... when you want to resize the control in MFC, ...
    (microsoft.public.windowsmedia.sdk)
  • How to Read an Active X Control?
    ... My application is an MFC application but since MFC is essentially a ... that the non editable TextBox is implemented as an Active X Control. ... the Windows that Spy++ will EXCLUDE in its Windows Hierarchy display. ... If the ActiveX control is inside an ActiveX container then: ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Custom ActiveX Control containing standard MFC controls.
    ... Arthur wrote: ... > I'm new to ActiveX stuff, although have quite a bit experience with MFC, ... is create a custom control ...
    (microsoft.public.vc.mfc)
  • Re: How can I use C# GUI component in my MFC application.
    ... Here's some stuff I had written on this topic for my book (Extending MFC ... Using a .NET control in an MFC dialog ... we have seen how Windows Forms makes GUI development slightly easier ... BOOL Create(CWnd* pWnd, int x, int y, int cx, int cy); ...
    (microsoft.public.dotnet.languages.vc)