don't add client area origin when positioning the child MDI frame
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
51a5c8df7c
commit
0598625cb2
@ -346,6 +346,7 @@ MSW:
|
||||
|
||||
- Allow changing the height of wxChoice and wxComboBox.
|
||||
- Update CRT environment block in wxSetEnv() too.
|
||||
- Fix wxMDIChildFrame::SetSize() (Lars Rosenboom).
|
||||
|
||||
i18n:
|
||||
|
||||
|
@ -212,6 +212,7 @@ public:
|
||||
protected:
|
||||
virtual void DoGetScreenPosition(int *x, int *y) const;
|
||||
virtual void DoGetPosition(int *x, int *y) const;
|
||||
virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags);
|
||||
virtual void DoSetClientSize(int width, int height);
|
||||
virtual void InternalSetMenuBar();
|
||||
virtual bool IsMDIChild() const { return true; }
|
||||
|
@ -902,6 +902,14 @@ bool wxMDIChildFrame::Show(bool show)
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
wxMDIChildFrame::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
||||
{
|
||||
// we need to disable client area origin adjustments used for the child
|
||||
// windows for the frame itself
|
||||
wxMDIChildFrameBase::DoSetSize(x, y, width, height, sizeFlags);
|
||||
}
|
||||
|
||||
// Set the client size (i.e. leave the calculation of borders etc.
|
||||
// to wxWidgets)
|
||||
void wxMDIChildFrame::DoSetClientSize(int width, int height)
|
||||
|
Loading…
Reference in New Issue
Block a user