CStatusBar problem
-
With CFrameWnd I can simply insert status bar by CStatusBar x(this) in OnCreate. But with CWnd it doesn't work. What else have I to do?
hi.. firstly you should define indicators names,like that.
static UINT indicators[] ={ID_SEPARATOR};
then you must add "ID_SEPARATOR" to string table on your project.Lastly You must write this code in OnCreate.
m_wndStatusBar.Create(this);
m_wndStatusBar.SetIndicators(indicators,sizeof(indicators)/sizeof(UINT));it is not enough what you had only created for that. Good Work.
-
hi.. firstly you should define indicators names,like that.
static UINT indicators[] ={ID_SEPARATOR};
then you must add "ID_SEPARATOR" to string table on your project.Lastly You must write this code in OnCreate.
m_wndStatusBar.Create(this);
m_wndStatusBar.SetIndicators(indicators,sizeof(indicators)/sizeof(UINT));it is not enough what you had only created for that. Good Work.