diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/filtercontrol.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'hammer/filtercontrol.h')
| -rw-r--r-- | hammer/filtercontrol.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/hammer/filtercontrol.h b/hammer/filtercontrol.h new file mode 100644 index 0000000..a3106e6 --- /dev/null +++ b/hammer/filtercontrol.h @@ -0,0 +1,74 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef FILTERCONTROL_H +#define FILTERCONTROL_H +#pragma once + + +#include "resource.h" +#include "GroupList.h" +#include "HammerBar.h" + + +class CFilterControl : public CHammerBar +{ +public: + CFilterControl() : CHammerBar() { bInitialized = FALSE; } + BOOL Create(CWnd *pParentWnd); + + void UpdateGroupList(void); + void UpdateGroupListChecks(void); + + virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler); + virtual CSize CalcDynamicLayout(int nLength, DWORD dwMode); + +private: + //{{AFX_DATA(CFilterControl) + enum { IDD = IDD_MAPVIEWBAR }; + //}}AFX_DATA + + CBitmapButton m_cMoveUpButton; + CBitmapButton m_cMoveDownButton; + CGroupList m_cGroupBox; + CTabCtrl m_cTabControl; + + BOOL bInitialized; + BOOL m_bShowingAuto; + +protected: + + virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT *pResult); + virtual BOOL OnInitDialog(void); + void OnSelChangeTab(NMHDR *header, LRESULT *result); + + //{{AFX_MSG(CFilterControl) + afx_msg void OnSize(UINT nType, int cx, int cy); + afx_msg void OnEditGroups(); + afx_msg void OnMarkMembers(); + afx_msg BOOL OnMoveUpDown(UINT uCmd); + afx_msg void UpdateControl(CCmdUI *); + afx_msg void UpdateControlGroups(CCmdUI *pCmdUI); + afx_msg void OnActivate(UINT nState, CWnd*, BOOL); + afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); + afx_msg void OnWindowPosChanged(WINDOWPOS *pPos); + afx_msg void OnEndlabeleditGrouplist(NMHDR*, LRESULT*); + afx_msg void OnBegindragGrouplist(NMHDR*, LRESULT*); + afx_msg void OnMousemoveGrouplist(NMHDR*, LRESULT*); + afx_msg void OnEnddragGrouplist(NMHDR*, LRESULT*); + afx_msg LRESULT OnListToggleState(WPARAM wParam, LPARAM lParam); + afx_msg LRESULT OnListLeftDragDrop(WPARAM wParam, LPARAM lParam); + afx_msg LRESULT OnListRightDragDrop(WPARAM wParam, LPARAM lParam); + afx_msg void OnShowAllGroups(void); + //}}AFX_MSG + + CImageList *m_pDragImageList; + + DECLARE_MESSAGE_MAP() +}; + + +#endif // FILTERCONTROL_H |