SubClassed MFC Edit Control Used in VB 
Author Message
 SubClassed MFC Edit Control Used in VB

I have subclassed the EDIT control using MFC to create my own ActiveX
control.  I was having trouble with focus in VB so I was following the
advice of article Q168777 which suggests calling OnActivateInPlace in the
OnCreate method of the control.  Using this solved by focus problems on
normal VB forms and the edit control functions as it should.  

But there is more.  In my VB project I also have some VB User Controls and
one of those User controls uses my Edit control.  If I load (just for
editing) the User control inside of VB everything is fine.  But if I try to
edit a normal VB form that contains this "special" user control, VB5 (SP3)
crashes.  If I go in with the Visual C++ de{*filter*} and jump around the
OnActivateInPlace call, the form comes up fine.

So has anyone used this OnActivateInPlace call in COleControl?
What does VB do differently with user controls?

Any ideas are appreciated,
Juan Foegen

Tue, 20 Jun 2000 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Help: BorderStyle property don't work for subclassed Edit control

2. Subclassed ActiveX edit control

3. SubClassed Edit in VB

4. MFC controls used in VB

5. Question: Catching errors from a VB ActiveX control in Visual C++ using MFC

6. Key/tab problems using VB ActiveX controls in MFC CView and derived classes or PropertyPage

7. VB6 crashes when using MFC based controls....any solutions?? (VB controls, hosting MFC controls)

8. HELP! Creating a subclassed control in VB

9. Problems with loading ActiveX control made in VC++ 6.0 using MFC

10. VB or MFC Application using Informix ODBC Driver

11. VB or MFC Application using Informix ODBC Driver

12. VB or MFC Application using Informix ODBC Driver


Powered by phpBB® Forum Software