]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tooltip.cpp
ScreenToClient() implemented correctly
[wxWidgets.git] / src / msw / tooltip.cpp
index 199c42a0a1a292fab7c3bab9324a6e2386886fde..f17e964b680b8b7fd803506f5df5f8ade7206ad4 100644 (file)
@@ -176,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,
@@ -184,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 )