From cc888915ac12dd8e569081e2595e93a5f804e2d9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 7 Dec 2013 11:59:00 +0000 Subject: [PATCH] Clarify wxGetTopLevelParent() behaviour for TLWs. It doesn't return the parent of a TLW but TLW itself. Whether this is a good idea or bad one, this is how it works since a very long time and we don't want to change it any more. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/window.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface/wx/window.h b/interface/wx/window.h index 7fe353a519..ec0e9b048e 100644 --- a/interface/wx/window.h +++ b/interface/wx/window.h @@ -3789,6 +3789,8 @@ wxWindow* wxGetActiveWindow(); Returns the first top level parent of the given window, or in other words, the frame or dialog containing it, or @NULL. + Notice that if @a window is itself already a TLW, it is returned directly. + @header{wx/window.h} */ wxWindow* wxGetTopLevelParent(wxWindow* window);