Fixed some broken things related to context help, fixed memory leak
in wxGenericTreeCtrl (Init should be called before Create, not _in_ Create) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -694,16 +694,19 @@ wxWindow* wxFindWindowAtPoint(wxWindow* win, const wxPoint& pt)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
wxWindow* wxFindWindowAtPoint(const wxPoint& pt)
|
||||
wxWindow* wxGenericFindWindowAtPoint(const wxPoint& pt)
|
||||
{
|
||||
wxNode* node = wxTopLevelWindows.First();
|
||||
// Go backwards through the list since windows
|
||||
// on top are likely to have been appended most
|
||||
// recently.
|
||||
wxNode* node = wxTopLevelWindows.Last();
|
||||
while (node)
|
||||
{
|
||||
wxWindow* win = (wxWindow*) node->Data();
|
||||
wxWindow* found = wxFindWindowAtPoint(win, pt);
|
||||
if (found)
|
||||
return found;
|
||||
node = node->Next();
|
||||
node = node->Previous();
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user