tool-tip.hpp 448 B

12345678910111213141516171819202122232425
  1. namespace hiro {
  2. struct pToolTip {
  3. enum : uint { Delay = 1000, Timeout = 10000 };
  4. pToolTip(const string& text);
  5. ~pToolTip();
  6. auto drawLayered() -> void;
  7. auto drawOpaque() -> void;
  8. auto show() -> void;
  9. auto hide() -> void;
  10. auto windowProc(HWND, UINT, WPARAM, LPARAM) -> maybe<LRESULT>;
  11. HWND hwnd = nullptr;
  12. HTHEME htheme = nullptr;
  13. POINT position{};
  14. SIZE size{};
  15. POINT tracking{};
  16. string text;
  17. Timer timeout;
  18. };
  19. }