Removed gaps between header buttons and the strange header offset

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-08-21 10:46:12 +00:00
parent 7a7c08d49c
commit 46b598d49b

View File

@@ -83,8 +83,8 @@ static const int EXTRA_BORDER_X = 2;
static const int EXTRA_BORDER_Y = 2;
// offset for the header window
static const int HEADER_OFFSET_X = 1;
static const int HEADER_OFFSET_Y = 1;
static const int HEADER_OFFSET_X = 0;
static const int HEADER_OFFSET_Y = 0;
// margin between rows of icons in [small] icon view
static const int MARGIN_BETWEEN_ROWS = 6;
@@ -1808,15 +1808,8 @@ void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
m_owner->GetColumn( i, item );
int wCol = item.m_width;
// the width of the rect to draw: make it smaller to fit entirely
// inside the column rect
#ifdef __WXMAC__
int cw = wCol;
int ch = h;
#else
int cw = wCol - 2;
int ch = h - 2;
#endif
int flags = 0;
if (!m_parent->IsEnabled())