VS2008下的MFC 问题
//小弟刚学MFC多多指教
//为什么我这样还是不能在状态栏已经添加的时间栏里显示时间呢?
static UINT indicators[] =
{
ID_SEPARATOR, // 状态行指示器
ID_INDICATOR_TIMER, //我想要的,已经在资源处添加了 ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,
};
CTime t = CTime::GetCurrentTime();
CString str = t.Format(L"%H:%M:%S");
int index = 0 ;
index=m_wndStatusBar.CommandToIndex(ID_INDICATOR_TIMER);
m_wndStatusBar.SetPaneText(index,str);
//经测试确实多了时间栏,但是我想要的时间栏却什么都没有显示。实在不懂了,拿上来问问