How to trigger onCreate (COleControl) in Edit-mode PowerPoint
- From: "Dankung" <Dankung@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 26 May 2005 04:33:01 -0700
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;
}
.
- Prev by Date: Word Automation opening datasource multiple times
- Next by Date: Inplace activation of MS word -> not possible to edit page headers
- Previous by thread: Word Automation opening datasource multiple times
- Next by thread: Inplace activation of MS word -> not possible to edit page headers
- Index(es):
Relevant Pages
|