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:
@@ -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
|
||||
|
Reference in New Issue
Block a user