Udostępnij za pośrednictwem


COleIPFrameWnd::OnCreateControlBars

The framework calls the OnCreateControlBars function when an item is activated for in-place editing.

virtual BOOL OnCreateControlBars(
   CWnd* pWndFrame,
   CWnd* pWndDoc 
);
virtual BOOL OnCreateControlBars(
   CFrameWnd* pWndFrame,
   CFrameWnd* pWndDoc 
);

Parameters

  • pWndFrame
    Pointer to the container application's frame window.

  • pWndDoc
    Pointer to the container's document-level window. Can be NULL if the container is an SDI application.

Return Value

Nonzero on success; otherwise, 0.

Remarks

The default implementation does nothing. Override this function to perform any special processing required when control bars are created.

Requirements

Header: afxole.h

See Also

Reference

COleIPFrameWnd Class

Hierarchy Chart

COleServerDoc::ActivateInPlace

Other Resources

COleIPFrameWnd Members