I am trying to create a statusBar in the dialog but it's returning false. not creating the status bar please tell me whats going wrong in this. Thanks for any help. I am creating the status bar in the OnInitDialog() function
it's returning false. please help me.Code:CStatusBar m_wndStatusBar; // member variable in the dialog header. BOOL CDlgsViewDlg::OnInitDialog() { CDialog::OnInitDialog(); if (!m_wndStatusBar.Create(this) || !m_wndStatusBar.SetIndicators(indicators, sizeof(indicators)/sizeof(UINT))) { TRACE0("Failed to create status bar\n"); return FALSE; // fail to create } m_wndStatusBar.SetPaneText(0,L"MainWindow Initialized"); }




Reply With Quote