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:
@@ -1514,7 +1514,7 @@ public:
|
||||
wxWindow( parent, wxID_ANY, wxPoint(0,0), size )
|
||||
{
|
||||
m_bitmap = bitmap;
|
||||
Connect( wxEVT_PAINT, wxPaintEventHandler(wxBitmapCanvas::OnPaint) );
|
||||
Bind(wxEVT_PAINT, &wxBitmapCanvas::OnPaint, this);
|
||||
}
|
||||
|
||||
void OnPaint( wxPaintEvent &WXUNUSED(event) )
|
||||
|
Reference in New Issue
Block a user