From e5b550e65cc7ca380d26e002334aa1ddfb7ec52c Mon Sep 17 00:00:00 2001 From: Sylae Corell Date: Fri, 1 Aug 2014 11:18:42 -0600 Subject: [PATCH] update fresh_edit_proc --- scenedit/dlogtool.cpp | 2 +- scenedit/dlogtool.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scenedit/dlogtool.cpp b/scenedit/dlogtool.cpp index 91e1e406..61bc5d21 100644 --- a/scenedit/dlogtool.cpp +++ b/scenedit/dlogtool.cpp @@ -182,7 +182,7 @@ void cd_init_dialogs() edit_proc = (FARPROC) fresh_edit_proc; } -long CALLBACK fresh_edit_proc(HWND hwnd, UINT message, UINT wParam, LONG lParam) +LRESULT CALLBACK fresh_edit_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { short i,cur_box = -1,cur_item_num,item_for_focus = -1,first_edit_box = -1; diff --git a/scenedit/dlogtool.h b/scenedit/dlogtool.h index 97fc861d..3c2a2dba 100644 --- a/scenedit/dlogtool.h +++ b/scenedit/dlogtool.h @@ -44,7 +44,9 @@ void center_window(HWND window); RECT get_item_rect(HWND hDlg, short item_num); void frame_dlog_rect(HWND hDlg, RECT rect, short val); void draw_dialog_graphic(HWND hDlg, RECT rect, short which_g, Boolean do_frame,short win_or_gworld) ; -void showcursor(Boolean a); +void showcursor(Boolean a); + +LRESULT CALLBACK fresh_edit_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); void cd_get_text_edit_str(short dlog_num, char *str); void cdsin(short dlog_num, short item_num, short num);