]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Give PuTTYgen an icon.
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Fri, 7 Feb 2003 13:54:34 +0000 (13:54 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Fri, 7 Feb 2003 13:54:34 +0000 (13:54 +0000)
[originally from svn r2821]

puttygen.c

index 42af3976ec8ea76654eb069a9046925ca651f91a..d7094a3506fa6dff53471cc5763f09f8a0662f14 100644 (file)
 #include "ssh.h"
 #include "winstuff.h"
 
+#ifdef MSVC4
+#define ICON_BIG        1
+#endif
+
 #define WM_DONEKEY (WM_XUSER + 1)
 
 #define DEFAULT_KEYSIZE 1024
@@ -813,6 +817,8 @@ static int CALLBACK MainDlgProc(HWND hwnd, UINT msg,
              */
         }
         requested_help = FALSE;
+       SendMessage(hwnd, WM_SETICON, (WPARAM) ICON_BIG,
+                   (LPARAM) LoadIcon(hinst, MAKEINTRESOURCE(200)));
 
        state = smalloc(sizeof(*state));
        state->generation_thread_exists = FALSE;