simplify DoSetClientSize

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2007-05-19 17:34:42 +00:00
parent ba705c09b4
commit 949ff63e2f
7 changed files with 5 additions and 90 deletions

View File

@@ -91,7 +91,6 @@ protected:
#endif // wxUSE_STATUSBAR
// override wxWindow methods to take into account tool/menu/statusbars
virtual void DoSetClientSize(int width, int height);
virtual void DoGetClientSize( int *width, int *height ) const;
#if wxUSE_MENUS_NATIVE

View File

@@ -164,8 +164,6 @@ protected:
virtual void DoSetSize(int x, int y,
int width, int height,
int sizeFlags = wxSIZE_AUTO);
virtual void DoSetClientSize(int width, int height);
virtual void DoGetClientSize( int *width, int *height ) const;
private:
DECLARE_EVENT_TABLE()

View File

@@ -120,8 +120,7 @@ protected:
// common part of all ctors
void Init();
// move the window to the specified location and resize it: this is called
// from both DoSetSize() and DoSetClientSize()
// move the window to the specified location and resize it
virtual void DoMoveWindow(int x, int y, int width, int height);
// take into account WM decorations here
@@ -131,11 +130,10 @@ protected:
int sizeFlags = wxSIZE_AUTO);
// override these methods to take into account tool/menu/statusbars
virtual void DoSetClientSize(int width, int height);
virtual void DoGetClientSize(int *width, int *height) const;
// this method takes the size of the window not taking account of
// decorations and is used by both DoSetSize() and DoSetClientSize()
// decorations
void GTKDoSetSize(int width, int height);