From: Vadim Zeitlin Date: Tue, 18 Aug 1998 14:59:26 +0000 (+0000) Subject: corrected wxListCtrl compilation problems X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/39570cd47981d75ac61a1734eb91628cbcfbfa39 corrected wxListCtrl compilation problems git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/generic/listctrl.h b/include/wx/generic/listctrl.h index 6656631d38..da9d2dcdcd 100644 --- a/include/wx/generic/listctrl.h +++ b/include/wx/generic/listctrl.h @@ -539,7 +539,6 @@ class wxListCtrl: public wxControl const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = 0, const wxString &name = "listctrl" ); void OnSize( wxSizeEvent &event ); - void SetBackgroundColour( const wxColour& col ); bool GetColumn( int col, wxListItem& item ); bool SetColumn( int col, wxListItem& item ); int GetColumnWidth( int col ); @@ -606,13 +605,13 @@ class wxListCtrl: public wxControl wxColour GetBackgroundColour() const { return m_mainWin->GetBackgroundColour(); } void SetBackgroundColour( const wxColour &colour ) - { m_mainWin->SetBackgroundColour(); } + { m_mainWin->SetBackgroundColour(colour); } wxColour GetForegroundColour() const { return m_mainWin->GetForegroundColour(); } void SetForegroundColour( const wxColour &colour ) - { return m_mainWin->GetForegroundColour(); } + { m_mainWin->SetForegroundColour(colour); } bool PopupMenu( wxMenu *menu, int x, int y ) - { m_mainWin->PopupMenu( menu, x, y ); } + { return m_mainWin->PopupMenu( menu, x, y ); } protected: diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 2fcf5a080d..84e0770e14 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -2204,13 +2204,6 @@ void wxListCtrl::SetWindowStyleFlag( long flag ) wxWindow::SetWindowStyleFlag( flag ); }; -void wxListCtrl::SetBackgroundColour(const wxColour& col) -{ - // This is from Julian. You know. - // Not in wxWin 1.xx ??? - wxWindow::SetBackgroundColour( (wxColour&)col ); -}; - bool wxListCtrl::GetColumn(int col, wxListItem &item) { m_mainWin->GetColumn( col, item );