blob: 8104ebb559e32b7b870a56c6107a0f693ac5ece3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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
|