From: Robin Dunn Date: Sun, 19 Mar 2000 17:21:28 +0000 (+0000) Subject: Allows wxStatusBar95 to send common events like other windows X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bae411099c6c5c0c8c082516604fe80112699cef Allows wxStatusBar95 to send common events like other windows git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/statbr95.cpp b/src/msw/statbr95.cpp index c3cf3960bf..20df26db30 100644 --- a/src/msw/statbr95.cpp +++ b/src/msw/statbr95.cpp @@ -69,10 +69,23 @@ LRESULT APIENTRY wxStatusBarProc(HWND hwnd, WPARAM wParam, LPARAM lParam) { - if ( message == WM_COMMAND ) - { - wxStatusBar95 *sb = (wxStatusBar95 *)GetWindowLong(hwnd, GWL_USERDATA); - sb->MSWWindowProc(message, wParam, lParam); + switch (message) { + case WM_COMMAND: + case WM_SIZE: + case WM_MOVE: + case WM_MOUSEMOVE: + case WM_MOUSEMOVE: + case WM_LBUTTONUP: + case WM_LBUTTONDBLCLK: + case WM_RBUTTONDOWN: + case WM_RBUTTONUP: + case WM_RBUTTONDBLCLK: + case WM_MBUTTONDOWN: + case WM_MBUTTONUP: + case WM_MBUTTONDBLCLK: + wxStatusBar95 *sb = (wxStatusBar95 *)GetWindowLong(hwnd, GWL_USERDATA); + sb->MSWWindowProc(message, wParam, lParam); + break; } return ::CallWindowProc(CASTWNDPROC gs_wndprocStatBar, hwnd, message, wParam, lParam);