D
Dankung
this function is calling automatically by Powerpoint when in slide-show,how
to trigger this function in edit-mode,without slide show ?
thx.
Dankung
//==================== a piece of code
MPLEMENT_DYNCREATE(MyCtrl, COleControl)
...
...
int MyCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (COleControl::OnCreate( lpCreateStruct ) == -1)
return -1;
AfxEnableControlContainer();
if:IsWindow( m_Browser->m_hWnd))
return 0;
RECT rectClient;
GetClientRect(&rectClient);
m_Browser->Create(NULL, WS_VISIBLE | WS_CHILD & ~WS_VSCROLL, rectClient,
this, AFX_IDW_PANE_FIRST);
..
..
m_Browser->Redraw();
if(!m_objPropDlg)
m_objPropDlg = new CPropertiesDlg;
return 0;
}
to trigger this function in edit-mode,without slide show ?
thx.
Dankung
//==================== a piece of code
MPLEMENT_DYNCREATE(MyCtrl, COleControl)
...
...
int MyCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (COleControl::OnCreate( lpCreateStruct ) == -1)
return -1;
AfxEnableControlContainer();
if:IsWindow( m_Browser->m_hWnd))
return 0;
RECT rectClient;
GetClientRect(&rectClient);
m_Browser->Create(NULL, WS_VISIBLE | WS_CHILD & ~WS_VSCROLL, rectClient,
this, AFX_IDW_PANE_FIRST);
..
..
m_Browser->Redraw();
if(!m_objPropDlg)
m_objPropDlg = new CPropertiesDlg;
return 0;
}