]> git.saurik.com Git - wxWidgets.git/commitdiff
small compilation fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Dec 1999 19:49:48 +0000 (19:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Dec 1999 19:49:48 +0000 (19:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/tbarmsw.h
src/msw/tbarmsw.cpp

index ed88e668d20e5288fb405e3a5e43f5fbd78299b7..d03dbe7ff3afffa90fd7ab4367c49c4f31bd1aa5 100644 (file)
@@ -110,7 +110,7 @@ protected:
     void CreateMask(WXHDC hDC, int xoffset, int yoffset, int dx, int dy);
     void DrawBlankButton(WXHDC hdc, int x, int y, int dx, int dy, int state);
     void DrawButton(WXHDC hdc, int x, int y, int dx, int dy,
-                    wxToolBarTool *tool, int state);
+                    wxToolBarToolBase *tool, int state);
     WXHBITMAP CreateDitherBitmap();
     bool CreateDitherBrush();
     bool FreeDitherBrush();
index e7ab1de5c87d69df24b349dd1bf6164f9a55ef9f..50410b00f8f93d54c3c87b174fa814f49efd90b1 100644 (file)
@@ -747,8 +747,11 @@ void wxToolBar::DrawBlankButton(WXHDC hdc, int x, int y, int dx, int dy, int sta
     }
 }
 
-void wxToolBar::DrawButton(WXHDC hdc, int x, int y, int dx, int dy, wxToolBarTool *tool, int state)
+void wxToolBar::DrawButton(WXHDC hdc, int x, int y, int dx, int dy,
+                           wxToolBarToolBase *toolBase, int state)
 {
+    wxToolBarTool *tool = (wxToolBarTool *)toolBase;
+
     int yOffset;
     HBRUSH hbrOld, hbr;
     BOOL bMaskCreated = FALSE;