[PATCH 10/11] [WinHelp]: when no help file is passed on command line, we should open then file pickup dialog

Eric Pouech eric.pouech at orange.fr
Fri Apr 18 14:34:42 CDT 2008




A+
---

 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 fbc9066..dfa7204 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;
 





More information about the wine-patches mailing list