+ const wxCoord widthHdr = 120;
+
+ const wxHeaderSortIconType
+ hdrSortIcon = m_useIcon ? wxHDR_SORT_ICON_UP
+ : wxHDR_SORT_ICON_NONE;
+
+ wxHeaderButtonParams hdrParams;
+ hdrParams.m_labelText = "Header";
+ hdrParams.m_labelAlignment = m_align;
+ if ( m_useBitmap )
+ {
+ hdrParams.m_labelBitmap = wxArtProvider::GetBitmap(wxART_WARNING,
+ wxART_LIST);
+ }
+
+ dc.DrawText("DrawHeaderButton() (default)", x1, y);
+ wxRendererNative::GetDefault().DrawHeaderButton(this, dc,
+ wxRect(x2, y, widthHdr, heightHdr), m_flags,
+ hdrSortIcon, &hdrParams);
+ y += lineHeight + heightHdr;
+
+ dc.DrawText("DrawHeaderButton() (overridden)", x1, y);