Mostly Mingw32/Cygwin corrections

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-12-20 19:04:48 +00:00
parent 83307f338d
commit c25a510b30
19 changed files with 65 additions and 23 deletions

View File

@@ -38,7 +38,10 @@
#include "wx/msw/private.h"
#if wxUSE_TOOLTIPS
#ifndef __GNUWIN32__
#include <commctrl.h>
#endif
#include "wx/tooltip.h"
#endif // wxUSE_TOOLTIPS
@@ -52,7 +55,15 @@
// and allows tooltips to work with radioboxes, so there should be no
// reason to revert to the backward compatible behaviour - but I still
// leave this possibility just in case.
// For some reason, the background colour is set wrongly in WIN16 mode
// if we use the new method.
#ifdef __WIN16__
#define RADIOBTN_PARENT_IS_RADIOBOX 0
#else
#define RADIOBTN_PARENT_IS_RADIOBOX 1
#endif
// ---------------------------------------------------------------------------
// private functions
@@ -746,7 +757,7 @@ LRESULT APIENTRY _EXPORT wxRadioBtnWndProc(HWND hwnd,
wxCHECK_MSG( radiobox, 0, wxT("radio button without radio box?") );
#if wxUSE_TOOLTIPS
#if wxUSE_TOOLTIPS && !defined(__GNUWIN32__)
if ( msg == WM_NOTIFY )
{
NMHDR* hdr = (NMHDR *)lParam;