Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.6 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef TEXTUREBOX_H
  14. #define TEXTUREBOX_H
  15. #pragma once
  16. #include "IEditorTexture.h"
  17. class CTextureBox : public CComboBox
  18. {
  19. // Construction
  20. public:
  21. CTextureBox();
  22. virtual BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID);
  23. // Attributes
  24. public:
  25. BOOL bFirstMeasure;
  26. // Operations
  27. public:
  28. void LoadGraphicList();
  29. void AddMRU(IEditorTexture *pTex);
  30. void RebuildMRU(void);
  31. void NotifyNewMaterial( IEditorTexture *pTex );
  32. void BeginCustomGraphicList( );
  33. void AddTexture( IEditorTexture *pTex );
  34. void EndCustomGraphicList( );
  35. // Overrides
  36. // ClassWizard generated virtual function overrides
  37. //{{AFX_VIRTUAL(CTextureBox)
  38. public:
  39. virtual int CompareItem(LPCOMPAREITEMSTRUCT lpCompareItemStruct);
  40. virtual void DeleteItem(LPDELETEITEMSTRUCT lpDeleteItemStruct);
  41. virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
  42. virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
  43. //}}AFX_VIRTUAL
  44. private:
  45. // Implementation
  46. public:
  47. virtual ~CTextureBox();
  48. // Generated message map functions
  49. protected:
  50. //{{AFX_MSG(CTextureBox)
  51. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  52. afx_msg LRESULT OnSelectString(WPARAM wParam, LPARAM lParam);
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. };
  56. #endif // TEXTUREBOX_H