Override GetDefaultBorder, currently changes nothing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2009-01-22 13:33:00 +00:00
parent 7f853dd046
commit 3fdf86f91e
2 changed files with 9 additions and 2 deletions

View File

@@ -453,6 +453,8 @@ public:
virtual bool EnableDragSource( const wxDataFormat &format ); virtual bool EnableDragSource( const wxDataFormat &format );
virtual bool EnableDropTarget( const wxDataFormat &format ); virtual bool EnableDropTarget( const wxDataFormat &format );
virtual wxBorder GetDefaultBorder() const;
protected: protected:
virtual int GetSelections( wxArrayInt & sel ) const; virtual int GetSelections( wxArrayInt & sel ) const;
virtual void SetSelections( const wxArrayInt & sel ); virtual void SetSelections( const wxArrayInt & sel );

View File

@@ -3691,8 +3691,8 @@ bool wxDataViewCtrl::Create(wxWindow *parent, wxWindowID id,
const wxPoint& pos, const wxSize& size, const wxPoint& pos, const wxSize& size,
long style, const wxValidator& validator ) long style, const wxValidator& validator )
{ {
if ( (style & wxBORDER_MASK) == 0) // if ( (style & wxBORDER_MASK) == 0)
style |= wxBORDER_SUNKEN; // style |= wxBORDER_SUNKEN;
Init(); Init();
@@ -3724,6 +3724,11 @@ bool wxDataViewCtrl::Create(wxWindow *parent, wxWindowID id,
return true; return true;
} }
wxBorder wxDataViewCtrl::GetDefaultBorder() const
{
return wxBORDER_THEME;
}
#ifdef __WXMSW__ #ifdef __WXMSW__
WXLRESULT wxDataViewCtrl::MSWWindowProc(WXUINT nMsg, WXLRESULT wxDataViewCtrl::MSWWindowProc(WXUINT nMsg,
WXWPARAM wParam, WXWPARAM wParam,