X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e520c3f75cbfb0ed6a751576d7032ef196a1817d..4e15d1caa03346c126015019c1fdf093033ef40b:/src/msw/richtooltip.cpp diff --git a/src/msw/richtooltip.cpp b/src/msw/richtooltip.cpp index 1736eb0324..5751118153 100644 --- a/src/msw/richtooltip.cpp +++ b/src/msw/richtooltip.cpp @@ -26,6 +26,7 @@ #if wxUSE_RICHTOOLTIP #ifndef WX_PRECOMP + #include "wx/treectrl.h" #endif // WX_PRECOMP #include "wx/private/richtooltip.h" @@ -33,6 +34,32 @@ #include "wx/msw/private.h" #include "wx/msw/uxtheme.h" +// Provide definitions missing from some compilers SDK headers. + +#ifndef TTI_NONE +enum +{ + TTI_NONE, + TTI_INFO, + TTI_WARNING, + TTI_ERROR +}; +#endif // !defined(TTI_XXX) + +#ifndef Edit_ShowBalloonTip +struct EDITBALLOONTIP +{ + DWORD cbStruct; + LPCWSTR pszTitle; + LPCWSTR pszText; + int ttiIcon; +}; + +#define Edit_ShowBalloonTip(hwnd, pebt) \ + (BOOL)::SendMessage((hwnd), 0x1503 /* EM_SHOWBALLOONTIP */, 0, (LPARAM)(pebt)) + +#endif // !defined(Edit_ShowBalloonTip) + // ============================================================================ // wxRichToolTipMSWImpl: the real implementation. // ============================================================================