Muokkaa

Jaa


COleResizeBar Class

A type of control bar that supports resizing of in-place OLE items.

Syntax

class COleResizeBar : public CControlBar

Members

Public Constructors

Name Description
COleResizeBar::COleResizeBar Constructs a COleResizeBar object.

Public Methods

Name Description
COleResizeBar::Create Creates and initializes a Windows child window and associates it to the COleResizeBar object.

Remarks

COleResizeBar objects appear as a CRectTracker with a hatched border and outer resize handles.

COleResizeBar objects are usually embedded members of frame-window objects derived from the COleIPFrameWnd class.

For more information, see the article Activation.

Inheritance Hierarchy

CObject

CCmdTarget

CWnd

CControlBar

COleResizeBar

Requirements

Header: afxole.h

COleResizeBar::COleResizeBar

Constructs a COleResizeBar object.

COleResizeBar();

Remarks

Call Create to create the resize bar object.

COleResizeBar::Create

Creates a child window and associates it with the COleResizeBar object.

virtual BOOL Create(
    CWnd* pParentWnd,
    DWORD dwStyle = WS_CHILD | WS_VISIBLE,
    UINT nID = AFX_IDW_RESIZE_BAR);

Parameters

pParentWnd
Pointer to the parent window of the resize bar.

dwStyle
Specifies the window style attributes.

nID
The resize bar's child window ID.

Return Value

Nonzero if the resize bar was created; otherwise 0.

See also

MFC Sample SUPERPAD
CControlBar Class
Hierarchy Chart
COleServerDoc Class