Module: wine Branch: master Commit: b3b6a227aac93d444c4f778f26e45fe41f796a99 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b3b6a227aac93d444c4f778f26...
Author: Kirill K. Smirnov lich@math.spbu.ru Date: Thu May 8 17:08:38 2008 +0400
winhelp: Pointer coordinates are relative to richedit text window, not the main window.
---
programs/winhelp/winhelp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/winhelp/winhelp.c b/programs/winhelp/winhelp.c index ee21053..3b8f173 100644 --- a/programs/winhelp/winhelp.c +++ b/programs/winhelp/winhelp.c @@ -1001,7 +1001,7 @@ static LRESULT CALLBACK WINHELP_MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, } pt.x = (int)(short)LOWORD(msgf->lParam); pt.y = (int)(short)HIWORD(msgf->lParam); - ClientToScreen(hWnd, &pt); + ClientToScreen(msgf->nmhdr.hwndFrom, &pt); TrackPopupMenu(GetSubMenu(hMenu, 0), TPM_LEFTALIGN|TPM_TOPALIGN, pt.x, pt.y, 0, hWnd, NULL); DestroyMenu(hMenu);