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();
}
}
-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;