Use generic DrawCheckMark in MSW wxDC
Use the generic implementation, so it looks like the check marks on all other platforms and graphics contexts and not like a Windows control.
This commit is contained in:
@@ -202,8 +202,6 @@ public:
|
||||
virtual void DoDrawArc(wxCoord x1, wxCoord y1,
|
||||
wxCoord x2, wxCoord y2,
|
||||
wxCoord xc, wxCoord yc) wxOVERRIDE;
|
||||
virtual void DoDrawCheckMark(wxCoord x, wxCoord y,
|
||||
wxCoord width, wxCoord height) wxOVERRIDE;
|
||||
virtual void DoDrawEllipticArc(wxCoord x, wxCoord y, wxCoord w, wxCoord h,
|
||||
double sa, double ea) wxOVERRIDE;
|
||||
|
||||
|
@@ -861,24 +861,6 @@ void wxMSWDCImpl::DoDrawArc(wxCoord x1, wxCoord y1,
|
||||
CalcBoundingBox(xc + r, yc + r);
|
||||
}
|
||||
|
||||
void wxMSWDCImpl::DoDrawCheckMark(wxCoord x1, wxCoord y1,
|
||||
wxCoord width, wxCoord height)
|
||||
{
|
||||
wxCoord x2 = x1 + width,
|
||||
y2 = y1 + height;
|
||||
|
||||
RECT rect;
|
||||
rect.left = x1;
|
||||
rect.top = y1;
|
||||
rect.right = x2;
|
||||
rect.bottom = y2;
|
||||
|
||||
DrawFrameControl(GetHdc(), &rect, DFC_MENU, DFCS_MENUCHECK);
|
||||
|
||||
CalcBoundingBox(x1, y1);
|
||||
CalcBoundingBox(x2, y2);
|
||||
}
|
||||
|
||||
void wxMSWDCImpl::DoDrawPoint(wxCoord x, wxCoord y)
|
||||
{
|
||||
COLORREF color = 0x00ffffff;
|
||||
|
Reference in New Issue
Block a user