CProgressCtrl::Create

BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );

Return Value

TRUE if the CProgressCtrl object is successfully created; otherwise FALSE.

Parameters

dwStyle

Specifies the progress bar control’s style. Apply any combination of window styles, in addition to the following progress bar control styles, to the control:

rect

Specifies the progress bar control’s size and position. It can be either a CRect object or a RECT structure. Because the control must be a child window, the specified coordinates are relative to the client area of the pParentWnd.

pParentWnd

Specifies the progress bar control’s parent window, usually a CDialog. It must not be NULL.

nID

Specifies the progress bar control’s ID.

Remarks

You construct a CProgressCtrl object in two steps. First call the constructor, which creates the CProgressCtrl object; then call Create, which creates the progress bar control.

Example

CProgressCtrl myCtrl;

// Create a smooth child progress control.
myCtrl.Create(WS_CHILD|WS_VISIBLE|PBS_SMOOTH, CRect(10,10,200,30), 
   pParentWnd, 1);

CProgressCtrl OverviewClass MembersHierarchy Chart

See Also   CProgressCtrl::CProgressCtrl