]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/toolbar/toolbar.cpp
use wxDC::GetMultiLineTextExtent() instead of duplicating its code in wxButton::DoGet...
[wxWidgets.git] / samples / toolbar / toolbar.cpp
index a1f45ca6c726174a430449bbf29dd69f327e9d52..747a49f1424f9ac70e3c11e81104325c00c18ee1 100644 (file)
@@ -628,7 +628,8 @@ void MyFrame::OnToolLeftClick(wxCommandEvent& event)
 void MyFrame::OnToolRightClick(wxCommandEvent& event)
 {
     m_textWindow->AppendText(
 void MyFrame::OnToolRightClick(wxCommandEvent& event)
 {
     m_textWindow->AppendText(
-            wxString::Format(_T("Tool %d right clicked.\n"), event.GetInt()));
+            wxString::Format(_T("Tool %d right clicked.\n"),
+                             (int) event.GetInt()));
 }
 
 void MyFrame::OnCombo(wxCommandEvent& event)
 }
 
 void MyFrame::OnCombo(wxCommandEvent& event)