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:
@@ -4389,9 +4389,15 @@ static TEXTMETRIC wxGetTextMetrics(const wxWindow *win)
|
||||
// position.
|
||||
wxWindow* wxFindWindowAtPointer(wxPoint& pt)
|
||||
{
|
||||
// Use current message to find last mouse position
|
||||
extern MSG s_currentMsg;
|
||||
HWND hWndHit = ::WindowFromPoint(s_currentMsg.pt);
|
||||
return wxFindWindowAtPoint(wxGetMousePosition());
|
||||
}
|
||||
|
||||
wxWindow* wxFindWindowAtPoint(const wxPoint& pt)
|
||||
{
|
||||
POINT pt2;
|
||||
pt2.x = pt.x;
|
||||
pt2.y = pt.y;
|
||||
HWND hWndHit = ::WindowFromPoint(pt2);
|
||||
|
||||
wxWindow* win = wxFindWinFromHandle((WXHWND) hWndHit) ;
|
||||
HWND hWnd = hWndHit;
|
||||
|
Reference in New Issue
Block a user