Replace DoGetBorderSize() with GetWindowBorderSize()
We accidentally ended up with two functions doing the same thing, since DoGetBorderSize() was added in743b426605
(Added DoGetClientBestSize() and use it for a couple of controls in wxMSW., 2009-06-22), as we already had GetWindowBorderSize() added even earlier in333d70525c
(added wxWindow::GetWindowBorderSize(), 2006-11-25), so remove the redundant non-public function and use GetWindowBorderSize() everywhere. This does change the behaviour of GetWindowBorderSize() in wxMSW, wxGTK and wxUniv, as it now does what DoGetBorderSize() used to do, but this should be an improvement, as DoGetBorderSize() implementation was more precise.
This commit is contained in:
@@ -1909,15 +1909,6 @@ protected:
|
||||
int maxW, int maxH,
|
||||
int incW, int incH );
|
||||
|
||||
// return the total size of the window borders, i.e. the sum of the widths
|
||||
// of the left and the right border in the x component of the returned size
|
||||
// and the sum of the heights of the top and bottom borders in the y one
|
||||
//
|
||||
// NB: this is currently only implemented properly for wxMSW, wxGTK and
|
||||
// wxUniv and doesn't behave correctly in the presence of scrollbars in
|
||||
// the other ports
|
||||
virtual wxSize DoGetBorderSize() const;
|
||||
|
||||
// move the window to the specified location and resize it: this is called
|
||||
// from both DoSetSize() and DoSetClientSize() and would usually just
|
||||
// reposition this window except for composite controls which will want to
|
||||
|
Reference in New Issue
Block a user