From bae411099c6c5c0c8c082516604fe80112699cef Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sun, 19 Mar 2000 17:21:28 +0000 Subject: [PATCH] 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 --- src/msw/statbr95.cpp | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) 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); -- 2.45.2