X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16f6dfd814b863ab5ca5b579eee7190fdb209771..1759ff9e918d43734793c67328af21203924931f:/src/msw/tooltip.cpp?ds=inline diff --git a/src/msw/tooltip.cpp b/src/msw/tooltip.cpp index 7829ec50e9..f17e964b68 100644 --- a/src/msw/tooltip.cpp +++ b/src/msw/tooltip.cpp @@ -47,7 +47,11 @@ public: wxToolInfo(wxWindow *win) { // initialize all members +#ifdef __GNUWIN32__ + memset(this, 0, sizeof(TOOLINFO)); +#else ::ZeroMemory(this, sizeof(TOOLINFO)); +#endif cbSize = sizeof(TOOLINFO); uFlags = TTF_IDISHWND; @@ -172,7 +176,7 @@ WXHWND wxToolTip::GetToolTipCtrl() "can't create tooltip control outside a frame or a dialog" ); HWND hwndTT = (HWND)(frame ? frame->GetToolTipCtrl() - : dialog->GetToolTipCtrl()); + : dialog->GetToolTipCtrl()); if ( !hwndTT ) { hwndTT = ::CreateWindow(TOOLTIPS_CLASS, @@ -180,7 +184,7 @@ WXHWND wxToolTip::GetToolTipCtrl() TTS_ALWAYSTIP, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, - (HWND)frame->GetHWND(), (HMENU)NULL, + (HWND)parent->GetHWND(), (HMENU)NULL, wxGetInstance(), NULL); if ( hwndTT )