Module: wine Branch: master Commit: f3730ccc006267a7e0d472ec3776d54d9afa003f URL: http://source.winehq.org/git/wine.git/?a=commit;h=f3730ccc006267a7e0d472ec37...
Author: Eric Pouech eric.pouech@orange.fr Date: Fri Apr 18 21:34:42 2008 +0200
winhelp: When no help file is passed on command line, we should open then file pickup dialog.
---
programs/winhelp/winhelp.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/programs/winhelp/winhelp.c b/programs/winhelp/winhelp.c index dfae0b4..7c8aa28 100644 --- a/programs/winhelp/winhelp.c +++ b/programs/winhelp/winhelp.c @@ -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;