avoid using _WIN32_IE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -36,11 +36,6 @@
|
||||
#include <commctrl.h>
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32_IE
|
||||
// minimal set of features by default
|
||||
#define _WIN32_IE 0x0200
|
||||
#endif
|
||||
|
||||
// VZ: normally, the trick with subclassing the tooltip control and processing
|
||||
// TTM_WINDOWFROMPOINT should work but, somehow, it doesn't. I leave the
|
||||
// code here for now (but it's not compiled) in case we need it later.
|
||||
@@ -295,10 +290,10 @@ void wxToolTip::Add(WXHWND hWnd)
|
||||
|
||||
if ( index != wxNOT_FOUND )
|
||||
{
|
||||
#if _WIN32_IE >= 0x0300
|
||||
#ifdef TTM_SETMAXTIPWIDTH
|
||||
if ( wxTheApp->GetComCtl32Version() >= 470 )
|
||||
{
|
||||
// use TTM_SETMAXWIDTH to make tooltip multiline using the
|
||||
// use TTM_SETMAXTIPWIDTH to make tooltip multiline using the
|
||||
// extent of its first line as max value
|
||||
HFONT hfont = (HFONT)SendTooltipMessage(GetToolTipCtrl(),
|
||||
WM_GETFONT,
|
||||
|
Reference in New Issue
Block a user