Use Bind() instead of Connect() in wxWidgets code
Use more modern function which allows to avoid wxXXXEventHandler() macros use. No real changes.
This commit is contained in:
@@ -67,18 +67,18 @@ protected:
|
||||
|
||||
if ( m_bitmapBg.IsOk() )
|
||||
{
|
||||
BaseWindowClass::Connect
|
||||
BaseWindowClass::Bind
|
||||
(
|
||||
wxEVT_ERASE_BACKGROUND,
|
||||
wxEraseEventHandler(wxCustomBackgroundWindow::OnEraseBackground)
|
||||
&wxCustomBackgroundWindow::OnEraseBackground, this
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
BaseWindowClass::Disconnect
|
||||
BaseWindowClass::Unbind
|
||||
(
|
||||
wxEVT_ERASE_BACKGROUND,
|
||||
wxEraseEventHandler(wxCustomBackgroundWindow::OnEraseBackground)
|
||||
&wxCustomBackgroundWindow::OnEraseBackground, this
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user