[Winpt-commits] r87 - trunk/Src
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Mon Nov 21 12:44:26 CET 2005
Author: twoaday
Date: 2005-11-21 12:44:25 +0100 (Mon, 21 Nov 2005)
New Revision: 87
Modified:
trunk/Src/ChangeLog
trunk/Src/WinPT.cpp
Log:
2005-11-21 Timo Schulz <ts at g10code.com>
* WinPT.cpp (WinMain): Implement --stop switch.
Modified: trunk/Src/ChangeLog
===================================================================
--- trunk/Src/ChangeLog 2005-11-18 10:21:57 UTC (rev 86)
+++ trunk/Src/ChangeLog 2005-11-21 11:44:25 UTC (rev 87)
@@ -1,3 +1,7 @@
+2005-11-21 Timo Schulz <ts at g10code.com>
+
+ * WinPT.cpp (WinMain): Implement --stop switch.
+
2005-11-17 Timo Schulz <ts at g10code.com>
* wptGPG.cpp (check_last_gnupg_access): Kludge to avoid that
Modified: trunk/Src/WinPT.cpp
===================================================================
--- trunk/Src/WinPT.cpp 2005-11-18 10:21:57 UTC (rev 86)
+++ trunk/Src/WinPT.cpp 2005-11-21 11:44:25 UTC (rev 87)
@@ -255,6 +255,13 @@
glob_hinst = hinst;
+ if (cmdline && stristr (cmdline, "--stop")) {
+ hwnd = FindWindow ("WinPT", "WinPT");
+ if (hwnd != NULL)
+ PostMessage (hwnd, WM_DESTROY, 0, 0);
+ return 0;
+ }
+
#ifdef _DEBUG
gpg_set_debug_mode (1);
debug = 1;
More information about the Winpt-commits
mailing list