]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
Inserted an else that seemed to be missing. (My RadioBox crashed
[wxWidgets.git] / src / msw / window.cpp
index bfa74f9f0bc7dd90c8a7c5346a1fac28591f328b..5d7a02170dea1ed552e3ed3a0c880454088c1a95 100644 (file)
@@ -98,7 +98,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxEvtHandler)
 
 BEGIN_EVENT_TABLE(wxWindow, wxEvtHandler)
   EVT_CHAR(wxWindow::OnChar)
-  EVT_SIZE(wxWindow::OnSize)
   EVT_ERASE_BACKGROUND(wxWindow::OnEraseBackground)
   EVT_SYS_COLOUR_CHANGED(wxWindow::OnSysColourChanged)
   EVT_INIT_DIALOG(wxWindow::OnInitDialog)
@@ -3447,15 +3446,6 @@ void wxWindow::ScrollWindow(int dx, int dy, const wxRectangle *rect)
                ::ScrollWindow((HWND) GetHWND(), dx, dy, NULL, NULL);
 }
 
-void wxWindow::OnSize(wxSizeEvent& event)
-{
-       Default();
-#if USE_CONSTRAINTS
-  if (GetAutoLayout())
-    Layout();
-#endif
-}
-
 /*
 void wxWindow::CalcScrolledPosition(int x, int y, int *xx, int *yy) const
 {
@@ -4355,7 +4345,7 @@ void wxWindow::OnChar(wxKeyEvent& event)
   if (vert_units)
         y_pages = (int)(v_height/vert_units) - y_page;
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   int y = 0;
 #else
   int y = y_page-1;