From fe10e5fa354a508a6b20b4a20b9bba46c6b8612e Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Sun, 3 May 2020 20:23:10 +0200 Subject: make it compile as 64bit under mingw --- alf/alfbutton.cpp | 4 ++-- alf/alfcombobox.cpp | 2 +- alf/alfcompat.cpp | 4 ++-- alf/alfedit.cpp | 2 +- alf/alflabel.cpp | 2 +- alf/alfnotebook.cpp | 2 +- alf/alfpanel.cpp | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) (limited to 'alf') 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); } -- cgit v1.2.3