winhelp: Pointer coordinates are relative to richedit text window, not the main window.

This commit is contained in:
Kirill K. Smirnov 2008-05-08 17:08:38 +04:00 committed by Alexandre Julliard
parent 2ed647a12c
commit b3b6a227aa

View file

@ -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);