Commit 0f234ce4 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winhelp: When following a link, don't do it into a popup, but its parent.

parent 3b07c851
......@@ -912,7 +912,10 @@ static BOOL WINHELP_HandleTextMouse(WINHELP_WINDOW* win, UINT msg, LPARAM lParam
if ((hlpfile = WINHELP_LookupHelpFile(link->string)))
{
if (link->window == -1)
{
wi = win->info;
if (wi->win_style & WS_POPUP) wi = Globals.active_win->info;
}
else if (link->window < hlpfile->numWindows)
wi = &hlpfile->windows[link->window];
else
......@@ -971,9 +974,10 @@ static BOOL WINHELP_CheckPopup(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam
(HWND)lParam == Globals.active_popup->hMainWnd ||
GetWindow((HWND)lParam, GW_OWNER) == Globals.active_win->hMainWnd)
break;
/* fall through */
case WM_LBUTTONDOWN:
if (WINHELP_HandleTextMouse(Globals.active_popup, msg, lParam))
return FALSE;
if (msg == WM_LBUTTONDOWN)
WINHELP_HandleTextMouse(Globals.active_popup, msg, lParam);
/* fall through */
case WM_MBUTTONDOWN:
case WM_RBUTTONDOWN:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment