81 DECLARE_WND_SUPERCLASS(_T(
"CStatusBarPlus"), CMultiPaneStatusBarCtrl::GetWndClassName())
88 virtual BOOL
SubclassStatusBar(HWND hFrameWnd, UINT ProgressBarCtlID, UINT style_flags = 0);
112 LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
115 MESSAGE_HANDLER(WM_SIZE, OnSize)
116 CHAIN_MSG_MAP(CMultiPaneStatusBarCtrl)
CStatusBarPlus() noexcept
int GetProgressBarPane() const
Default : 2.
void SetProgressBarPane(int pane_index)
Select the pane to contain the embedded CProgressBarCtrl.
CProgressBarCtrl m_ProgressBar
virtual BOOL SubclassStatusBar(HWND hFrameWnd, UINT ProgressBarCtlID, UINT style_flags=0)
SubclassStatusBar subclasses a pre-existing status bar and creates a default 3 panes with a progress ...
virtual ~CStatusBarPlus()
A CMultiPaneStatusBarCtrl descendant with a child CProgressBarCtrl that can be embedded in a user-sel...
BOOL SetPaneStyle(int pane_index, UINT flags)
Valid style flags are 0 (sunken - no longer works on Win10), SBT_NOBORDERS, SBT_OWNERDRAW, SBT_POPOUT, SBT_RTLREADING and SBT_NOTABPARSING. Specify only one per pane; see the MSDN documentation for the SB_SETTEXT message for more detail.
CProgressBarCtrl & ProgressBar()
Returns a reference to the embedded CProgressBarCtrl.
virtual void UnSubclassStatusBar()
Release the status bar and destroy the embedded progress bar control.
int GetProgressBarMargin() const
Default : 2.
void SetProgressBarMargin(int margin)
Defines the margin around the embedded CProgressBarCtrl, within the pane client area. Make sure not to make this value too big.