Remove unnecessary wxSearchCtrl::DoMoveWindow() override
There is no need to override this virtual function, if the control size changes, a wxEVT_SIZE event is generated in any case, resulting in a call to LayoutControls() without explicitly calling it from here.
This commit is contained in:
@@ -194,7 +194,6 @@ protected:
|
||||
|
||||
// override the base class virtuals involved into geometry calculations
|
||||
virtual wxSize DoGetBestClientSize() const wxOVERRIDE;
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height) wxOVERRIDE;
|
||||
|
||||
virtual void RecalcBitmaps();
|
||||
|
||||
|
@@ -468,13 +468,6 @@ wxSize wxSearchCtrl::DoGetBestClientSize() const
|
||||
height);
|
||||
}
|
||||
|
||||
void wxSearchCtrl::DoMoveWindow(int x, int y, int width, int height)
|
||||
{
|
||||
wxSearchCtrlBase::DoMoveWindow(x, y, width, height);
|
||||
|
||||
LayoutControls();
|
||||
}
|
||||
|
||||
void wxSearchCtrl::LayoutControls()
|
||||
{
|
||||
if ( !m_text )
|
||||
|
Reference in New Issue
Block a user