X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/88b0e1c83deb0e24330c0cabdb258028bd2d88dc..b889a3a24bda7d1e9d361d866ada776400b2fb81:/samples/ownerdrw/ownerdrw.cpp?ds=sidebyside diff --git a/samples/ownerdrw/ownerdrw.cpp b/samples/ownerdrw/ownerdrw.cpp index a7f130b1f3..4488631127 100644 --- a/samples/ownerdrw/ownerdrw.cpp +++ b/samples/ownerdrw/ownerdrw.cpp @@ -273,15 +273,16 @@ void OwnerDrawnFrame::OnListboxSelect(wxCommandEvent& event) { wxString strSelection; unsigned int nSel = event.GetSelection(); - strSelection.sprintf("item %d selected (%schecked)", nSel, - m_pListBox->IsChecked(nSel) ? "" : "not "); + strSelection.sprintf(wxT("item %d selected (%schecked)"), nSel, + m_pListBox->IsChecked(nSel) ? wxT("") : wxT("not ")); SetStatusText(strSelection); } void OwnerDrawnFrame::OnListboxDblClick(wxCommandEvent& event) { wxString strSelection; - strSelection.sprintf("item %d double clicked", m_pListBox->GetSelection()); + strSelection.sprintf(wxT("item %d double clicked"), + m_pListBox->GetSelection()); wxMessageDialog dialog(this, strSelection); dialog.ShowModal(); } @@ -290,7 +291,7 @@ void OwnerDrawnFrame::OnCheckboxToggle(wxCommandEvent& event) { wxString strSelection; unsigned int nItem = event.GetInt(); - strSelection.sprintf("item %d was %schecked", nItem, - m_pListBox->IsChecked(nItem) ? "" : "un"); + strSelection.sprintf(wxT("item %d was %schecked"), nItem, + m_pListBox->IsChecked(nItem) ? wxT("") : wxT("un")); SetStatusText(strSelection); }