CStatusBarCtrl 状态栏控件

CStatusBarCtrl m_StatusBar;//对话框类中的成员变量

OnInitDialog()函数体中添加:


m_StatusBar.Create(WS_CHILD|WS_VISIBLE|SBT_OWNERDRAW, CRect(0,0,0,0), this, 0);//Creates a status bar control and attaches it to a CStatusBarCtrl object. int iPaneDim[3] = {100,200,-1}; m_StatusBar.SetParts(3,iPaneDim); m_StatusBar.SetText(_T("aaaaa"),0,0); m_StatusBar.SetText(_T("bbbbb"),1,0); m_StatusBar.SetText(_T("ccccc"),2,0);

你可能感兴趣的:(CStatusBarCtrl 状态栏控件)