summaryrefslogtreecommitdiff
path: root/alf/alfbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alfbutton.cpp')
-rw-r--r--alf/alfbutton.cpp4
1 files changed, 2 insertions, 2 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);