Dave's Brain

Browse - Programming Tips - How do I make one of the bottom-right grippers on a statusbar?

Date: 2009sep22
OS: Windows
Framework: MFC
Language: C/C++
Keywords: gripper

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

Add a comment

Sign in to add a comment
Copyright © 2008-2017, 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.