]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/app.cpp
Application clipping region can be set to null without affecting
[wxWidgets.git] / src / msw / app.cpp
index f41554eb466509fffa646a67aaa751b32f8474de..af76477049a984609f08f17247387c83263475ad 100644 (file)
@@ -300,6 +300,12 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
     SHInitExtraControls();
 #endif
 
+#ifndef __WXWINCE__
+    // Don't show a message box if a function such as SHGetFileInfo
+    // fails to find a device.
+    SetErrorMode(SEM_FAILCRITICALERRORS|SEM_NOOPENFILEERRORBOX);
+#endif
+    
     wxOleInitialize();
 
     RegisterWindowClasses();