]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/mdi/mdi.cpp
Don't use GetThreadId() in wxMSW code.
[wxWidgets.git] / samples / mdi / mdi.cpp
index e64facd67b975d99e842421e410aea6935081a4d..c65e285682fa48d1ef3b750c45989a3a0a67f29b 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "wx/toolbar.h"
 
-#if !defined(__WXMSW__)
+#ifndef wxHAS_IMAGES_IN_RESOURCES
     #include "../sample.xpm"
     #include "chart.xpm"
 #endif
@@ -340,7 +340,7 @@ MyCanvas::MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size)
                            wxNO_FULL_REPAINT_ON_RESIZE |
                            wxVSCROLL | wxHSCROLL)
 {
-    SetBackgroundColour(wxColour("WHITE"));
+    SetBackgroundColour(*wxWHITE);
     SetCursor(wxCursor(wxCURSOR_PENCIL));
 
     SetScrollbars(20, 20, 50, 50);