]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/activex/wxie/wxactivex.cpp
don't draw focus rect for custom drawn items when the list control doesn't have focus
[wxWidgets.git] / wxPython / contrib / activex / wxie / wxactivex.cpp
index 39b178e441df15085e0c80c1b4b372221ea4722e..77d372d9937b86158cd923b12834926c681bf28a 100644 (file)
@@ -1172,7 +1172,8 @@ void wxActiveX::GetTypeInfo(ITypeInfo *ti, bool defInterface, bool defEventSink)
 
         // Get properties
         // See bug #1280715 in the wxActiveX SF project
-        for (int i = 0; i < ta->cVars; i++) {
+        int i;
+        for (i = 0; i < ta->cVars; i++) {
             VARDESC FAR *vd = NULL;
 
             typeInfo->GetVarDesc(i, &vd) ;
@@ -1197,7 +1198,7 @@ void wxActiveX::GetTypeInfo(ITypeInfo *ti, bool defInterface, bool defEventSink)
         }        
 
         // Get Function Names
-        for (int i = 0; i < ta->cFuncs; i++)
+        for (i = 0; i < ta->cFuncs; i++)
         {
             FUNCDESC FAR *fd = NULL;
 
@@ -1705,7 +1706,6 @@ void wxActiveX::OnPaint(wxPaintEvent& event)
 {
     wxLogTrace(wxT(""),wxT("repainting activex win"));
     wxPaintDC dc(this);
-    dc.BeginDrawing();
     int w, h;
     GetSize(&w, &h);
     RECT posRect;
@@ -1730,7 +1730,6 @@ void wxActiveX::OnPaint(wxPaintEvent& event)
         dc.DrawRectangle(0, 0, w, h);
         dc.SetBrush(wxNullBrush);
     }
-    dc.EndDrawing();
 }