]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/life/life.cpp
Don't enable scrollbar if it can't do anything in wxMSW.
[wxWidgets.git] / demos / life / life.cpp
index fb1bd8bafad3c729a3db0fbc89d8823655de6f08..13376c261c36e9854004817754f16bd9724507c3 100644 (file)
@@ -150,7 +150,7 @@ IMPLEMENT_APP(LifeApp)
 
 // some shortcuts
 #define ADD_TOOL(id, bmp, tooltip, help) \
-    toolBar->AddTool(id, bmp, wxNullBitmap, false, wxDefaultCoord, wxDefaultCoord, (wxObject *)NULL, tooltip, help)
+    toolBar->AddTool(id, wxEmptyString, bmp, wxNullBitmap, wxITEM_NORMAL, tooltip, help)
 
 
 // --------------------------------------------------------------------------