From 4ce18ecb6699bdb443cafa0f019df65962d4079e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 30 Aug 2005 08:33:50 +0000 Subject: [PATCH] fix for status bar positioning: account for wx client area origin (replaces patch 1276316) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/statbr95.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/msw/statbr95.cpp b/src/msw/statbr95.cpp index c5ba278494..302991e944 100644 --- a/src/msw/statbr95.cpp +++ b/src/msw/statbr95.cpp @@ -349,6 +349,9 @@ wxStatusBar95::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) GetPosition(&x, &y); GetSize(&w, &h); + // we need real window coords and not wx client coords + AdjustForParentClientOrigin(x, y); + lpPos->x = x; lpPos->y = y; lpPos->cx = w; -- 2.50.0