-// TODO:
-/*
- HBRUSH old = (HBRUSH) SelectObject( (HDC) dc, wxDisableButtonBrush ) ;
-
- if ( with_marg )
- ::PatBlt( (HDC) dc, left + m_marginX, top + m_marginY,
- right - 2 * m_marginX, bottom - 2 * m_marginY,
-#ifdef __SALFORDC__
- 0xfa0089L ) ;
-#else
- 0xfa0089UL ) ;
-#endif
- else ::PatBlt( (HDC) dc, left, top, right, bottom,
-#ifdef __SALFORDC__
- 0xfa0089L ) ;
-#else
- 0xfa0089UL ) ;
-#endif
- ::SelectObject( (HDC) dc, old ) ;
-*/
-}
+ wxPen vBlackPen(wxColour(0, 0, 0), 2, wxSOLID);
+
+ //
+ // Draw a thick black line around the outside of the button
+ //
+ rDC.SetPen(vBlackPen);
+ rDC.DrawLine( rDC.m_vRclPaint.xLeft
+ ,rDC.m_vRclPaint.yTop
+ ,rDC.m_vRclPaint.xRight
+ ,rDC.m_vRclPaint.yTop
+ );
+ rDC.DrawLine( rDC.m_vRclPaint.xRight
+ ,rDC.m_vRclPaint.yTop
+ ,rDC.m_vRclPaint.xRight
+ ,rDC.m_vRclPaint.yBottom
+ );
+ rDC.DrawLine( rDC.m_vRclPaint.xRight
+ ,rDC.m_vRclPaint.yBottom
+ ,rDC.m_vRclPaint.xLeft
+ ,rDC.m_vRclPaint.yBottom
+ );
+ rDC.DrawLine( rDC.m_vRclPaint.xLeft
+ ,rDC.m_vRclPaint.yBottom
+ ,rDC.m_vRclPaint.xLeft
+ ,rDC.m_vRclPaint.yTop
+ );
+} // end of wxBitmapButton::DrawButtonFocus
+
+void wxBitmapButton::DrawButtonDisable(
+ wxClientDC& rDC
+, wxBitmap& rBmp
+)
+{
+ wxPen vGreyPen(wxColour(128, 128, 128), 2, wxSOLID);
+
+ //
+ // Draw a thick black line around the outside of the button
+ //
+ rDC.SetPen(vGreyPen);
+ rDC.DrawLine( rDC.m_vRclPaint.xLeft
+ ,rDC.m_vRclPaint.yTop
+ ,rDC.m_vRclPaint.xRight
+ ,rDC.m_vRclPaint.yTop
+ );
+ rDC.DrawLine( rDC.m_vRclPaint.xRight
+ ,rDC.m_vRclPaint.yTop
+ ,rDC.m_vRclPaint.xRight
+ ,rDC.m_vRclPaint.yBottom
+ );
+ rDC.DrawLine( rDC.m_vRclPaint.xRight
+ ,rDC.m_vRclPaint.yBottom
+ ,rDC.m_vRclPaint.xLeft
+ ,rDC.m_vRclPaint.yBottom
+ );
+ rDC.DrawLine( rDC.m_vRclPaint.xLeft
+ ,rDC.m_vRclPaint.yBottom
+ ,rDC.m_vRclPaint.xLeft
+ ,rDC.m_vRclPaint.yTop
+ );
+ wxDisableBitmap(rBmp, vGreyPen.GetColour().GetPixel());
+} // end of wxBitmapButton::DrawButtonDisable