-void wxMonoRenderer::DrawBorder(wxDC& dc,
- wxBorder border,
- const wxRect& rectTotal,
- int WXUNUSED(flags),
- wxRect *rectIn)
-{
- wxRect rect = rectTotal;
-
- switch ( border )
- {
- case wxBORDER_DOUBLE:
- DrawSimpleBorder(dc, &rect);
- // fall through
-
- case wxBORDER_SUNKEN:
- case wxBORDER_STATIC:
- case wxBORDER_RAISED:
- case wxBORDER_SIMPLE:
- DrawSimpleBorder(dc, &rect);
- break;
-
- default:
- wxFAIL_MSG(_T("unknown border type"));
- // fall through
-
- case wxBORDER_DEFAULT:
- case wxBORDER_NONE:
- break;
- }
-
- if ( rectIn )
- *rectIn = rect;
-}
-