#include "PopupWindow.hpp"
#include <wx/popupwin.h>
#include <wx/event.h>
Go to the source code of this file.
◆ GetTopParent()
| wxWindow * GetTopParent |
( |
wxWindow * | pWindow | ) |
|
|
static |
11{
12 wxWindow *pWin = pWindow;
13 while (pWin->GetParent()) {
14 pWin = pWin->GetParent();
15 if (auto top = dynamic_cast<wxNonOwnedWindow*>(pWin))
16 return top;
17 }
18 return pWin;
19}
Referenced by PopupWindow::~PopupWindow(), and PopupWindow::Create().