MFC
Class CToolBarCtrl
CObject
|
+--CCmdTarget
|
+--CWnd
|
+--CToolBarCtrl
in AFXCMN.H
- class CToolBarCtrl
- 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 |
int |
AddBitmap( int nNumButtons, UINT nBitmapID )
|
int |
AddBitmap( int nNumButtons, CBitmap* pBitmap )
|
BOOL |
AddButtons( int nNumButtons, LPTBBUTTON lpButtons )
|
int |
AddString( UINT nStringID )
|
int |
AddStrings( LPCTSTR lpszStrings )
|
void |
AutoSize()
|
BOOL |
CheckButton( int nID, BOOL bCheck = TRUE )
|
UINT |
CommandToIndex( UINT nID ) const
|
BOOL |
Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID )
|
void |
Customize()
|
BOOL |
DeleteButton( int nIndex )
|
BOOL |
EnableButton( int nID, BOOL bEnable = TRUE )
|
BOOL |
GetAnchorHighlight() const
|
UINT |
GetBitmapFlags() const
|
BOOL |
GetButton( int nIndex, LPTBBUTTON lpButton ) const
|
int |
GetButtonCount() const
|
BOOL |
GetButtonInfo( int nID, TBBUTTONINFO* ptbbi ) const
|
DWORD |
GetButtonSize() const
|
CImageList* |
GetDisabledImageList() const
|
HRESULT |
GetDropTarget( IDropTarget** ppDropTarget ) const
|
DWORD |
GetExtendedStyle() const
|
CImageList* |
GetHotImageList() const
|
int |
GetHotItem() const
|
CImageList* |
GetImageList() const
|
void |
GetInsertMark( TBINSERTMARK* ptbim ) const
|
COLORREF |
GetInsertMarkColor() const
|
BOOL |
GetItemRect( int nIndex, LPRECT lpRect ) const
|
BOOL |
GetMaxSize( LPSIZE pSize ) const
|
int |
GetMaxTextRows() const
|
BOOL |
GetRect( int nID, LPRECT lpRect ) const
|
int |
GetRows() const
|
int |
GetState( int nID ) const
|
DWORD |
GetStyle() const
|
CToolTipCtrl* |
GetToolTips() const
|
BOOL |
HideButton( int nID, BOOL bHide = TRUE )
|
int |
HitTest( LPPOINT ppt ) const
|
BOOL |
Indeterminate( int nID, BOOL bIndeterminate = TRUE )
|
BOOL |
InsertButton( int nIndex, LPTBBUTTON lpButton )
|
BOOL |
InsertMarkHitTest( LPPOINT ppt, LPTBINSERTMARK ptbim ) const
|
BOOL |
IsButtonChecked( int nID ) const
|
BOOL |
IsButtonEnabled( int nID ) const
|
BOOL |
IsButtonHidden( int nID ) const
|
BOOL |
IsButtonHighlighted( int nID ) const
|
BOOL |
IsButtonIndeterminate( int nID ) const
|
BOOL |
IsButtonPressed( int nID ) const
|
void |
LoadImages( int iBitmapID, HINSTANCE hinst )
|
BOOL |
MapAccelerator( TCHAR chAccel, UINT* pIDBtn )
|
BOOL |
MarkButton( int nID, BOOL fHighlight = TRUE )
|
BOOL |
MoveButton( UINT nOldPos, UINT nNewPos )
|
protected afx_msg int |
OnCreate( LPCREATESTRUCT lpCreateStruct )
|
BOOL |
PressButton( int nID, BOOL bPress = TRUE )
|
void |
RestoreState( HKEY hKeyRoot, LPCTSTR lpszSubKey, LPCTSTR lpszValueName )
|
void |
SaveState( HKEY hKeyRoot, LPCTSTR lpszSubKey, LPCTSTR lpszValueName )
|
BOOL |
SetAnchorHighlight( BOOL fAnchor = TRUE )
|
BOOL |
SetBitmapSize( CSize size )
|
BOOL |
SetButtonInfo( int nID, TBBUTTONINFO* ptbbi )
|
BOOL |
SetButtonSize( CSize size )
|
void |
SetButtonStructSize( int nSize )
|
BOOL |
SetButtonWidth( int cxMin, int cxMax )
|
BOOL |
SetCmdID( int nIndex, UINT nID )
|
CImageList* |
SetDisabledImageList( CImageList* pImageList )
|
DWORD |
SetDrawTextFlags( DWORD dwMask, DWORD dwDTFlags )
|
DWORD |
SetExtendedStyle( DWORD dwExStyle )
|
CImageList* |
SetHotImageList( CImageList* pImageList )
|
int |
SetHotItem( int nHot )
|
CImageList* |
SetImageList( CImageList* pImageList )
|
BOOL |
SetIndent( int iIndent )
|
void |
SetInsertMark( TBINSERTMARK* ptbim )
|
COLORREF |
SetInsertMarkColor( COLORREF clrNew )
|
BOOL |
SetMaxTextRows( int iMaxRows )
|
void |
SetOwner( CWnd* pWnd )
|
void |
SetRows( int nRows, BOOL bLarger, LPRECT lpRect )
|
BOOL |
SetState( int nID, UINT nState )
|
void |
SetStyle( DWORD dwStyle )
|
void |
SetToolTips( CToolTipCtrl* pTip )
|
| 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 |
CToolBarCtrl
public CToolBarCtrl();
~CToolBarCtrl
public virtual ~CToolBarCtrl();
AddBitmap
public int AddBitmap( int nNumButtons, UINT nBitmapID );
AddBitmap
public int AddBitmap( int nNumButtons, CBitmap* pBitmap );
AddButtons
public BOOL AddButtons( int nNumButtons, LPTBBUTTON lpButtons );
AddString
public int AddString( UINT nStringID );
AddStrings
public int AddStrings( LPCTSTR lpszStrings );
AutoSize
public void AutoSize();
CheckButton
public BOOL CheckButton( int nID, BOOL bCheck = TRUE );
CommandToIndex
public UINT CommandToIndex( UINT nID ) const;
Create
public BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );
Customize
public void Customize();
DeleteButton
public BOOL DeleteButton( int nIndex );
EnableButton
public BOOL EnableButton( int nID, BOOL bEnable = TRUE );
GetAnchorHighlight
public BOOL GetAnchorHighlight() const;
GetBitmapFlags
public UINT GetBitmapFlags() const;
GetButton
public BOOL GetButton( int nIndex, LPTBBUTTON lpButton ) const;
GetButtonCount
public int GetButtonCount() const;
GetButtonInfo
public BOOL GetButtonInfo( int nID, TBBUTTONINFO* ptbbi ) const;
GetButtonSize
public DWORD GetButtonSize() const;
GetDisabledImageList
public CImageList* GetDisabledImageList() const;
GetDropTarget
public HRESULT GetDropTarget( IDropTarget** ppDropTarget ) const;
GetExtendedStyle
public DWORD GetExtendedStyle() const;
GetHotImageList
public CImageList* GetHotImageList() const;
GetHotItem
public int GetHotItem() const;
GetImageList
public CImageList* GetImageList() const;
GetInsertMark
public void GetInsertMark( TBINSERTMARK* ptbim ) const;
GetInsertMarkColor
public COLORREF GetInsertMarkColor() const;
GetItemRect
public BOOL GetItemRect( int nIndex, LPRECT lpRect ) const;
GetMaxSize
public BOOL GetMaxSize( LPSIZE pSize ) const;
GetMaxTextRows
public int GetMaxTextRows() const;
GetRect
public BOOL GetRect( int nID, LPRECT lpRect ) const;
GetRows
public int GetRows() const;
GetState
public int GetState( int nID ) const;
GetStyle
public DWORD GetStyle() const;
GetToolTips
public CToolTipCtrl* GetToolTips() const;
HideButton
public BOOL HideButton( int nID, BOOL bHide = TRUE );
HitTest
public int HitTest( LPPOINT ppt ) const;
Indeterminate
public BOOL Indeterminate( int nID, BOOL bIndeterminate = TRUE );
InsertButton
public BOOL InsertButton( int nIndex, LPTBBUTTON lpButton );
InsertMarkHitTest
public BOOL InsertMarkHitTest( LPPOINT ppt, LPTBINSERTMARK ptbim ) const;
IsButtonChecked
public BOOL IsButtonChecked( int nID ) const;
IsButtonEnabled
public BOOL IsButtonEnabled( int nID ) const;
IsButtonHidden
public BOOL IsButtonHidden( int nID ) const;
IsButtonHighlighted
public BOOL IsButtonHighlighted( int nID ) const;
IsButtonIndeterminate
public BOOL IsButtonIndeterminate( int nID ) const;
IsButtonPressed
public BOOL IsButtonPressed( int nID ) const;
LoadImages
public void LoadImages( int iBitmapID, HINSTANCE hinst );
MapAccelerator
public BOOL MapAccelerator( TCHAR chAccel, UINT* pIDBtn );
MarkButton
public BOOL MarkButton( int nID, BOOL fHighlight = TRUE );
MoveButton
public BOOL MoveButton( UINT nOldPos, UINT nNewPos );
OnCreate
protected afx_msg int OnCreate( LPCREATESTRUCT lpCreateStruct );
PressButton
public BOOL PressButton( int nID, BOOL bPress = TRUE );
RestoreState
public void RestoreState( HKEY hKeyRoot, LPCTSTR lpszSubKey, LPCTSTR lpszValueName );
SaveState
public void SaveState( HKEY hKeyRoot, LPCTSTR lpszSubKey, LPCTSTR lpszValueName );
SetAnchorHighlight
public BOOL SetAnchorHighlight( BOOL fAnchor = TRUE );
SetBitmapSize
public BOOL SetBitmapSize( CSize size );
SetButtonInfo
public BOOL SetButtonInfo( int nID, TBBUTTONINFO* ptbbi );
SetButtonSize
public BOOL SetButtonSize( CSize size );
SetButtonStructSize
public void SetButtonStructSize( int nSize );
SetButtonWidth
public BOOL SetButtonWidth( int cxMin, int cxMax );
SetCmdID
public BOOL SetCmdID( int nIndex, UINT nID );
SetDisabledImageList
public CImageList* SetDisabledImageList( CImageList* pImageList );
SetDrawTextFlags
public DWORD SetDrawTextFlags( DWORD dwMask, DWORD dwDTFlags );
SetExtendedStyle
public DWORD SetExtendedStyle( DWORD dwExStyle );
SetHotImageList
public CImageList* SetHotImageList( CImageList* pImageList );
SetHotItem
public int SetHotItem( int nHot );
SetImageList
public CImageList* SetImageList( CImageList* pImageList );
SetIndent
public BOOL SetIndent( int iIndent );
SetInsertMark
public void SetInsertMark( TBINSERTMARK* ptbim );
SetInsertMarkColor
public COLORREF SetInsertMarkColor( COLORREF clrNew );
SetMaxTextRows
public BOOL SetMaxTextRows( int iMaxRows );
SetOwner
public void SetOwner( CWnd* pWnd );
SetRows
public void SetRows( int nRows, BOOL bLarger, LPRECT lpRect );
SetState
public BOOL SetState( int nID, UINT nState );
SetStyle
public void SetStyle( DWORD dwStyle );
SetToolTips
public void SetToolTips( CToolTipCtrl* pTip );