PANEINFOEX Overview

The SECCustomStatusBar adds several new configurable attributes to your frame window’s status bar.  PANEINFOEX is a structure which aggregates all attributes of one pane of a custom status bar. All attributes introduced by SECCustomStatusBar and even those defined by its SECStatusBar base class are included. By aggregating all attributes into one data structure, it becomes much more convenient to set and/or retrieve pane attributes. For this reason, both  SECCustomStatusBar::SetPaneInfoEx and  SECCustomStatusBar::GetPaneInfoEx expect a  PANEINFOEX type argument.

See the STATBAR sample in the \SAMPLES\TOOLKIT\STANDARD\UIEXT\STATBAR directory for a demonstration of how  PANEINFOEX is used by  SECCustomStatusBar to provide custom status bar handling.

Example

The following code fragment shows how flags must be set for each attribute you want a status bar pane to have:

// Configure the second pane to display the light bitmap and use the gripping hand cursor.
PANEINFOEX pex;
pex.iIndex = 2;
pex.hCursor = AfxGetApp()->LoadCursor(IDC_GRIPPING_HAND);
pex.pBitmap = m_pBitmap;
pex.iFlags = SBP_CURSOR | SBP_BITMAP;
m_wndStatusBar.SetPaneInfoEx(&pex);

Developer Notes

SBP_TEXT, SBP_BITMAP, and SBP_STYLE are mutually exclusive.

See Also

SECCustomStatusBar  PANEINFOEX

Custom status bar styles

Custom status bar "window-pane" styles

SECCustomStatusBar::SetPaneInfoEx

SECCustomStatusBar::GetPaneInfoEx