X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4ff53d1b7a714df97b2b4e584c67c69037fc47b8..8e5ec129614e2473fd240f2a6e94ee56e3a9039b:/src/msw/fdrepdlg.cpp?ds=inline diff --git a/src/msw/fdrepdlg.cpp b/src/msw/fdrepdlg.cpp index 27711a8dc0..86c8606c56 100644 --- a/src/msw/fdrepdlg.cpp +++ b/src/msw/fdrepdlg.cpp @@ -38,8 +38,8 @@ // functions prototypes // ---------------------------------------------------------------------------- -LRESULT APIENTRY wxFindReplaceWindowProc(HWND hwnd, WXUINT nMsg, - WPARAM wParam, LPARAM lParam); +LRESULT CALLBACK wxFindReplaceWindowProc(HWND hwnd, WXUINT nMsg, + WPARAM wParam, LPARAM lParam); UINT_PTR CALLBACK wxFindReplaceDialogHookProc(HWND hwnd, UINT uiMsg, @@ -190,8 +190,7 @@ void wxFindReplaceDialogImpl::SubclassDialog(HWND hwnd) // check that we don't subclass the parent twice: this would be a bad idea // as then we'd have infinite recursion in wxFindReplaceWindowProc - wxCHECK_RET( wxGetWindowProc(hwnd) != - wx_reinterpret_cast(void *, wxFindReplaceWindowProc), + wxCHECK_RET( wxGetWindowProc(hwnd) != &wxFindReplaceWindowProc, _T("can't have more than one find dialog currently") ); // set the new one and save the old as user data to allow access to it @@ -217,7 +216,7 @@ wxFindReplaceDialogImpl::~wxFindReplaceDialogImpl() // Window Proc for handling RegisterWindowMessage(FINDMSGSTRING) // ---------------------------------------------------------------------------- -LRESULT APIENTRY wxFindReplaceWindowProc(HWND hwnd, WXUINT nMsg, +LRESULT CALLBACK wxFindReplaceWindowProc(HWND hwnd, WXUINT nMsg, WPARAM wParam, LPARAM lParam) { #if wxUSE_UNICODE_MSLU