=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: view: Also show the filename in the window title when loading it from command line .

Alexandre Julliard julliard at winehq.org
Thu Mar 29 15:48:58 CDT 2012


Module: wine
Branch: master
Commit: 189800e04c43c623f8a9d4d1228e514b95b3efff
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=189800e04c43c623f8a9d4d1228e514b95b3efff

Author: André Hentschel <nerv at dawncrow.de>
Date:   Wed Mar 28 21:06:05 2012 +0200

view: Also show the filename in the window title when loading it from command line.

---

 programs/view/view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/programs/view/view.c b/programs/view/view.c
index ebd48aa..d32a10b 100644
--- a/programs/view/view.c
+++ b/programs/view/view.c
@@ -386,7 +386,10 @@ static void HandleCommandLine(LPWSTR cmdline)
             cmdline++;
             cmdline[lstrlenW(cmdline) - 1] = 0;
         }
+        szFileTitle[0] = 0;
+        GetFileTitleW(cmdline, szFileTitle, sizeof(szFileTitle));
         DoOpenFile(cmdline);
+        UpdateWindowCaption();
     }
 }
 




More information about the wine-cvs mailing list