From 6e872f5cee9e798c2f09924cc1b25ce7700d7ac9 Mon Sep 17 00:00:00 2001
From: Robin Dunn <robin@alldunn.com>
Date: Wed, 13 Sep 2006 20:34:19 +0000
Subject: [PATCH] More support for drawing native column headers, adds more
 states (selected, mouse-over) and also optionally drawing the contents of the
 header (label and/or bitmap, sort arrow) in a consistent way.  Also added a
 method to determine the default height of the column header. This is based on
 work done for OSAF.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/latex/wx/renderer.tex | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/docs/latex/wx/renderer.tex b/docs/latex/wx/renderer.tex
index 17469cdc33..7bb7e91223 100644
--- a/docs/latex/wx/renderer.tex
+++ b/docs/latex/wx/renderer.tex
@@ -75,6 +75,9 @@ enum
     wxCONTROL_CHECKED    = 0x00000040,  // (check/radio button) is checked
     wxCONTROL_CHECKABLE  = 0x00000080,  // (menu) item can be checked
     wxCONTROL_UNDETERMINED = wxCONTROL_CHECKABLE  // (check) undetermined state
+    wxCONTROL_UPICON     = 0x00000100,  // header button has an up arrow icon
+    wxCONTROL_DOWNICON   = 0x00000200,  // header button has a down arrow icon
+
 };
 \end{verbatim}
 
@@ -131,7 +134,7 @@ rectangle of a drop down button which arrow matches the size you need.
 
 \membersection{wxRendererNative::DrawHeaderButton}\label{wxrenderernativedrawheaderbutton}
 
-\func{void}{DrawHeaderButton}{\param{wxWindow* }{win}, \param{wxDC\& }{dc}, \param{const wxRect\& }{rect}, \param{int }{flags = 0}}
+\func{void}{DrawHeaderButton}{\param{wxWindow* }{win}, \param{wxDC\& }{dc}, \param{const wxRect\& }{rect}, \param{int }{flags = 0}, \param{wxHeaderButtonParams* }{params = NULL}}
 
 Draw the header control button (used by \helpref{wxListCtrl}{wxlistctrl}).
 
@@ -197,6 +200,14 @@ is the default renderer implementation, others have platform-specific default
 renderer which can be retrieved by calling \helpref{GetDefault}{wxrenderernativegetdefault}.
 
 
+\membersection{wxRendererNative::GetHeaderButtonHeight}\label{wxrenderernativegetheaderbuttonheight}
+
+\func{int}{GetHeaderButtonHeight}{\param{const wxWindow* }{win}}
+
+Returns the height of a header button, either a fixed platform height if available, or a 
+generic height based on the window's font.
+
+
 \membersection{wxRendererNative::GetSplitterParams}\label{wxrenderernativegetsplitterparams}
 
 \func{wxSplitterRenderParams}{GetSplitterParams}{\param{const wxWindow* }{win}}
-- 
2.50.0

