]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix wxRichToolTip compilation under MSW without PCH and recent SDK headers.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Oct 2011 16:20:19 +0000 (16:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Oct 2011 16:20:19 +0000 (16:20 +0000)
Include the headers normally included from wx/wxprec.h.

Also define the stuff missing from the headers of some compilers (notably
MinGW but probably also VC6) ourselves.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/private/richtooltip.h
src/msw/richtooltip.cpp

index baaf273011c4224e7a97794612613ef4bbc63c1d..3730638592904b25a69926eb6d6b2fadb01d771a 100644 (file)
@@ -11,6 +11,9 @@
 #ifndef _WX_GENERIC_PRIVATE_RICHTOOLTIP_H_
 #define _GENERIC_PRIVATE_RICHTOOLTIP_H_
 
+#include "wx/icon.h"
+#include "wx/colour.h"
+
 // ----------------------------------------------------------------------------
 // wxRichToolTipGenericImpl: defines generic wxRichToolTip implementation.
 // ----------------------------------------------------------------------------
index 1736eb03248bb0fe18e148dc450d14c35eeae1c8..5751118153ace865a32509579d03db8c63440a35 100644 (file)
@@ -26,6 +26,7 @@
 #if wxUSE_RICHTOOLTIP
 
 #ifndef WX_PRECOMP
+    #include "wx/treectrl.h"
 #endif // WX_PRECOMP
 
 #include "wx/private/richtooltip.h"
 #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.
 // ============================================================================