1
0

ColourEdit.h 665 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * ColourEdit.h
  3. * ------------
  4. * Purpose: Implementation of a coloured edit UI item.
  5. * Notes : (currently none)
  6. * Authors: OpenMPT Devs
  7. * The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
  8. */
  9. #pragma once
  10. #include "openmpt/all/BuildSettings.hpp"
  11. OPENMPT_NAMESPACE_BEGIN
  12. class CColourEdit : public CEdit
  13. {
  14. public:
  15. CColourEdit();
  16. ~CColourEdit();
  17. public:
  18. void SetTextColor(COLORREF rgb);
  19. void SetBackColor(COLORREF rgb);
  20. private:
  21. COLORREF m_crText;
  22. COLORREF m_crBackGnd;
  23. CBrush m_brBackGnd;
  24. protected:
  25. afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
  26. DECLARE_MESSAGE_MAP()
  27. };
  28. OPENMPT_NAMESPACE_END