GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 10-Jul-2006, 14:49
sirnowy sirnowy is offline
New Member
 
Join Date: Jul 2006
Posts: 2
sirnowy is on a distinguished road

ActiveX control inside ActiveX control ?


Hello....i have a problem.
Im creating my own ActiveX control. Simpel FormView with buttons. But i also want to add other ActiveX control inside this formview...i mean Web Browser. Although program compiles when i test it in activex test container i see only white reactangle. The problem occurs only when i add web browser activex control to my view. Could you help me? Thx
  #2  
Old 13-Jul-2006, 02:31
sirnowy sirnowy is offline
New Member
 
Join Date: Jul 2006
Posts: 2
sirnowy is on a distinguished road

Re: ActiveX control inside ActiveX control ?


Ok problem solved. You have to add AfxEnableControlContainer(); in InitInstance function of ActiveX container.

PHP Code:

// CActiveXApp::InitInstance - DLL initialization

BOOL ActiveXApp::InitInstance()
{
    BOOL bInit = COleControlModule::InitInstance();

    if (bInit)
    {
        AfxEnableControlContainer();
    }

    return bInit;
} 


 
 

Recent GIDBlogDeveloping GUIs with wxPython (Part 2) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about MFC activeX control pcxgamer MS Visual C++ / MFC Forum 0 18-Jan-2006 17:16
Creating an ATL ActiveX control that uses DirectX 8 WillyWonka MS Visual C++ / MFC Forum 0 10-Jun-2005 11:39
How to redirect mouse clicks to an ActiveX control? skruss MS Visual C++ / MFC Forum 0 10-Feb-2005 13:17
Combobox on ActiveX Control VC++ escalope MS Visual C++ / MFC Forum 0 05-Jan-2005 07:30
Help! Some basal questions about MFC xutingnjupt MS Visual C++ / MFC Forum 1 05-Dec-2004 03:38

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:27.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.