[wx-dev] comctl32.dll version

Robin Dunn robin at alldunn.com
Tue Aug 7 11:42:31 PDT 2007


Bo Yang wrote:
> Hi everybody,
>     I came across this problem when I am working on wxDataViewCtrl. In
> this control, there is a header which should display whether a column
> is sorted ascending or descending. And in Windows, there is a window
> style called "header" which is the desired header window in
> comctl32.dll. And there are HDF_SORTUP/HDF_SORTDOWN which are used to
> control whether the header column show the sorting up icon or sorting
> down icon. But these features are only available in the version 6.0 of
> comctl32.dll. 

You can use wxRendererNative to draw a column header, and it will use 
the Theme engine to do it on XP or will fall back to a generic version 
otherwise.  There is no need for wxDataViwCtrl to reinvent the wheel here.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wx-dev mailing list