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;
"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,
TTS_ALWAYSTIP,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,
- (HWND)frame->GetHWND(), (HMENU)NULL,
+ (HWND)parent->GetHWND(), (HMENU)NULL,
wxGetInstance(), NULL);
if ( hwndTT )