1:添加字符窜资源String Tab
2:CStatusBar m_wndStatusBar;
3:在OnInitDialog()中加入
CRect rect;
GetClientRect(rect);
if(!m_wndStatusBar.Create(this)||!m_wndStatusBar.SetIndicators(indicators,
sizeof(indicators)/sizeof(UINT)))
{
TRACE0("未能创建状态栏\n");
return -1;
}
m_wndStatusBar.MoveWindow(0,rect.bottom-30,rect.right,30);
4:在实现文件中预编译头后面加入以下代码
static UINT indicators[]=
{
IDS_PANEL1,
IDS_PANEL2,
};