Replace Connect() with Bind() in all samples and utils too
Still use Connect() in unit tests which were written explicitly for it and in EventConnector, which can't use Bind() as it uses a variable for the event type. No real changes, just use the newer and more convenient function.
This commit is contained in:
parent
d4f380e16e
commit
5f7a6bd15b
32 changed files with 291 additions and 583 deletions
|
|
@ -147,12 +147,8 @@ MyDllApp::MyDllApp()
|
|||
// by shutting the thread down when it's no longer needed, though.
|
||||
SetExitOnFrameDelete(false);
|
||||
|
||||
Connect(CMD_SHOW_WINDOW,
|
||||
wxEVT_THREAD,
|
||||
wxThreadEventHandler(MyDllApp::OnShowWindow));
|
||||
Connect(CMD_TERMINATE,
|
||||
wxEVT_THREAD,
|
||||
wxThreadEventHandler(MyDllApp::OnTerminate));
|
||||
Bind(wxEVT_THREAD, &MyDllApp::OnShowWindow, this, CMD_SHOW_WINDOW);
|
||||
Bind(wxEVT_THREAD, &MyDllApp::OnTerminate, this, CMD_TERMINATE);
|
||||
}
|
||||
|
||||
void MyDllApp::OnShowWindow(wxThreadEvent& event)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue