构造在状态栏中显示一个窗格对象。
CMFCRibbonStatusBarPane(
UINT nCmdID,
LPCTSTR lpszText,
BOOL bIsStatic=FALSE,
HICON hIcon=NULL,
LPCTSTR lpszAlmostLargeText=NULL
);
CMFCRibbonStatusBarPane(
UINT nCmdID,
LPCTSTR lpszText,
HBITMAP hBmpAnimationList,
int cxAnimation=16,
COLORREF clrTrnsp=RGB(192,
192 1,
192) 1,
HICON hIcon=NULL,
BOOL bIsStatic=FALSE
);
CMFCRibbonStatusBarPane(
UINT nCmdID,
LPCTSTR lpszText,
UINT uiAnimationListResID,
int cxAnimation=16,
COLORREF clrTrnsp=RGB(192,
192 1,
192) 1,
HICON hIcon=NULL,
BOOL bIsStatic=FALSE
);
参数
[in] nCmdID
指定窗格的命令ID。[in] lpszText
指定在窗格中显示的文本字符串。[in] bIsStatic
如果 TRUE,状态窗格无法通过单击它显示或选择。[in] hIcon
指定句柄在窗格中显示的图标。[in] lpszAlmostLargeText
指定可由窗格中显示的最长的文本字符串。[in] hBmpAnimationList
指定处理对动画使用的图像列表。[in] cxAnimation
以像素为单位指定宽度,在对动画使用的图像的图标列表。[in] clrTrnsp
在图像指定为动画使用图像的透明的颜色列表。[in] uiAnimationListResID
指定动画使用图像的资源ID列表。
要求
标头: afxribbonstatusbarpane.h