]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dll/my_dll.cpp
Don't use GetThreadId() in wxMSW code.
[wxWidgets.git] / samples / dll / my_dll.cpp
index bfd6ed508f6c3dde2df5c922aceb90b0e6da9d9b..94afd5045b5b855d21ebf3a88ad8735801299912 100644 (file)
@@ -22,8 +22,8 @@
     #pragma hdrstop
 #endif
 
     #pragma hdrstop
 #endif
 
-#ifndef __WXMSW__
-    #error "This sample is MSW-only"
+#ifndef __WINDOWS__
+    #error "This sample is Windows-only"
 #endif
 
 #include "wx/app.h"
 #endif
 
 #include "wx/app.h"
@@ -148,7 +148,6 @@ MyDllApp::MyDllApp()
     // by shutting the thread down when it's no longer needed, though.
     SetExitOnFrameDelete(false);
 
     // by shutting the thread down when it's no longer needed, though.
     SetExitOnFrameDelete(false);
 
-    Connect(wxEVT_IDLE, wxIdleEventHandler(MyDllApp::OnIdle));
     Connect(CMD_SHOW_WINDOW,
             wxEVT_THREAD,
             wxThreadEventHandler(MyDllApp::OnShowWindow));
     Connect(CMD_SHOW_WINDOW,
             wxEVT_THREAD,
             wxThreadEventHandler(MyDllApp::OnShowWindow));