sujan.dasmahapa 0 Light Poster

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

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");
}

it's returning false. please help me.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.