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



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


.



Relevant Pages

  • Re: 0/1 Knapsack problem, what am I doing wrong
    ... Thx, I was secretly hoping for something like that... ... converted to int so the effect is that M only holds integers. ... You need to test inside the loop as well. ... Everything will be okay ...
    (comp.lang.c)
  • Re: Hashtable
    ... public void AddKeyedValue(string key, int value) { ... Justin Rogers ... Blog: http://weblogs.asp.net/justin_rogers "MAY" wrote in message ... > Thx again. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: weird problem
    ... >> when I calculate it on a calculator ... so the debugger displayed 40 but in reality it ... was rounded off to 39 when casted to int. ... Thx for your reply ...
    (microsoft.public.vc.language)
  • Re: convert a string to all-lowercase string
    ... (I'm a newbye) ... Thx for the help:) ... int main{ ... if(isupper((unsigned char) c)) ...
    (comp.lang.c)
  • Re: conio.h --> window (int left, int top, int right, int bottom)
    ... > thx for the tips Daniel ... > Assume the follow is the layout of a console screen ... > X in the above console screen), I use window(int, int, int, int) method. ...
    (microsoft.public.dotnet.languages.csharp)