X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a17e237f4ada1196d7c0f0c23d4dface749c587a..4e15f6c57a5897f0e1e332100e4261fd84167ce0:/src/msw/tooltip.cpp diff --git a/src/msw/tooltip.cpp b/src/msw/tooltip.cpp index cbe06c1711..ebf490177d 100644 --- a/src/msw/tooltip.cpp +++ b/src/msw/tooltip.cpp @@ -47,27 +47,26 @@ WXHWND wxToolTip::hwndTT = (WXHWND)NULL; // private classes // ---------------------------------------------------------------------------- - // a simple wrapper around TOOLINFO Win32 structure -#pragma warning( disable : 4097 ) +#ifdef __VISUALC__ + #pragma warning( disable : 4097 ) // we inherit from a typedef - so what? +#endif class wxToolInfo : public TOOLINFO { public: wxToolInfo(wxWindow *win) { // initialize all members -#if __GNUWIN32__ && !defined(wxUSE_NORLANDER_HEADERS) - memset(this, 0, sizeof(TOOLINFO)); -#else ::ZeroMemory(this, sizeof(TOOLINFO)); -#endif cbSize = sizeof(TOOLINFO); uFlags = TTF_IDISHWND; uId = (UINT)win->GetHWND(); } }; -#pragma warning( default : 4097 ) +#ifdef __VISUALC__ + #pragma warning( default : 4097 ) +#endif // ---------------------------------------------------------------------------- // private functions