description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: COleIPFrameWnd Class |
COleIPFrameWnd Class |
11/04/2016 |
|
|
24abb2cb-826c-4dda-a287-d8a8900a5763 |
The base for your application's in-place editing window.
class COleIPFrameWnd : public CFrameWnd
Name | Description |
---|---|
COleIPFrameWnd::COleIPFrameWnd | Constructs a COleIPFrameWnd object. |
Name | Description |
---|---|
COleIPFrameWnd::OnCreateControlBars | Called by the framework when an item is activated for in-place editing. |
COleIPFrameWnd::RepositionFrame | Called by the framework to reposition the in-place editing window. |
This class creates and positions control bars within the container application's document window. It also handles notifications generated by an embedded COleResizeBar object when the user resizes the in-place editing window.
For more information on using COleIPFrameWnd
, see the article Activation.
COleIPFrameWnd
Header: afxole.h
Constructs a COleIPFrameWnd
object and initializes its in-place state information, which is stored in a structure of type OLEINPLACEFRAMEINFO.
COleIPFrameWnd();
For more information, see OLEINPLACEFRAMEINFO in the Windows SDK.
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);
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.
Nonzero on success; otherwise, 0.
The default implementation does nothing. Override this function to perform any special processing required when control bars are created.
The framework calls the RepositionFrame
member function to lay out control bars and reposition the in-place editing window so all of it is visible.
virtual void RepositionFrame(
LPCRECT lpPosRect,
LPCRECT lpClipRect);
lpPosRect
Pointer to a RECT
structure or a CRect
object containing the in-place frame window's current position coordinates, in pixels, relative to the client area.
lpClipRect
Pointer to a RECT
structure or a CRect
object containing the in-place frame window's current clipping-rectangle coordinates, in pixels, relative to the client area.
Layout of control bars in the container window differs from that performed by a non-OLE frame window. The non-OLE frame window calculates the positions of control bars and other objects from a given frame-window size, as in a call to CFrameWnd::RecalcLayout. The client area is what remains after space for control bars and other objects is subtracted. A COleIPFrameWnd
window, on the other hand, positions toolbars in accordance with a given client area. In other words, CFrameWnd::RecalcLayout
works "from the outside in," whereas COleIPFrameWnd::RepositionFrame
works "from the inside out."
MFC Sample HIERSVR
CFrameWnd Class
Hierarchy Chart
CFrameWnd Class