mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 12:56:07 +00:00
winhelp: Pointer coordinates are relative to richedit text window, not the main window.
This commit is contained in:
parent
2ed647a12c
commit
b3b6a227aa
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue