git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22224
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize,
long style = wxSP_3D | wxCLIP_CHILDREN);
const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize,
long style = wxSP_3D | wxCLIP_CHILDREN);
+ ~wxThinSplitterWindow();
//// Data members
protected:
//// Data members
protected:
+ wxPen* m_facePen;
+ wxBrush* m_faceBrush;
+
rect = CombineRectangles(rect, itemSize);
}
rect = CombineRectangles(rect, itemSize);
}
+ wxTreeItemIdValue cookie;
wxTreeItemId childId = GetFirstChild(id, cookie);
while (childId != 0)
{
wxTreeItemId childId = GetFirstChild(id, cookie);
while (childId != 0)
{
long style):
wxSplitterWindow(parent, id, pos, sz, style)
{
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
void wxThinSplitterWindow::SizeWindows()
{
// The client size may have changed inbetween
- dc.DrawRectangle(m_sashPosition, y1, m_sashSize, h1);
+ dc.DrawRectangle(m_sashPosition, y1, GetSashSize(), h1);
- dc.DrawRectangle(x1, m_sashPosition, w1, m_sashSize);
+ dc.DrawRectangle(x1, m_sashPosition, w1, GetSashSize());
#pragma implementation "statpict.h"
#endif
#pragma implementation "statpict.h"
#endif
#include "wx/defs.h"
#include "wx/gizmos/statpict.h"
#include "wx/defs.h"
#include "wx/gizmos/statpict.h"