]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/choice.cpp
Remove wrong const from wxMenu::GetMenuItems() documentation.
[wxWidgets.git] / src / msw / choice.cpp
index 8dc803b88b87452e41c8a2affb0eb08852739aab..74ec10a47b64bc9887e8ecfafe1f17ab6cdbc5de 100644 (file)
@@ -86,10 +86,7 @@ bool wxChoice::CreateAndInit(wxWindow *parent,
 
 
     // initialize the controls contents
-    for ( int i = 0; i < n; i++ )
-    {
-        Append(choices[i]);
-    }
+    Append(n, choices);
 
     // and now we may finally size the control properly (if needed)
     SetInitialSize(size);
@@ -761,7 +758,7 @@ bool wxChoice::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
 
 WXHBRUSH wxChoice::MSWControlColor(WXHDC hDC, WXHWND hWnd)
 {
-    if ( !IsEnabled() )
+    if ( !IsThisEnabled() )
         return MSWControlColorDisabled(hDC);
 
     return wxChoiceBase::MSWControlColor(hDC, hWnd);