fix drag-and-drop window traversal to handle menus and other unrealized windows
svn: r16365
This commit is contained in:
parent
35f0f15722
commit
a71b5697ad
|
@ -2513,11 +2513,13 @@ wxWindow *wxWindow::FindChildByWidget(Widget w)
|
|||
wxChildNode *node, *next;
|
||||
wxWindow *r;
|
||||
|
||||
if (X) {
|
||||
if ((w == X->frame)
|
||||
|| (w == X->handle))
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
if (children) {
|
||||
for (node = children->First(); node; node = next) {
|
||||
wxWindow *child;
|
||||
next = node->Next();
|
||||
|
@ -2528,6 +2530,7 @@ wxWindow *wxWindow::FindChildByWidget(Widget w)
|
|||
return r;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user