How to trigger onCreate (COleControl) in Edit-mode PowerPoint

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;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top