-#include <windows.h>
-#include <commctrl.h>
-#include <commdlg.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <ctype.h>
#include <time.h>
-#include "ssh.h"
#include "putty.h"
-#include "winstuff.h"
+#include "ssh.h"
#include "win_res.h"
#include "storage.h"
#include "dialog.h"
+#include <commctrl.h>
+#include <commdlg.h>
+#include <shellapi.h>
+
#ifdef MSVC4
#define TVINSERTSTRUCT TV_INSERTSTRUCT
#define TVITEM TV_ITEM
case WM_COMMAND:
switch (LOWORD(wParam)) {
case IDOK:
+ case IDCANCEL:
EndDialog(hwnd, 1);
return 0;
}
case IDA_LICENCE:
EnableWindow(hwnd, 0);
DialogBox(hinst, MAKEINTRESOURCE(IDD_LICENCEBOX),
- NULL, LicenceProc);
+ hwnd, LicenceProc);
EnableWindow(hwnd, 1);
SetActiveWindow(hwnd);
return 0;
ctrl_free_box(ctrlbox);
winctrl_cleanup(&ctrls_base);
winctrl_cleanup(&ctrls_panel);
- sfree(dp.errtitle);
dp_cleanup(&dp);
if (!ret)