summaryrefslogtreecommitdiff
path: root/alf
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2020-05-03 20:23:10 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2020-05-03 20:23:10 +0200
commitfe10e5fa354a508a6b20b4a20b9bba46c6b8612e (patch)
treec9993398c269dd5017370f422e2025d0b9a3e396 /alf
parenta3870e00c23e64691c43e74c5f20969e9051a48c (diff)
make it compile as 64bit under mingw
Diffstat (limited to 'alf')
-rw-r--r--alf/alfbutton.cpp4
-rw-r--r--alf/alfcombobox.cpp2
-rw-r--r--alf/alfcompat.cpp4
-rw-r--r--alf/alfedit.cpp2
-rw-r--r--alf/alflabel.cpp2
-rw-r--r--alf/alfnotebook.cpp2
-rw-r--r--alf/alfpanel.cpp2
7 files changed, 9 insertions, 9 deletions
diff --git a/alf/alfbutton.cpp b/alf/alfbutton.cpp
index 292c913..2c67074 100644
--- a/alf/alfbutton.cpp
+++ b/alf/alfbutton.cpp
@@ -691,7 +691,7 @@ ALF_NtButton_Create(HWND win, WORD id, int x, int y, const TCHAR *text)
WS_CHILD | WS_TABSTOP | WS_VISIBLE,
0, 0, 100, 100,
win,
- (HMENU)(int)id,
+ (HMENU)(ULONG_PTR)id,
ALF_HINSTANCE,
NULL);
@@ -884,7 +884,7 @@ ALF_ClassicButton_Create(HWND win, WORD id, int x, int y, const TCHAR *text)
WS_CHILD | WS_TABSTOP | WS_VISIBLE | BS_OWNERDRAW,
0, 0, 100, 100,
win,
- (HMENU)(int)id,
+ (HMENU)(ULONG_PTR)id,
ALF_HINSTANCE,
NULL);
diff --git a/alf/alfcombobox.cpp b/alf/alfcombobox.cpp
index f94c744..eebb269 100644
--- a/alf/alfcombobox.cpp
+++ b/alf/alfcombobox.cpp
@@ -324,7 +324,7 @@ ALF_InternalAddComboBox(HWND win, WORD id, int x, int y, DWORD style, const TCHA
WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN,
0, 0, 0, 0,
win,
- (HMENU)(int)id,
+ (HMENU)(ULONG_PTR)id,
(HINSTANCE)GetWindowLongPtr(win, GWLP_HINSTANCE),
&cp);
diff --git a/alf/alfcompat.cpp b/alf/alfcompat.cpp
index 5226bb4..164032f 100644
--- a/alf/alfcompat.cpp
+++ b/alf/alfcompat.cpp
@@ -90,8 +90,8 @@ ALF_Compat_fallbackSystemParametersInfoForDpi(UINT uiAction, UINT uiParam, PVOID
ncmw->iPaddedBorderWidth = 0;
}
- ncmw->cbSize = s;
- return SystemParametersInfo(SPI_GETNONCLIENTMETRICS, s, ncmw, fWinIni);
+ ncmw->cbSize = (UINT)s;
+ return SystemParametersInfo(SPI_GETNONCLIENTMETRICS, (UINT)s, ncmw, fWinIni);
#else
ALF_NONCLIENTMETRICSA_VISTA ncma;
ZeroMemory(&ncma, sizeof(ncma));
diff --git a/alf/alfedit.cpp b/alf/alfedit.cpp
index 1fadbc8..ae8e895 100644
--- a/alf/alfedit.cpp
+++ b/alf/alfedit.cpp
@@ -22,7 +22,7 @@ ALF_AddEdit(HWND win, WORD id, int x, int y, const TCHAR *text)
WS_CHILD | WS_VISIBLE | WS_TABSTOP | style,
0, 0, 100, 100,
win,
- (HMENU)(int)id,
+ (HMENU)(ULONG_PTR)id,
(HINSTANCE)GetWindowLongPtr(win, GWLP_HINSTANCE),
NULL);
diff --git a/alf/alflabel.cpp b/alf/alflabel.cpp
index 6f01cce..73296d9 100644
--- a/alf/alflabel.cpp
+++ b/alf/alflabel.cpp
@@ -303,7 +303,7 @@ ALF_AddLabel(HWND win, WORD id, int x, int y, const TCHAR *text)
WS_CHILD | WS_VISIBLE,
0, 0, 100, 100,
win,
- (HMENU)(int)id,
+ (HMENU)(ULONG_PTR)id,
ALF_HINSTANCE,
NULL);
diff --git a/alf/alfnotebook.cpp b/alf/alfnotebook.cpp
index 342bd92..73b0c85 100644
--- a/alf/alfnotebook.cpp
+++ b/alf/alfnotebook.cpp
@@ -511,7 +511,7 @@ ALF_AddNotebook(HWND parent, WORD id, int x, int y)
WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN,
0, 0, 100, 100,
parent,
- (HMENU)(int)id,
+ (HMENU)(ULONG_PTR)id,
ALF_HINSTANCE,
NULL);
diff --git a/alf/alfpanel.cpp b/alf/alfpanel.cpp
index 476bdb4..6e63611 100644
--- a/alf/alfpanel.cpp
+++ b/alf/alfpanel.cpp
@@ -281,7 +281,7 @@ ALF_CreatePanelWindow(HWND parent, WORD id)
WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN,
0, 0, 0, 0,
parent,
- (HMENU)(int)id,
+ (HMENU)(ULONG_PTR)id,
ALF_HINSTANCE,
NULL);
}