Suppressed the themed border by defining GetDefaultBorder

Set custom background style


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-01-02 21:39:10 +00:00
parent 6f6b48f176
commit cfa42cb87f

View File

@@ -143,7 +143,7 @@ public:
// called Refresh afterwards
virtual void ScrollWindow(int dx, int dy, const wxRect *rect = NULL);
virtual bool CanApplyThemeBorder() const { return false; }
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
protected:
virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
@@ -1964,6 +1964,8 @@ wxDataViewMainWindow::wxDataViewMainWindow( wxDataViewCtrl *parent, wxWindowID i
SetBackgroundColour( *wxWHITE );
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
m_penRule = wxPen(GetRuleColour(), 1, wxSOLID);
//Here I compose a pen can draw black lines, maybe there are something system colour to use