SystemCaptionFont.h
Upload User: zhoushen
Upload Date: 2022-06-15
Package Size: 84k
Code Size: 1k
Category:

Dialog_Window

Development Platform:

Visual C++

  1. #ifndef SYSTEMCAPTIONFONT_H
  2. #define SYSTEMCAPTIONFONT_H
  3. //////////////////////////////////////////////////////////////////////////////////////////
  4. // CSystemCaptionFont provides self-contained access to the default system caption font.
  5. //
  6. // operator() returns a CFont pointer to a font created on demand.
  7. //
  8. // The destructor deletes the font object attached to CSystemCaptionFont.
  9. //
  10. class CSystemCaptionFont
  11. {
  12. public:
  13. CSystemCaptionFont() {}
  14. ~CSystemCaptionFont();
  15. CFont* operator()();
  16. private:
  17. void CreateFont();
  18. CFont m_Font;
  19. };
  20. #endif