crashrpt2
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
WTL::CCommandBarCtrlImpl< T, TBase, TWinTraits > Class Template Reference
Inheritance diagram for WTL::CCommandBarCtrlImpl< T, TBase, TWinTraits >:
WTL::CMDICommandBarCtrlImpl< T, TBase, TWinTraits >

Classes

struct  _MenuItemData
 
struct  _ToolBarData
 

Public Types

enum  _CmdBarDrawConstants { s_kcxGap = 1, s_kcxTextMargin = 2, s_kcxButtonMargin = 3, s_kcyButtonMargin = 3 }
 
enum  { _nMaxMenuItemTextLength = 100, _chChevronShortcut = _T('/') }
 
enum  { DT_HIDEPREFIX = 0x00100000 }
 

Public Member Functions

DWORD GetCommandBarExtendedStyle () const
 
DWORD SetCommandBarExtendedStyle (DWORD dwExtendedStyle, DWORD dwMask=0)
 
CMenuHandle GetMenu () const
 
COLORREF GetImageMaskColor () const
 
COLORREF SetImageMaskColor (COLORREF clrMask)
 
bool GetImagesVisible () const
 
bool SetImagesVisible (bool bVisible)
 
void GetImageSize (SIZE &size) const
 
bool SetImageSize (SIZE &size)
 
bool SetImageSize (int cx, int cy)
 
bool GetAlphaImages () const
 
bool SetAlphaImages (bool bAlphaImages)
 
HWND GetCmdBar () const
 
HWND Create (HWND hWndParent, RECT &rcPos, LPCTSTR szWindowName=NULL, DWORD dwStyle=0, DWORD dwExStyle=0, UINT nID=0, LPVOID lpCreateParam=NULL)
 
BOOL AttachToWindow (HWND hWnd)
 
BOOL LoadMenu (ATL::_U_STRINGorID menu)
 
BOOL AttachMenu (HMENU hMenu)
 
BOOL LoadImages (ATL::_U_STRINGorID image)
 
BOOL LoadMappedImages (UINT nIDImage, UINT nFlags=0, LPCOLORMAP lpColorMap=NULL, int nMapSize=0)
 
BOOL _LoadImagesHelper (ATL::_U_STRINGorID image, bool bMapped, UINT nFlags=0, LPCOLORMAP lpColorMap=NULL, int nMapSize=0)
 
BOOL AddBitmap (ATL::_U_STRINGorID bitmap, int nCommandID)
 
BOOL AddBitmap (HBITMAP hBitmap, UINT nCommandID)
 
BOOL AddIcon (ATL::_U_STRINGorID icon, UINT nCommandID)
 
BOOL AddIcon (HICON hIcon, UINT nCommandID)
 
BOOL ReplaceBitmap (ATL::_U_STRINGorID bitmap, int nCommandID)
 
BOOL ReplaceBitmap (HBITMAP hBitmap, UINT nCommandID)
 
BOOL ReplaceIcon (ATL::_U_STRINGorID icon, UINT nCommandID)
 
BOOL ReplaceIcon (HICON hIcon, UINT nCommandID)
 
BOOL RemoveImage (int nCommandID)
 
BOOL RemoveAllImages ()
 
BOOL TrackPopupMenu (HMENU hMenu, UINT uFlags, int x, int y, LPTPMPARAMS lpParams=NULL)
 
