From c1066cdf62de692cec3b61f68da35263aa17b1c0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 7 Aug 1998 22:18:43 +0000 Subject: [PATCH] VZ: I removed (CASTWNDPROC) from ::CallWndProc - it doesn't compile here with it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/mdi.cpp | 2 +- src/msw/minifram.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index cc61bb583a..e1a6b0d587 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -1223,7 +1223,7 @@ long wxMDIClientWindow::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPa long wxMDIClientWindow::MSWDefWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) { if ( MSWGetOldWndProc() != 0) - return ::CallWindowProc(CASTWNDPROC (FARPROC) MSWGetOldWndProc(), (HWND) GetHWND(), (UINT) nMsg, (WPARAM) wParam, (LPARAM) lParam); + return ::CallWindowProc((FARPROC)MSWGetOldWndProc(), (HWND) GetHWND(), (UINT) nMsg, (WPARAM) wParam, (LPARAM) lParam); else return ::DefWindowProc((HWND) m_hWnd, (UINT) nMsg, (WPARAM) wParam, (LPARAM) lParam); } diff --git a/src/msw/minifram.cpp b/src/msw/minifram.cpp index b6e22bb12d..d792e4ec4a 100644 --- a/src/msw/minifram.cpp +++ b/src/msw/minifram.cpp @@ -45,7 +45,7 @@ long wxMiniFrame::MSWDefWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam (GetWindowStyleFlag() & wxTINY_CAPTION_VERT)) return ::ibDefWindowProc((HWND) GetHWND(), nMsg, wParam, lParam); else if ( m_oldWndProc ) - return ::CallWindowProc(CASTWNDPROC (FARPROC) m_oldWndProc, (HWND) GetHWND(), (UINT) nMsg, (WPARAM) wParam, (LPARAM) lParam); + return ::CallWindowProc((FARPROC)m_oldWndProc, (HWND) GetHWND(), (UINT) nMsg, (WPARAM) wParam, (LPARAM) lParam); else return ::DefWindowProc((HWND) GetHWND(), nMsg, wParam, lParam); } -- 2.45.2