///////////////////////////////////////////////////////////////////////////////
-// Name: os2/dataobj.cpp
+// Name: src/os2/dataobj.cpp
// Purpose: implementation of wx[I]DataObject class
// Author: David Webster
// Modified by:
#include "wx/mstream.h"
#include "wx/image.h"
-#define INCL_DOS
-#include <os2.h>
+#include "wx/os2/private.h"
// ----------------------------------------------------------------------------
// functions
{
QueryGetData(rFormat);
if (rFormat.GetType() == wxDF_INVALID)
- return FALSE;
+ return false;
ULONG ulSize = m_pDataObject->GetDataSize(rFormat);
//
// It probably means that the method is just not implemented
//
- return FALSE;
+ return false;
}
if (rFormat.GetType() == wxDF_PRIVATE)
{
}
if (ulSize > ulLen) // not enough room to copy
- return FALSE;
+ return false;
//
// Copy the data
if (!m_pngSize)
{
wxFAIL_MSG(wxT("attempt to copy empty bitmap failed"));
- return FALSE;
+ return false;
}
memcpy(pBuf, m_pngData, m_pngSize);
return true;
}
-bool wxBitmapDataObject::SetData(
- size_t nSize
-, const void* pBuf
-)
+bool wxBitmapDataObject::SetData( size_t nSize, const void* pBuf)
{
Clear();
m_pngSize = nSize;
if (!vHandler.LoadFile(&vImage, vMstream))
{
- return FALSE;
+ return false;
}
m_bitmap = wxBitmap(vImage);