+
+ // draw close button if necessary
+ if (with_close_button)
+ {
+ wxBitmap bmp;
+ if (active)
+ bmp = m_active_close_bmp;
+ else
+ bmp = m_disabled_close_bmp;
+
+ wxRect rect(tab_x + tab_width - close_button_width - 1, tab_y + 1,
+ close_button_width, tab_height - 1);
+ DrawButtonS(*dc, rect, bmp, *wxWHITE, wxAUI_BUTTON_STATE_NORMAL);
+ }
+
+