Fix wxRichToolTip compilation under MSW without PCH and recent SDK headers.

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
This commit is contained in:
Vadim Zeitlin
2011-10-20 16:20:19 +00:00
parent f72ed38578
commit 26d863e2b2
2 changed files with 30 additions and 0 deletions

View File

@@ -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.
// ============================================================================