skinnedtooltip.h 768 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef NULLOSFT_MEDIALIBRARY_SKINNED_TOOLTIP_HEADER
  2. #define NULLOSFT_MEDIALIBRARY_SKINNED_TOOLTIP_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include "./skinnedwnd.h"
  7. class SkinnedToolTip : public SkinnedWnd
  8. {
  9. protected:
  10. SkinnedToolTip(void);
  11. virtual ~SkinnedToolTip(void);
  12. protected:
  13. virtual BOOL Attach(HWND hToolTip);
  14. virtual LRESULT WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam); // treat this as dialog proc
  15. void OnSkinChanged(BOOL bNotifyChildren, BOOL bRedraw);
  16. HPEN GetBorderPen(void);
  17. void OnPaint();
  18. private:
  19. friend BOOL SkinWindowEx(HWND hwndToSkin, INT type, UINT style);
  20. protected:
  21. HCURSOR skinCursor;
  22. wchar_t *buffer;
  23. size_t bufferSizeCch;
  24. };
  25. #endif // NULLOSFT_MEDIALIBRARY_SKINNED_TOOLTIP_HEADER