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:
@@ -346,6 +346,7 @@ MSW:
|
|||||||
|
|
||||||
- Allow changing the height of wxChoice and wxComboBox.
|
- Allow changing the height of wxChoice and wxComboBox.
|
||||||
- Update CRT environment block in wxSetEnv() too.
|
- Update CRT environment block in wxSetEnv() too.
|
||||||
|
- Fix wxMDIChildFrame::SetSize() (Lars Rosenboom).
|
||||||
|
|
||||||
i18n:
|
i18n:
|
||||||
|
|
||||||
|
@@ -212,6 +212,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
virtual void DoGetScreenPosition(int *x, int *y) const;
|
virtual void DoGetScreenPosition(int *x, int *y) const;
|
||||||
virtual void DoGetPosition(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 DoSetClientSize(int width, int height);
|
||||||
virtual void InternalSetMenuBar();
|
virtual void InternalSetMenuBar();
|
||||||
virtual bool IsMDIChild() const { return true; }
|
virtual bool IsMDIChild() const { return true; }
|
||||||
|
@@ -902,6 +902,14 @@ bool wxMDIChildFrame::Show(bool show)
|
|||||||
return true;
|
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.
|
// Set the client size (i.e. leave the calculation of borders etc.
|
||||||
// to wxWidgets)
|
// to wxWidgets)
|
||||||
void wxMDIChildFrame::DoSetClientSize(int width, int height)
|
void wxMDIChildFrame::DoSetClientSize(int width, int height)
|
||||||
|
Reference in New Issue
Block a user