From 0199503bf0629b65c4431dea8fd03823c692a007 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 22 Jul 2003 01:10:04 +0000 Subject: [PATCH] Compile fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/include/wx/gizmos/splittree.h | 4 ++++ contrib/src/gizmos/splittree.cpp | 16 +++++++++++++--- contrib/src/gizmos/statpict.cpp | 1 + 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/contrib/include/wx/gizmos/splittree.h b/contrib/include/wx/gizmos/splittree.h index 8165f3bbab..98bbea58d4 100644 --- a/contrib/include/wx/gizmos/splittree.h +++ b/contrib/include/wx/gizmos/splittree.h @@ -170,6 +170,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& sz = wxDefaultSize, long style = wxSP_3D | wxCLIP_CHILDREN); + ~wxThinSplitterWindow(); //// Overrides @@ -189,6 +190,9 @@ public: //// Data members protected: + wxPen* m_facePen; + wxBrush* m_faceBrush; + DECLARE_EVENT_TABLE() }; diff --git a/contrib/src/gizmos/splittree.cpp b/contrib/src/gizmos/splittree.cpp index 00f6902a03..1c9449bd88 100644 --- a/contrib/src/gizmos/splittree.cpp +++ b/contrib/src/gizmos/splittree.cpp @@ -381,7 +381,7 @@ void wxRemotelyScrolledTreeCtrl::CalcTreeSize(const wxTreeItemId& id, wxRect& re rect = CombineRectangles(rect, itemSize); } - long cookie; + wxTreeItemIdValue cookie; wxTreeItemId childId = GetFirstChild(id, cookie); while (childId != 0) { @@ -542,8 +542,18 @@ wxThinSplitterWindow::wxThinSplitterWindow(wxWindow* parent, wxWindowID id, long style): wxSplitterWindow(parent, id, pos, sz, style) { + wxColour faceColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)); + m_facePen = new wxPen(faceColour, 1, wxSOLID); + m_faceBrush = new wxBrush(faceColour, wxSOLID); } +wxThinSplitterWindow::~wxThinSplitterWindow() +{ + delete m_facePen; + delete m_faceBrush; +} + + void wxThinSplitterWindow::SizeWindows() { // The client size may have changed inbetween @@ -581,7 +591,7 @@ void wxThinSplitterWindow::DrawSash(wxDC& dc) { y1 = 2; h1 -= 3; } - dc.DrawRectangle(m_sashPosition, y1, m_sashSize, h1); + dc.DrawRectangle(m_sashPosition, y1, GetSashSize(), h1); } else { @@ -595,7 +605,7 @@ void wxThinSplitterWindow::DrawSash(wxDC& dc) { x1 = 2; w1 -= 3; } - dc.DrawRectangle(x1, m_sashPosition, w1, m_sashSize); + dc.DrawRectangle(x1, m_sashPosition, w1, GetSashSize()); } dc.SetPen(wxNullPen); diff --git a/contrib/src/gizmos/statpict.cpp b/contrib/src/gizmos/statpict.cpp index 1f50fc8ce5..1886d3c54e 100644 --- a/contrib/src/gizmos/statpict.cpp +++ b/contrib/src/gizmos/statpict.cpp @@ -13,6 +13,7 @@ #pragma implementation "statpict.h" #endif +#include "wx/wxprec.h" #include "wx/defs.h" #include "wx/gizmos/statpict.h"