BrushPaletteWnd.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. #if !defined(AFX_BRUSHPALETTEWND_H__E0E5728A_563A_43BA_AD10_187D83BE8E55__INCLUDED_)
  13. #define AFX_BRUSHPALETTEWND_H__E0E5728A_563A_43BA_AD10_187D83BE8E55__INCLUDED_
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17. // BrushPaletteWnd.h : header file
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CBrushPaletteWnd window
  21. class CBrushPaletteWnd : public CWnd
  22. {
  23. // Construction
  24. public:
  25. CBrushPaletteWnd();
  26. // Attributes
  27. public:
  28. CDrawPort *m_pDrawPort;
  29. CViewPort *m_pViewPort;
  30. int m_iTimerID;
  31. // Operations
  32. public:
  33. // calculate given color's box in pixels
  34. PIXaabbox2D GetBrushBBox( INDEX iBrush);
  35. // Overrides
  36. // ClassWizard generated virtual function overrides
  37. //{{AFX_VIRTUAL(CBrushPaletteWnd)
  38. public:
  39. virtual BOOL PreTranslateMessage(MSG* pMsg);
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. public:
  43. virtual ~CBrushPaletteWnd();
  44. // Generated message map functions
  45. protected:
  46. //{{AFX_MSG(CBrushPaletteWnd)
  47. afx_msg void OnPaint();
  48. afx_msg void OnKillFocus(CWnd* pNewWnd);
  49. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  50. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  51. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  52. afx_msg void OnDestroy();
  53. afx_msg void OnTimer(UINT nIDEvent);
  54. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. };
  58. /////////////////////////////////////////////////////////////////////////////
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_BRUSHPALETTEWND_H__E0E5728A_563A_43BA_AD10_187D83BE8E55__INCLUDED_)