skinnedstatic.h 751 B

123456789101112131415161718192021222324252627282930
  1. #ifndef NULLOSFT_MEDIALIBRARY_SKINNED_STATIC_HEADER
  2. #define NULLOSFT_MEDIALIBRARY_SKINNED_STATIC_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include "./skinnedwnd.h"
  7. #define STATIC_TEXT_MAX 1024
  8. class SkinnedStatic : public SkinnedWnd
  9. {
  10. protected:
  11. SkinnedStatic(void);
  12. virtual ~SkinnedStatic(void);
  13. protected:
  14. virtual BOOL Attach(HWND hwndStatic);
  15. virtual LRESULT WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam); // treat this as dialog proc
  16. virtual BOOL OnMediaLibraryIPC(INT msg, INT_PTR param, LRESULT *pResult);
  17. virtual LRESULT GetIdealSize(LPCWSTR pszText);
  18. private:
  19. friend BOOL SkinWindowEx(HWND hwndToSkin, INT type, UINT style);
  20. protected:
  21. };
  22. #endif // NULLOSFT_MEDIALIBRARY_SKINNED_STATIC_HEADER