Partager via


CStatusBar::SetPaneInfo

Sets the specified indicator pane to a new ID, style, and width.

void SetPaneInfo(
   int nIndex,
   UINT nID,
   UINT nStyle,
   int cxWidth 
);

Parameters

  • nIndex
    Index of the indicator pane whose style is to be set.

  • nID
    New ID for the indicator pane.

  • nStyle
    New style for the indicator pane.

  • cxWidth
    New width for the indicator pane.

Remarks

The following indicator styles are supported:

  • SBPS_NOBORDERS   No 3-D border around the pane.

  • SBPS_POPOUT   Reverse border so that text "pops out."

  • SBPS_DISABLED   Do not draw text.

  • SBPS_STRETCH   Stretch pane to fill unused space. Only one pane per status bar can have this style.

  • SBPS_NORMAL   No stretch, borders, or pop-out.

Requirements

Header: afxext.h

See Also

Reference

CStatusBar Class

Hierarchy Chart

CStatusBar::GetPaneInfo

Other Resources

CStatusBar Members