git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13818
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/imaglist.h"
#include "wx/listctrl.h"
#include "wx/imaglist.h"
#include "wx/listctrl.h"
#include <gtk/gtk.h>
#include "wx/gtk/win_gtk.h"
#endif
#include <gtk/gtk.h>
#include "wx/gtk/win_gtk.h"
#endif
void wxListHeaderWindow::DoDrawRect( wxDC *dc, int x, int y, int w, int h )
{
void wxListHeaderWindow::DoDrawRect( wxDC *dc, int x, int y, int w, int h )
{
+#if defined(__WXGTK__) && !defined(__WXUNIVERSAL__)
GtkStateType state = m_parent->IsEnabled() ? GTK_STATE_NORMAL
: GTK_STATE_INSENSITIVE;
GtkStateType state = m_parent->IsEnabled() ? GTK_STATE_NORMAL
: GTK_STATE_INSENSITIVE;
void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
{
void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
{
wxClientDC dc( this );
#else
wxPaintDC dc( this );
wxClientDC dc( this );
#else
wxPaintDC dc( this );
{
int x1 = m_currentX;
int y1 = 0;
{
int x1 = m_currentX;
int y1 = 0;
- ClientToScreen( &x1, &y1 );
+ m_owner->ClientToScreen( &x1, &y1 );
int y2 = 0;
m_owner->GetClientSize( NULL, &y2 );
m_owner->ClientToScreen( &x2, &y2 );
int y2 = 0;
m_owner->GetClientSize( NULL, &y2 );
m_owner->ClientToScreen( &x2, &y2 );