Dave's Brain

Browse - programming tips - mfc gripper with statusbar

Date: 2009sep22
Platform: MFC
Language: C/C++

Q.  How do I make one of the bottom-right grippers on a statusbar?

A.  When creating the status bar use CCS_BOTTOM and SBARS_SIZEGRIP
like this:

BOOL CExampleDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// ...

	GetClientRect(&rect);
	m_pStatusBar = new CStatusBarCtrl;
	m_pStatusBar->Create(WS_CHILD|WS_VISIBLE|CCS_BOTTOM|SBARS_SIZEGRIP, rect, this, IDC_MY_STATUSBAR);
}
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2012, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Advertisements: