]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/toplevel.cpp
better ownership handling
[wxWidgets.git] / src / msw / toplevel.cpp
index 07496bff06cbb59a7b643d608d41dace6811276c..5b271f01a2699e5bdec3100a0945f4c47d3158cb 100644 (file)
@@ -403,7 +403,7 @@ bool wxTopLevelWindowMSW::CreateDialog(const void *dlgTemplate,
         if ( winTop )
         {
             wxIcon icon = winTop->GetIcon();
-            if ( icon.Ok() )
+            if ( icon.IsOk() )
             {
                 ::SendMessage(GetHwnd(), WM_SETICON,
                               (WPARAM)TRUE,
@@ -1014,6 +1014,7 @@ bool wxTopLevelWindowMSW::ShowFullScreen(bool show, long style)
 
         // finally send an event allowing the window to relayout itself &c
         wxSizeEvent event(rect.GetSize(), GetId());
+        event.SetEventObject(this);
         HandleWindowEvent(event);
     }
     else // stop showing full screen