winhelp: When no help file is passed on command line, we should open then file pickup dialog.

This commit is contained in:
Eric Pouech 2008-04-18 21:34:42 +02:00 committed by Alexandre Julliard
parent 84f0968acd
commit f3730ccc00
1 changed files with 2 additions and 0 deletions

View File

@ -742,6 +742,8 @@ static LRESULT CALLBACK WINHELP_MainWndProc(HWND hWnd, UINT msg, WPARAM wParam,
case WM_NCCREATE:
win = (WINHELP_WINDOW*) ((LPCREATESTRUCT) lParam)->lpCreateParams;
SetWindowLongPtr(hWnd, 0, (ULONG_PTR) win);
if (!win->page && Globals.isBook)
PostMessage(hWnd, WM_COMMAND, MNID_FILE_OPEN, 0);
win->hMainWnd = hWnd;
break;