More _T()... trying to get to that clipboard sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -372,18 +372,18 @@ void DnDFrame::OnCopy(wxCommandEvent& WXUNUSED(event))
|
|||||||
{
|
{
|
||||||
if ( !wxTheClipboard->Open() )
|
if ( !wxTheClipboard->Open() )
|
||||||
{
|
{
|
||||||
wxLogError("Can't open clipboard.");
|
wxLogError(_T("Can't open clipboard."));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !wxTheClipboard->AddData(new wxTextDataObject(m_strText)) )
|
if ( !wxTheClipboard->AddData(new wxTextDataObject(m_strText)) )
|
||||||
{
|
{
|
||||||
wxLogError("Can't copy data to the clipboard");
|
wxLogError(_T("Can't copy data to the clipboard"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxLogMessage("Text '%s' put on the clipboard", m_strText.c_str());
|
wxLogMessage(_T("Text '%s' put on the clipboard"), m_strText.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
wxTheClipboard->Close();
|
wxTheClipboard->Close();
|
||||||
@@ -393,14 +393,14 @@ void DnDFrame::OnPaste(wxCommandEvent& WXUNUSED(event))
|
|||||||
{
|
{
|
||||||
if ( !wxTheClipboard->Open() )
|
if ( !wxTheClipboard->Open() )
|
||||||
{
|
{
|
||||||
wxLogError("Can't open clipboard.");
|
wxLogError(_T("Can't open clipboard."));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !wxTheClipboard->IsSupported(wxDF_TEXT) )
|
if ( !wxTheClipboard->IsSupported(wxDF_TEXT) )
|
||||||
{
|
{
|
||||||
wxLogWarning("No text data on clipboard");
|
wxLogWarning(_T("No text data on clipboard"));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -408,11 +408,11 @@ void DnDFrame::OnPaste(wxCommandEvent& WXUNUSED(event))
|
|||||||
wxTextDataObject text;
|
wxTextDataObject text;
|
||||||
if ( !wxTheClipboard->GetData(&text) )
|
if ( !wxTheClipboard->GetData(&text) )
|
||||||
{
|
{
|
||||||
wxLogError("Can't paste data from the clipboard");
|
wxLogError(_T("Can't paste data from the clipboard"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxLogMessage("Text '%s' pasted from the clipboard",
|
wxLogMessage(_T("Text '%s' pasted from the clipboard"),
|
||||||
text.GetText().c_str());
|
text.GetText().c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -62,7 +62,7 @@ bool MyApp::OnInit(void)
|
|||||||
/// single window : (one document at a time, only one frame, as in Windows Write)
|
/// single window : (one document at a time, only one frame, as in Windows Write)
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
{
|
{
|
||||||
if (strcmp(argv[1], "-single") == 0)
|
if (wxStrcmp(argv[1], _T("-single")) == 0)
|
||||||
{
|
{
|
||||||
singleWindowMode = TRUE;
|
singleWindowMode = TRUE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user