MFC
Class CControlBar
CObject
|
+--CCmdTarget
|
+--CWnd
|
+--CControlBar
in AFXEXT.H
- Direct Known Subclasses:
- CDialogBar, CDockBar, COleResizeBar, CReBar, CStatusBar, CToolBar
- class CControlBar
- extends CWnd
| Fields inherited from class CWnd |
m_hWnd, wndTop, wndBottom, wndTopMost, wndNoTopMost, m_hWndOwner, m_nFlags, m_pfnSuper, m_nMsgDragList, m_nModalResult, m_pDropTarget, m_pCtrlCont, m_pCtrlSite, messageMap |
| Fields inherited from class CCmdTarget |
messageMap, commandMap, dispatchMap, connectionMap, interfaceMap, eventsinkMap, m_dwRef, m_pOuterUnknown, m_xInnerUnknown, m_xDispatch, m_bResultExpected, m_xConnPtContainer |
|
Method Summary |
BOOL |
AllocElements( int nElements, int cbElement )
|
virtual CSize |
CalcDynamicLayout( int nLength, DWORD nMode )
|
virtual CSize |
CalcFixedLayout( BOOL bStretch, BOOL bHorz )
|
void |
CalcInsideRect( CRect& rect, BOOL bHorz ) const
|
virtual void |
DelayShow( BOOL bShow )
|
virtual BOOL |
DestroyWindow()
|
virtual void |
DoPaint( CDC* pDC )
|
void |
DrawBorders( CDC* pDC, CRect& rect )
|
void |
DrawGripper( CDC* pDC, const CRect& rect )
|
void |
EnableDocking( DWORD dwDockStyle )
|
void |
EraseNonClient()
|
void |
GetBarInfo( CControlBarInfo* pInfo )
|
DWORD |
GetBarStyle()
|
CRect |
GetBorders() const
|
int |
GetCount() const
|
CFrameWnd* |
GetDockingFrame() const
|
virtual BOOL |
IsDockBar() const
|
BOOL |
IsFloating() const
|
virtual BOOL |
IsVisible() const
|
virtual void |
OnBarStyleChange( DWORD dwOldStyle, DWORD dwNewStyle )
|
afx_msg int |
OnCreate( LPCREATESTRUCT lpcs )
|
afx_msg HBRUSH |
OnCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor )
|
afx_msg void |
OnDestroy()
|
afx_msg LRESULT |
OnHelpHitTest( WPARAM wParam, LPARAM lParam )
|
afx_msg LRESULT |
OnIdleUpdateCmdUI( WPARAM wParam, LPARAM lParam )
|
afx_msg void |
OnInitialUpdate()
|
afx_msg void |
OnLButtonDblClk( UINT nFlags, CPoint pt )
|
afx_msg void |
OnLButtonDown( UINT nFlags, CPoint pt )
|
afx_msg int |
OnMouseActivate( CWnd* pDesktopWnd, UINT nHitTest, UINT nMsg )
|
afx_msg void |
OnPaint()
|
afx_msg LRESULT |
OnSizeParent( WPARAM wParam, LPARAM lParam )
|
afx_msg void |
OnTimer( UINT nIDEvent )
|
virtual void |
OnUpdateCmdUI( CFrameWnd* pTarget, BOOL bDisableIfNoHndler )= 0
|
afx_msg void |
OnWindowPosChanging( LPWINDOWPOS lpWndPos )
|
virtual void |
PostNcDestroy()
|
virtual BOOL |
PreCreateWindow( CREATESTRUCT& cs )
|
virtual BOOL |
PreTranslateMessage( MSG* pMsg )
|
virtual DWORD |
RecalcDelayShow( AFX_SIZEPARENTPARAMS* lpLayout )
|
void |
ResetTimer( UINT nEvent, UINT nTime )
|
void |
SetBarInfo( CControlBarInfo* pInfo, CFrameWnd* pFrameWnd )
|
void |
SetBarStyle( DWORD dwStyle )
|
void |
SetBorders( LPCRECT lpRect )
|
void |
SetBorders( int cxLeft = 0, int cyTop = 0, int cxRight = 0, int cyBottom = 0 )
|
virtual BOOL |
SetStatusText( int nHit )
|
virtual LRESULT |
WindowProc( UINT nMsg, WPARAM wParam, LPARAM lParam )
|
| Methods inherited from class CWnd |
GetCurrentMessage, HWND, operator==, operator!=, GetSafeHwnd, GetStyle, GetExStyle, ModifyStyle, ModifyStyleEx, GetOwner, SetOwner, FromHandle, FromHandlePermanent, DeleteTempMap, Attach, Detach, PreSubclassWindow, SubclassWindow, SubclassDlgItem, UnsubclassWindow, ExecuteDlgInit, ExecuteDlgInit, Create, CreateEx, CreateEx, CreateControl, CreateControl, CreateControl, GetControlUnknown, DestroyWindow, PreCreateWindow, CalcWindowRect, GetDlgCtrlID, SetDlgCtrlID, GetDlgItem, GetDlgItem, GetDescendantWindow, SendMessageToDescendants, GetParentFrame, GetTopLevelParent, GetTopLevelOwner, GetParentOwner, GetTopLevelFrame, GetSafeOwner, SendMessage, PostMessage, SendNotifyMessage, SendChildNotifyLastMsg, IsDialogMessage, SetWindowText, GetWindowText, GetWindowText, GetWindowTextLength, SetFont, GetFont, GetMenu, SetMenu, DrawMenuBar, GetSystemMenu, HiliteMenuItem, IsIconic, IsZoomed, MoveWindow, MoveWindow, SetWindowRgn, GetWindowRgn, SetWindowPos, ArrangeIconicWindows, BringWindowToTop, GetWindowRect, GetClientRect, GetWindowPlacement, SetWindowPlacement, ClientToScreen, ClientToScreen, ScreenToClient, ScreenToClient, MapWindowPoints, MapWindowPoints, BeginPaint, EndPaint, GetDC, GetWindowDC, ReleaseDC, Print, PrintClient, UpdateWindow, SetRedraw, GetUpdateRect, GetUpdateRgn, Invalidate, InvalidateRect, InvalidateRgn, ValidateRect, ValidateRgn, ShowWindow, IsWindowVisible, ShowOwnedPopups, GetDCEx, LockWindowUpdate, UnlockWindowUpdate, RedrawWindow, EnableScrollBar, SetTimer, KillTimer, EnableToolTips, EnableTrackingToolTips, CancelToolTips, FilterToolTipMessage, OnToolHitTest, IsWindowEnabled, EnableWindow, GetActiveWindow, SetActiveWindow, SetForegroundWindow, GetForegroundWindow, GetCapture, SetCapture, GetFocus, SetFocus, GetDesktopWindow, CloseWindow, OpenIcon, CheckDlgButton, CheckRadioButton, GetCheckedRadioButton, DlgDirList, DlgDirListComboBox, DlgDirSelect, DlgDirSelectComboBox, GetDlgItemInt, GetDlgItemText, GetDlgItemText, GetNextDlgGroupItem, GetNextDlgTabItem, IsDlgButtonChecked, SendDlgItemMessage, SetDlgItemInt, SetDlgItemText, GetScrollPos, GetScrollRange, ScrollWindow, SetScrollPos, SetScrollRange, ShowScrollBar, EnableScrollBarCtrl, GetScrollBarCtrl, ScrollWindowEx, SetScrollInfo, GetScrollInfo, GetScrollLimit, ChildWindowFromPoint, ChildWindowFromPoint, FindWindow, GetNextWindow, GetTopWindow, GetWindow, GetLastActivePopup, IsChild, GetParent, SetParent, WindowFromPoint, FlashWindow, MessageBox, ChangeClipboardChain, SetClipboardViewer, OpenClipboard, GetClipboardOwner, GetClipboardViewer, GetOpenClipboardWindow, CreateCaret, CreateSolidCaret, CreateGrayCaret, GetCaretPos, SetCaretPos, HideCaret, ShowCaret, DragAcceptFiles, SetIcon, GetIcon, SetWindowContextHelpId, GetWindowContextHelpId, UpdateData, OnHelp, OnHelpIndex, OnHelpFinder, OnHelpUsing, WinHelp, RepositionBars, UpdateDialogControls, CenterWindow, RunModalLoop, ContinueModal, EndModalLoop, InvokeHelper, SetProperty, GetProperty, GetDSCCursor, BindDefaultProperty, BindProperty, OnCommand, OnNotify, OnActivate, OnActivateApp, OnActivateTopLevel, OnCancelMode, OnChildActivate, OnClose, OnContextMenu, OnCopyData, OnCreate, OnCtlColor, OnDestroy, OnEnable, OnEndSession, OnEnterIdle, OnEraseBkgnd, OnGetMinMaxInfo, OnHelpInfo, OnIconEraseBkgnd, OnKillFocus, OnMenuChar, OnMenuSelect, OnMove, OnPaint, OnParentNotify, OnQueryDragIcon, OnQueryEndSession, OnQueryNewPalette, OnQueryOpen, OnSetFocus, OnShowWindow, OnSize, OnTCard, OnWindowPosChanging, OnWindowPosChanged, OnNcActivate, OnNcCalcSize, OnNcCreate, OnNcDestroy, OnNcHitTest, OnNcLButtonDblClk, OnNcLButtonDown, OnNcLButtonUp, OnNcMButtonDblClk, OnNcMButtonDown, OnNcMButtonUp, OnNcMouseMove, OnNcPaint, OnNcRButtonDblClk, OnNcRButtonDown, OnNcRButtonUp, OnDropFiles, OnPaletteIsChanging, OnSysChar, OnSysCommand, OnSysDeadChar, OnSysKeyDown, OnSysKeyUp, OnCompacting, OnDevModeChange, OnFontChange, OnPaletteChanged, OnSpoolerStatus, OnSysColorChange, OnTimeChange, OnSettingChange, OnWinIniChange, OnChar, OnDeadChar, OnHScroll, OnVScroll, OnKeyDown, OnKeyUp, OnLButtonDblClk, OnLButtonDown, OnLButtonUp, OnMButtonDblClk, OnMButtonDown, OnMButtonUp, OnMouseActivate, OnMouseMove, OnMouseWheel, OnRegisteredMouseWheel, OnRButtonDblClk, OnRButtonDown, OnRButtonUp, OnSetCursor, OnTimer, OnInitMenu, OnInitMenuPopup, OnAskCbFormatName, OnChangeCbChain, OnDestroyClipboard, OnDrawClipboard, OnHScrollClipboard, OnPaintClipboard, OnRenderAllFormats, OnRenderFormat, OnSizeClipboard, OnVScrollClipboard, OnCompareItem, OnDeleteItem, OnDrawItem, OnGetDlgCode, OnMeasureItem, OnCharToItem, OnVKeyToItem, OnMDIActivate, OnEnterMenuLoop, OnExitMenuLoop, OnStyleChanged, OnStyleChanging, OnSizing, OnMoving, OnCaptureChanged, OnDeviceChange, GetSuperWndProcAddr, DoDataExchange, BeginModalState, EndModalState, PreTranslateMessage, OnAmbientProperty, WindowProc, OnWndMsg, Default, DefWindowProc, PostNcDestroy, OnChildNotify, ReflectChildNotify, ReflectLastMsg, CheckAutoCenter, SubclassCtl3d, SubclassDlg3d, GrayCtlColor, OnGrayCtlColor, HandleFloatingSysCommand, IsTopParentActive, ActivateTopParent, WalkPreTranslateTree, GetDescendantWindow, SendMessageToDescendants, IsFrameWnd, OnFinalRelease, PreTranslateInput, ModifyStyle, ModifyStyleEx, _FilterToolTipMessage, _EnableToolTips, GetSafeOwner_, CreateDlg, CreateDlgIndirect, CreateDlgIndirect, InitControlContainer, SetOccDialogInfo, AttachControlSite, AttachControlSite, OnNTCtlColor, OnQuery3dControls, OnDisplayChange, OnDragList, GetMessageMap |
| Methods inherited from class CCmdTarget |
GetIDispatch, FromIDispatch, IsResultExpected, EnableAutomation, EnableConnections, BeginWaitCursor, EndWaitCursor, RestoreWaitCursor, EnumOleVerbs, DoOleVerb, OnCmdMsg, OnFinalRelease, IsInvokeAllowed, EnableTypeLib, GetTypeInfoOfGuid, GetDispatchIID, GetTypeInfoCount, GetTypeLibCache, GetTypeLib, GetNotSupported, SetNotSupported, GetRoutingView, GetRoutingFrame, GetRoutingView_, GetRoutingFrame_, GetMessageMap, GetCommandMap, GetDispatchMap, GetConnectionMap, GetInterfaceMap, GetEventSinkMap, EnableAggregation, ExternalDisconnect, GetControllingUnknown, InternalQueryInterface, InternalAddRef, InternalRelease, ExternalQueryInterface, ExternalAddRef, ExternalRelease, GetInterface, QueryAggregates, OnCreateAggregates, GetInterfaceHook, GetStandardProp, SetStandardProp, GetEntryCount, GetDispEntry, MemberIDFromName, GetStackSize, PushStackArgs, CallMemberFunc, OnEvent, GetEventSinkEntry, GetExtraConnectionPoints, GetConnectionHook |
m_bAutoDelete
public BOOL m_bAutoDelete;
m_cxDefaultGap
public int m_cxDefaultGap;
m_cxLeftBorder
public int m_cxLeftBorder;
m_cxRightBorder
public int m_cxRightBorder;
m_cyBottomBorder
public int m_cyBottomBorder;
m_cyTopBorder
public int m_cyTopBorder;
m_dwDockStyle
public DWORD m_dwDockStyle;
m_dwStyle
public DWORD m_dwStyle;
m_nCount
public int m_nCount;
m_nMRUWidth
public UINT m_nMRUWidth;
m_nStateFlags
public UINT m_nStateFlags;
m_pData
public void* m_pData;
m_pDockBar
public CDockBar* m_pDockBar;
m_pDockContext
public CDockContext* m_pDockContext;
m_pDockSite
public CFrameWnd* m_pDockSite;
CControlBar
protected CControlBar();
~CControlBar
public virtual ~CControlBar();
AllocElements
public BOOL AllocElements( int nElements, int cbElement );
CalcDynamicLayout
public virtual CSize CalcDynamicLayout( int nLength, DWORD nMode );
CalcFixedLayout
public virtual CSize CalcFixedLayout( BOOL bStretch, BOOL bHorz );
CalcInsideRect
public void CalcInsideRect( CRect& rect, BOOL bHorz ) const;
DelayShow
public virtual void DelayShow( BOOL bShow );
DestroyWindow
public virtual BOOL DestroyWindow();
DoPaint
public virtual void DoPaint( CDC* pDC );
DrawBorders
public void DrawBorders( CDC* pDC, CRect& rect );
DrawGripper
public void DrawGripper( CDC* pDC, const CRect& rect );
EnableDocking
public void EnableDocking( DWORD dwDockStyle );
EraseNonClient
public void EraseNonClient();
GetBarInfo
public void GetBarInfo( CControlBarInfo* pInfo );
GetBarStyle
public DWORD GetBarStyle();
GetBorders
public CRect GetBorders() const;
GetCount
public int GetCount() const;
GetDockingFrame
public CFrameWnd* GetDockingFrame() const;
IsDockBar
public virtual BOOL IsDockBar() const;
IsFloating
public BOOL IsFloating() const;
IsVisible
public virtual BOOL IsVisible() const;
OnBarStyleChange
public virtual void OnBarStyleChange( DWORD dwOldStyle, DWORD dwNewStyle );
OnCreate
public afx_msg int OnCreate( LPCREATESTRUCT lpcs );
OnCtlColor
public afx_msg HBRUSH OnCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor );
OnDestroy
public afx_msg void OnDestroy();
OnHelpHitTest
public afx_msg LRESULT OnHelpHitTest( WPARAM wParam, LPARAM lParam );
OnIdleUpdateCmdUI
public afx_msg LRESULT OnIdleUpdateCmdUI( WPARAM wParam, LPARAM lParam );
OnInitialUpdate
public afx_msg void OnInitialUpdate();
OnLButtonDblClk
public afx_msg void OnLButtonDblClk( UINT nFlags, CPoint pt );
OnLButtonDown
public afx_msg void OnLButtonDown( UINT nFlags, CPoint pt );
OnMouseActivate
public afx_msg int OnMouseActivate( CWnd* pDesktopWnd, UINT nHitTest, UINT nMsg );
OnPaint
public afx_msg void OnPaint();
OnSizeParent
public afx_msg LRESULT OnSizeParent( WPARAM wParam, LPARAM lParam );
OnTimer
public afx_msg void OnTimer( UINT nIDEvent );
OnUpdateCmdUI
public virtual void OnUpdateCmdUI( CFrameWnd* pTarget, BOOL bDisableIfNoHndler )= 0;
OnWindowPosChanging
public afx_msg void OnWindowPosChanging( LPWINDOWPOS lpWndPos );
PostNcDestroy
public virtual void PostNcDestroy();
PreCreateWindow
public virtual BOOL PreCreateWindow( CREATESTRUCT& cs );
PreTranslateMessage
public virtual BOOL PreTranslateMessage( MSG* pMsg );
RecalcDelayShow
public virtual DWORD RecalcDelayShow( AFX_SIZEPARENTPARAMS* lpLayout );
ResetTimer
public void ResetTimer( UINT nEvent, UINT nTime );
SetBarInfo
public void SetBarInfo( CControlBarInfo* pInfo, CFrameWnd* pFrameWnd );
SetBarStyle
public void SetBarStyle( DWORD dwStyle );
SetBorders
public void SetBorders( LPCRECT lpRect );
SetBorders
public void SetBorders( int cxLeft = 0, int cyTop = 0, int cxRight = 0, int cyBottom = 0 );
SetStatusText
public virtual BOOL SetStatusText( int nHit );
WindowProc
public virtual LRESULT WindowProc( UINT nMsg, WPARAM wParam, LPARAM lParam );