]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/control.cpp
Don't call StartingKey if the key was F2
[wxWidgets.git] / src / os2 / control.cpp
index f390b9c38bcd051dade60380c0e7f6ff62f2ff5a..d515341c841da76459306c02b6f3fd79139dc08b 100644 (file)
@@ -108,14 +108,14 @@ bool wxControl::OS2CreateControl(
        (void) OS2GetStyle(GetWindowStyle(), &dwExstyle);
     }
     //
-    // All controls should have these styles (wxWindows creates all controls
+    // All controls should have these styles (wxWidgets creates all controls
     // visible by default)
     //
     if (m_isShown )
         dwStyle |= WS_VISIBLE;
 
     wxWindow*                       pParent = GetParent();
-    PSZ                             zClass;
+    PSZ                             zClass = "";
 
     if (!pParent)
         return FALSE;
@@ -284,10 +284,10 @@ void wxFindMaxSize(
     if (nRight > pRect->xRight)
         pRect->xRight = nRight;
 
-    if (nTop < pRect->yTop)
+    if (nTop > pRect->yTop)
         pRect->yTop = nTop;
 
-    if (nBottom > pRect->yBottom)
+    if (nBottom < pRect->yBottom)
         pRect->yBottom = nBottom;
 } // end of wxFindMaxSize