git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71615
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if (buffer)
{
size = strlen( buffer );
if (buffer)
{
size = strlen( buffer );
// On Windows we need to add some stuff to the string to satisfy
// its clipboard format requirements.
size += 400;
// On Windows we need to add some stuff to the string to satisfy
// its clipboard format requirements.
size += 400;
return false;
size_t bytes = GetDataSize();
return false;
size_t bytes = GetDataSize();
// add the extra info that the MSW clipboard format requires.
char* buffer = new char[bytes];
// add the extra info that the MSW clipboard format requires.
char* buffer = new char[bytes];
wxString html(buffer);
// To be consistent with other platforms, we only add the Fragment part
// of the Windows HTML clipboard format to the data object.
wxString html(buffer);
// To be consistent with other platforms, we only add the Fragment part
// of the Windows HTML clipboard format to the data object.
int fragmentStart = html.rfind("StartFragment");
int fragmentEnd = html.rfind("EndFragment");
int fragmentStart = html.rfind("StartFragment");
int fragmentEnd = html.rfind("EndFragment");