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/texturebox.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'hammer/texturebox.h')
| -rw-r--r-- | hammer/texturebox.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/hammer/texturebox.h b/hammer/texturebox.h new file mode 100644 index 0000000..8104ebb --- /dev/null +++ b/hammer/texturebox.h @@ -0,0 +1,64 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Workfile: $ +// $Date: $ +// +//----------------------------------------------------------------------------- +// $Log: $ +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef TEXTUREBOX_H +#define TEXTUREBOX_H +#pragma once + +#include "IEditorTexture.h" + +class CTextureBox : public CComboBox +{ +// Construction +public: + CTextureBox(); + virtual BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID); + +// Attributes +public: + BOOL bFirstMeasure; + +// Operations +public: + void LoadGraphicList(); + void AddMRU(IEditorTexture *pTex); + void RebuildMRU(void); + void NotifyNewMaterial( IEditorTexture *pTex ); + +// Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CTextureBox) + public: + virtual int CompareItem(LPCOMPAREITEMSTRUCT lpCompareItemStruct); + virtual void DeleteItem(LPDELETEITEMSTRUCT lpDeleteItemStruct); + virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); + virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct); + //}}AFX_VIRTUAL + +// Implementation +public: + virtual ~CTextureBox(); + + // Generated message map functions +protected: + //{{AFX_MSG(CTextureBox) + afx_msg BOOL OnEraseBkgnd(CDC* pDC); + afx_msg LRESULT OnSelectString(WPARAM wParam, LPARAM lParam); + //}}AFX_MSG + + DECLARE_MESSAGE_MAP() +}; + + +#endif // TEXTUREBOX_H + |