summaryrefslogtreecommitdiff
path: root/updater/conf_dialog.cpp
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2009-03-29 19:22:32 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2009-03-29 19:22:32 +0000
commit811039b40796ba732b12b5d2dfb52111980569ac (patch)
treeacf84c2a6063e28a987a257ce1d34382af1ce279 /updater/conf_dialog.cpp
parent0c7c7a21cba95444a5253f29caa8973dcd66befd (diff)
x64 port
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@446 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'updater/conf_dialog.cpp')
-rw-r--r--updater/conf_dialog.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/updater/conf_dialog.cpp b/updater/conf_dialog.cpp
index 8830086..a0d734b 100644
--- a/updater/conf_dialog.cpp
+++ b/updater/conf_dialog.cpp
@@ -1,12 +1,12 @@
#include "common.h"
#include "conf_dialog.h"
-BOOL CALLBACK DlgProcConfirm(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) {
+INT_PTR CALLBACK DlgProcConfirm(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) {
switch ( msg ) {
case WM_INITDIALOG:
TranslateDialogDefault( hwndDlg );
- SetWindowLong(hwndDlg, GWL_USERDATA, 0);
+ SetWindowLongPtr(hwndDlg, GWLP_USERDATA, 0);
SendMessage(GetDlgItem(hwndDlg, IDC_LIST_UPDATES),LVM_SETEXTENDEDLISTVIEWSTYLE, 0,LVS_EX_FULLROWSELECT | LVS_EX_CHECKBOXES);
if(options.save_zips && options.no_unzip) {
@@ -111,7 +111,7 @@ BOOL CALLBACK DlgProcConfirm(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara
EnableWindow(hwOk, one_enabled ? TRUE : FALSE);
}
// do this after filling list - enables 'ITEMCHANGED' below
- SetWindowLong(hwndDlg, GWL_USERDATA, lParam);
+ SetWindowLongPtr(hwndDlg, GWLP_USERDATA, lParam);
Utils_RestoreWindowPositionNoSize(hwndDlg,0,MODULE,"ConfirmWindow");
@@ -122,7 +122,7 @@ BOOL CALLBACK DlgProcConfirm(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara
switch (((LPNMHDR) lParam)->code) {
case LVN_ITEMCHANGED:
- if(GetWindowLong(hwndDlg, GWL_USERDATA)) {
+ if(GetWindowLongPtr(hwndDlg, GWLP_USERDATA)) {
NMLISTVIEW *nmlv = (NMLISTVIEW *)lParam;
LVITEM lvI = {0};
@@ -146,7 +146,7 @@ BOOL CALLBACK DlgProcConfirm(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara
//ListView_SetItem(GetDlgItem(hwndDlg, IDC_LIST_UPDATES), &lvI);
- UpdateList *todo = (UpdateList *)GetWindowLong(hwndDlg, GWL_USERDATA);
+ UpdateList *todo = (UpdateList *)GetWindowLongPtr(hwndDlg, GWLP_USERDATA);
bool enableOk = false;
for(todo->reset(); todo->current(); todo->next()) {
if(todo->current()->update_options.enabled) {
@@ -234,7 +234,7 @@ BOOL CALLBACK DlgProcConfirm(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara
}
return TRUE;
case IDOK:
- SetWindowLong(hwndDlg, GWL_USERDATA, 0);
+ SetWindowLongPtr(hwndDlg, GWLP_USERDATA, 0);
Utils_SaveWindowPosition(hwndDlg,0,MODULE,"ConfirmWindow");
DBWriteContactSettingByte(0, "Updater", "DefaultConfAll", IsDlgButtonChecked(hwndDlg, IDC_CHK_CONFALL) ? 1 : 0);
DBWriteContactSettingByte(0, "Updater", "NoInstall", IsDlgButtonChecked(hwndDlg, IDC_CHK_NOINSTALL) ? 1 : 0);
@@ -246,7 +246,7 @@ BOOL CALLBACK DlgProcConfirm(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara
EndDialog(hwndDlg, CD_OK);
return TRUE;
case IDCANCEL:
- SetWindowLong(hwndDlg, GWL_USERDATA, 0);
+ SetWindowLongPtr(hwndDlg, GWLP_USERDATA, 0);
Utils_SaveWindowPosition(hwndDlg,0,MODULE,"ConfirmWindow");
EndDialog(hwndDlg, CD_CANCEL);
return TRUE;