]> git.saurik.com Git - wxWidgets.git/commitdiff
fix bug with button doing nothing
authorChris Elliott <biol75@york.ac.uk>
Wed, 23 Jun 2004 16:04:10 +0000 (16:04 +0000)
committerChris Elliott <biol75@york.ac.uk>
Wed, 23 Jun 2004 16:04:10 +0000 (16:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/mdi/mdi.cpp

index d80dbd294a2b4292dd2cddc36e15079010c453b5..f8b7b47e74cd68b4c317b23697a21ca343d47f21 100644 (file)
@@ -331,7 +331,7 @@ void MyFrame::InitToolBar(wxToolBar* toolBar)
     toolBar->AddTool(6, *bitmaps[6], wxNullBitmap, false, currentX, wxDefaultPosition.y, (wxObject *) NULL, _T("Print"));
     currentX += width + 5;
     toolBar->AddSeparator();
-    toolBar->AddTool(7, *bitmaps[7], wxNullBitmap, true, currentX, wxDefaultPosition.y, (wxObject *) NULL, _T("Help"));
+    toolBar->AddTool( MDI_ABOUT, *bitmaps[7], wxNullBitmap, true, currentX, wxDefaultPosition.y, (wxObject *) NULL, _T("Help"));
 
     toolBar->Realize();