用SetPaneText()无法在CStatusBar中显示文字的问题,我用
if (!theApp.m_wndStatusBar.Create(this) ||
!theApp.m_wndStatusBar.SetIndicators(indicators,
sizeof(indicators)/sizeof(UINT)))
{
TRACE0("Failed to create status bar\n");
return -1; // fail to create
} theApp.m_wndStatusBar.SetPaneInfo(1,
theApp.m_wndStatusBar.GetItemID(1),
SBPS_NORMAL,
200);
设置了第二个(索引为1)ITEM的长度,设置是成功的,但是用SetPaneText()却无法在上面显示文字,请问是怎么回事
if (!theApp.m_wndStatusBar.Create(this) ||
!theApp.m_wndStatusBar.SetIndicators(indicators,
sizeof(indicators)/sizeof(UINT)))
{
TRACE0("Failed to create status bar\n");
return -1; // fail to create
} theApp.m_wndStatusBar.SetPaneInfo(1,
theApp.m_wndStatusBar.GetItemID(1),
SBPS_NORMAL,
200);
设置了第二个(索引为1)ITEM的长度,设置是成功的,但是用SetPaneText()却无法在上面显示文字,请问是怎么回事
int a = m_wndStatusBar.SetPaneText(index, str, TRUE);
返回值是 nonzero,应该是成功的,但是就是不能显示