From 3602a6748c30406186740c85caef7ef0234d6dec Mon Sep 17 00:00:00 2001 From: Sylae Corell Date: Fri, 1 Aug 2014 11:31:35 -0600 Subject: [PATCH] GWLP for the CharEd --- Win32/charedit/dlogtool.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Win32/charedit/dlogtool.cpp b/Win32/charedit/dlogtool.cpp index 72f07838..5e54e824 100644 --- a/Win32/charedit/dlogtool.cpp +++ b/Win32/charedit/dlogtool.cpp @@ -185,7 +185,7 @@ void cd_init_dialogs() edit_proc = fresh_edit_proc; } -long CALLBACK fresh_edit_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) +LRESULT CALLBACK fresh_edit_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { @@ -475,8 +475,8 @@ BOOL CALLBACK dummy_dialog_proc(HWND hDlg, UINT message, WPARAM, LPARAM) std::max(22,item_rect[free_item].bottom - item_rect[free_item].top), dlgs[free_slot],(HMENU) 150,store_hInstance,NULL); store_edit_parent = dlgs[free_slot]; - old_edit_proc = (WNDPROC) GetWindowLong(edit_box,GWL_WNDPROC); - SetWindowLong(edit_box,GWL_WNDPROC,(LONG) edit_proc); + old_edit_proc = (WNDPROC) GetWindowLongPtr(edit_box,GWLP_WNDPROC); + SetWindowLongPtr(edit_box,GWLP_WNDPROC,(LRESULT) edit_proc); break; } win_height = std::max(win_height, item_rect[free_item].bottom + 35);