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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user