summaryrefslogtreecommitdiffstats
path: root/src/windows
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2007-06-22 19:04:54 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2007-06-22 19:04:54 +0000
commit52effc066e6aa5a5e1c2f7caa2b436d3caf07310 (patch)
treed76c18ce78a6b1a7e84cf1831d67da9d7ae0c6fe /src/windows
parentfe7af6bf3b0ca903c72c22d66a38aaef92d72520 (diff)
downloadkrb5-52effc066e6aa5a5e1c2f7caa2b436d3caf07310.tar.gz
krb5-52effc066e6aa5a5e1c2f7caa2b436d3caf07310.tar.xz
krb5-52effc066e6aa5a5e1c2f7caa2b436d3caf07310.zip
1. Add a '--minimized' option to start NIM in minimized mode
2. If the NIM window is requested to open in a minimized state, keep the window hidden until there's a request to show it. ticket: 5584 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19633 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/windows')
-rw-r--r--src/windows/identity/ui/main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/windows/identity/ui/main.c b/src/windows/identity/ui/main.c
index e094f0273..b3690422f 100644
--- a/src/windows/identity/ui/main.c
+++ b/src/windows/identity/ui/main.c
@@ -131,6 +131,9 @@ void khm_parse_commandline(void) {
khm_startup.remote_exit = TRUE;
khm_startup.no_main_window = TRUE;
}
+ else if (!wcscmp(wargs[i], L"--minimized")) {
+ khm_startup.no_main_window = TRUE;
+ }
else {
wchar_t help[2048];
@@ -617,8 +620,13 @@ int WINAPI WinMain(HINSTANCE hInstance,
khm_create_main_window();
- if (!khm_startup.no_main_window)
+ if (!khm_startup.no_main_window &&
+ nCmdShow != SW_SHOWMINNOACTIVE &&
+ nCmdShow != SW_MINIMIZE &&
+ nCmdShow != SW_SHOWMINIMIZED) {
+
khm_show_main_window();
+ }
khm_refresh_config();