BOOL SetMDIClient (HWND)
 
 ALT_MSG_MAP (1) ALT_MSG_MAP(2) ALT_MSG_MAP(3) LRESULT OnForwardMsg(UINT
 
LPARAM BOOL & if (pMsg->message >=WM_MOUSEFIRST &&pMsg->message<=WM_MOUSELAST) m_bKeyboardInput
 
else if (pMsg->message >=WM_KEYFIRST &&pMsg->message<=WM_KEYLAST) m_bKeyboardInput
 
 ProcessWindowMessage (pMsg->hwnd, pMsg->message, pMsg->wParam, pMsg->lParam, lRet, 3)
 
LRESULT OnCreate (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &)
 
LRESULT OnDestroy (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &)
 
LRESULT OnKeyDown (UINT, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnKeyUp (UINT, WPARAM wParam, LPARAM, BOOL &bHandled)
 
LRESULT OnChar (UINT, WPARAM wParam, LPARAM, BOOL &bHandled)
 
LRESULT OnSysKeyDown (UINT, WPARAM, LPARAM, BOOL &bHandled)
 
LRESULT OnSysKeyUp (UINT, WPARAM, LPARAM, BOOL &bHandled)
 
LRESULT OnSysChar (UINT, WPARAM, LPARAM, BOOL &bHandled)
 
LRESULT OnEraseBackground (UINT, WPARAM wParam, LPARAM, BOOL &bHandled)
 
LRESULT OnInitMenu (UINT, WPARAM, LPARAM, BOOL &bHandled)
 
LRESULT OnInitMenuPopup (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnMenuSelect (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnInternalAutoPopup (UINT, WPARAM wParam, LPARAM, BOOL &)
 
LRESULT OnInternalGetBar (UINT, WPARAM wParam, LPARAM, BOOL &)
 
LRESULT OnSettingChange (UINT, WPARAM wParam, LPARAM, BOOL &)
 
LRESULT OnWindowPosChanging (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &)
 
LRESULT OnMenuChar (UINT, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnKillFocus (UINT, WPARAM, LPARAM, BOOL &bHandled)
 
LRESULT OnDrawItem (UINT, WPARAM, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnMeasureItem (UINT, WPARAM, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnAPIGetMenu (UINT, WPARAM, LPARAM, BOOL &)
 
LRESULT OnAPITrackPopupMenu (UINT, WPARAM, LPARAM lParam, BOOL &)
 
LRESULT OnAPIGetCmdBar (UINT, WPARAM, LPARAM, BOOL &)
 
LRESULT OnParentHotItemChange (int, LPNMHDR pnmh, BOOL &bHandled)
 
LRESULT OnParentDropDown (int, LPNMHDR pnmh, BOOL &bHandled)
 
LRESULT OnParentInitMenuPopup (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnParentInternalGetBar (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnParentSysCommand (UINT, WPARAM wParam, LPARAM, BOOL &bHandled)
 
LRESULT OnParentAPIGetMenu (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnParentMenuChar (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnParentAPITrackPopupMenu (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnParentAPIGetCmdBar (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnParentSettingChange (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnParentDrawItem (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnParentMeasureItem (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnParentActivate (UINT, WPARAM wParam, LPARAM, BOOL &bHandled)
 
LRESULT OnParentCustomDraw (int, LPNMHDR pnmh, BOOL &bHandled)
 
void _ParentCustomDrawHelper (LPNMTBCUSTOMDRAW lpTBCustomDraw)
 
LRESULT OnHookMouseMove (UINT, WPARAM, LPARAM, BOOL &bHandled)
 
LRESULT OnHookSysKeyDown (UINT, WPARAM wParam, LPARAM, BOOL &bHandled)
 
LRESULT OnHookSysKeyUp (UINT, WPARAM wParam, LPARAM, BOOL &bHandled)
 
LRESULT OnHookSysChar (UINT, WPARAM wParam, LPARAM, BOOL &bHandled)
 
LRESULT OnHookKeyDown (UINT, WPARAM wParam, LPARAM, BOOL &bHandled)
 
LRESULT OnHookNextMenu (UINT, WPARAM, LPARAM, BOOL &bHandled)
 
LRESULT OnHookChar (UINT, WPARAM wParam, LPARAM, BOOL &bHandled)
 
void DrawItem (LPDRAWITEMSTRUCT lpDrawItemStruct)
 
void DrawItem3D (LPDRAWITEMSTRUCT lpDrawItemStruct)
 
void DrawItemFlat (LPDRAWITEMSTRUCT lpDrawItemStruct)
 
void DrawMenuText (CDCHandle &dc, RECT &rc, LPCTSTR lpstrText, COLORREF color)
 
void DrawBitmapDisabled (CDCHandle &dc, int nImage, POINT point, HBRUSH hBrushBackground=::GetSysColorBrush(COLOR_3DFACE), HBRUSH hBrush3DEffect=::GetSysColorBrush(COLOR_3DHILIGHT), HBRUSH hBrushDisabledImage=::GetSysColorBrush(COLOR_3DSHADOW))
 
BOOL Draw3DCheckmark (CDCHandle &dc, const RECT &rc, BOOL bSelected, BOOL bDisabled, BOOL bRadio, HBITMAP hBmpCheck)
 
BOOL DrawCheckmark (CDCHandle &dc, const RECT &rc, BOOL bSelected, BOOL bDisabled, BOOL bRadio, HBITMAP hBmpCheck)
 
void MeasureItem (LPMEASUREITEMSTRUCT lpMeasureItemStruct)
 
void DoPopupMenu (int nIndex, bool bAnimate)
 
BOOL DoTrackPopupMenu (HMENU hMenu, UINT uFlags, int x, int y, LPTPMPARAMS lpParams=NULL)
 
int GetPreviousMenuItem (int nBtn) const
 
int GetNextMenuItem (int nBtn) const
 
void GetSystemSettings ()
 
void TakeFocus ()
 
void GiveFocusBack ()
 
void ShowKeyboardCues (bool bShow)
 
bool CreateInternalImageList (int cImages)
 

Static Public Member Functions

static LRESULT CALLBACK CreateHookProc (int nCode, WPARAM wParam, LPARAM lParam)
 
static LRESULT CALLBACK MessageHookProc (int nCode, WPARAM wParam, LPARAM lParam)
 
static UINT GetAutoPopupMessage ()
 
static UINT GetGetBarMessage ()
 

Public Attributes

HMENU m_hMenu
 
HIMAGELIST m_hImageList
 
ATL::CSimpleValArray< WORD > m_arrCommand
 
DWORD m_dwExtendedStyle
 
ATL::CContainedWindow m_wndParent
 
bool m_bMenuActive:1
 
bool m_bAttachedMenu:1
 
bool m_bImagesVisible:1
 
bool m_bPopupItem:1
 
bool m_bContextMenu:1
 
bool m_bEscapePressed:1
 
bool m_bSkipMsg:1
 
bool m_bParentActive:1
 
bool m_bFlatMenus:1
 
bool m_bUseKeyboardCues:1
 
bool m_bShowKeyboardCues:1
 
bool m_bAllowKeyboardCues:1
 
bool m_bKeyboardInput:1
 
bool m_bAlphaImages:1
 
bool m_bLayoutRTL:1
 
bool m_bSkipPostDown:1
 
bool m_bVistaMenus:1
 
int m_nPopBtn
 
int m_nNextPopBtn
 
SIZE m_szBitmap
 
SIZE m_szButton
 
COLORREF m_clrMask
 
CFont m_fontMenu
 
UINT m_uSysKey
 
HWND m_hWndFocus
 
int m_cxExtraSpacing
 
 WPARAM
 
LPARAM lParam
 
LRESULT lRet = 0
 
return lRet
 

The documentation for this class was generated from the following file: