Document that wxWindow::FindWindowByXXX() functions may return NULL.

This seems obvious but apparently isn't completely so to everybody.

Closes #12074.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-05-19 21:03:49 +00:00
parent 4919fd67c7
commit d9c83ba829

View File

@@ -3172,6 +3172,8 @@ public:
The search is recursive in both cases. The search is recursive in both cases.
@see FindWindow() @see FindWindow()
@return Window with the given @a id or @NULL if not found.
*/ */
static wxWindow* FindWindowById(long id, const wxWindow* parent = 0); static wxWindow* FindWindowById(long id, const wxWindow* parent = 0);
@@ -3185,6 +3187,8 @@ public:
The search is recursive in both cases. The search is recursive in both cases.
@see FindWindow() @see FindWindow()
@return Window with the given @a label or @NULL if not found.
*/ */
static wxWindow* FindWindowByLabel(const wxString& label, static wxWindow* FindWindowByLabel(const wxString& label,
const wxWindow* parent = 0); const wxWindow* parent = 0);
@@ -3201,6 +3205,8 @@ public:
FindWindowByLabel() is called. FindWindowByLabel() is called.
@see FindWindow() @see FindWindow()
@return Window with the given @a name or @NULL if not found.
*/ */
static wxWindow* FindWindowByName(const wxString& name, static wxWindow* FindWindowByName(const wxString& name,
const wxWindow* parent = 0); const wxWindow* parent = 0);