made FindWindow() member functions const (this makes it possible to use XRCCTRL() in const methods)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-01-07 23:51:04 +00:00
parent e3d64157d7
commit 6b73af793f
3 changed files with 6 additions and 6 deletions

View File

@ -570,11 +570,11 @@ Note that this is a static function, so it can be called without needing a wxWin
\membersection{wxWindow::FindWindow}\label{wxwindowfindwindow}
\func{wxWindow*}{FindWindow}{\param{long}{ id}}
\constfunc{wxWindow*}{FindWindow}{\param{long}{ id}}
Find a child of this window, by identifier.
\func{wxWindow*}{FindWindow}{\param{const wxString\&}{ name}}
\constfunc{wxWindow*}{FindWindow}{\param{const wxString\&}{ name}}
Find a child of this window, by name.

View File

@ -570,8 +570,8 @@ public:
// find window among the descendants of this one either by id or by
// name (return NULL if not found)
wxWindow *FindWindow( long winid );
wxWindow *FindWindow( const wxString& name );
wxWindow *FindWindow(long winid) const;
wxWindow *FindWindow(const wxString& name) const;
// Find a window among any window (all return NULL if not found)
static wxWindow *FindWindowById( long winid, const wxWindow *parent = NULL );

View File

@ -1226,7 +1226,7 @@ void wxWindowBase::ClearBackground()
// find child window by id or name
// ----------------------------------------------------------------------------
wxWindow *wxWindowBase::FindWindow( long id )
wxWindow *wxWindowBase::FindWindow(long id) const
{
if ( id == m_windowId )
return (wxWindow *)this;
@ -1242,7 +1242,7 @@ wxWindow *wxWindowBase::FindWindow( long id )
return (wxWindow *)res;
}
wxWindow *wxWindowBase::FindWindow( const wxString& name )
wxWindow *wxWindowBase::FindWindow(const wxString& name) const
{
if ( name == m_windowName )
return (wxWindow *)this;