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

Eric Pouech eric.pouech at orange.fr
Sun Mar 23 04:21:40 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 48350cd..bfc8065 100644
--- a/programs/winhelp/winhelp.c
+++ b/programs/winhelp/winhelp.c
@@ -843,6 +843,8 @@ static LRESULT CALLBACK WINHELP_MainWndProc(HWND hWnd, UINT msg, WPARAM wParam,
     case WM_NCCREATE:
         win = (WINHELP_WINDOW*) ((LPCREATESTRUCT) lParam)->lpCreateParams;
         SetWindowLong(hWnd, 0, (LONG) win);
+        if (!win->page && Globals.isBook)
+            PostMessage(hWnd, WM_COMMAND, MNID_FILE_OPEN, 0);
         break;
 
     case WM_WINDOWPOSCHANGED:





More information about the wine-patches mailing list