示例#1
0
	BOOL CDuiActiveX::InitActiveX()
	{
		BOOL bRet=m_axContainer->CreateControl(m_rcWindow,m_clsid,m_clsCtx);
		if(bRet)
		{
			m_axContainer->ActivateAx(NULL);
			SetActiveXVisible(IsVisible(TRUE));
		}
		OnInitActiveXFinished();
		return bRet;
	}
示例#2
0
	void CDuiActiveX::OnShowWindow( BOOL bShow, UINT nStatus )
	{
		__super::OnShowWindow(bShow, nStatus);

		if(bShow && m_bDelayInit)
		{
			InitActiveX();//窗口显示时才初始化
			m_bDelayInit=FALSE;
		}

		SetActiveXVisible(bShow);
	}
示例#3
0
    void SActiveX::OnShowWindow( BOOL bShow, UINT nStatus )
    {
        __super::OnShowWindow(bShow, nStatus);

        if(IsVisible(TRUE) && m_bDelayInit)
        {
            InitActiveX();//窗口显示时才初始化
            m_bDelayInit=FALSE;
        }

        SetActiveXVisible(IsVisible(TRUE));
    }
示例#4
0
 BOOL SActiveX::InitActiveX()
 {
     BOOL bRet=m_axContainer->CreateControl(m_clsid,m_clsCtx);
     if(bRet)
     {
         CRect rcClient;
         GetClientRect(&rcClient);
         m_axContainer->ActivateAx(NULL);
         SetActiveXVisible(IsVisible(TRUE));
         m_axContainer->OnPosRectChange(rcClient);        
     }
     OnInitActiveXFinished();
     return bRet;
 }