git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28598
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
m_modeOld = ::SetStretchBltMode(m_hdc, mode);
if ( !m_modeOld )
wxLogLastError(_T("SetStretchBltMode"));
m_modeOld = ::SetStretchBltMode(m_hdc, mode);
if ( !m_modeOld )
wxLogLastError(_T("SetStretchBltMode"));
+#else
+ wxUnusedVar(mode);
bool wxDC::DoFloodFill(wxCoord x, wxCoord y, const wxColour& col, int style)
{
#ifdef __WXWINCE__
bool wxDC::DoFloodFill(wxCoord x, wxCoord y, const wxColour& col, int style)
{
#ifdef __WXWINCE__
+ wxUnusedVar(x);
+ wxUnusedVar(y);
+ wxUnusedVar(col);
+ wxUnusedVar(style);
}
#ifndef __WXWINCE__
int prev = SetPolyFillMode(GetHdc(),fillStyle==wxODDEVEN_RULE?ALTERNATE:WINDING);
}
#ifndef __WXWINCE__
int prev = SetPolyFillMode(GetHdc(),fillStyle==wxODDEVEN_RULE?ALTERNATE:WINDING);
+#else
+ wxUnusedVar(fillStyle);
#endif
(void)Polygon(GetHdc(), cpoints, n);
#ifndef __WXWINCE__
#endif
(void)Polygon(GetHdc(), cpoints, n);
#ifndef __WXWINCE__
SetMapMode(m_mappingMode);
}
SetMapMode(m_mappingMode);
}
+#else
+ wxUnusedVar(xLeftRight);
+ wxUnusedVar(yBottomUp);
pBmpInfo->bmiHeader.biSizeImage = nBitsSize;
//HBITMAP hBitmap=SetBitmap((LPBITMAPINFO)pBmpInfo, pBits);
pBmpInfo->bmiHeader.biSizeImage = nBitsSize;
//HBITMAP hBitmap=SetBitmap((LPBITMAPINFO)pBmpInfo, pBits);
- DWORD dwBitmapInfoSize = sizeof(BITMAPINFO) + nColors*sizeof(RGBQUAD);
+ //DWORD dwBitmapInfoSize = sizeof(BITMAPINFO) + nColors*sizeof(RGBQUAD);
// Create a DC which will be used to get DIB, then create DIBsection
HDC hDC = ::GetDC(NULL);
// Create a DC which will be used to get DIB, then create DIBsection
HDC hDC = ::GetDC(NULL);
// normally, wxDataObject controls our lifetime (i.e. we're deleted when it
// is), but in some cases, the situation is inversed, that is we delete it
// when this object is deleted - setting this flag enables such logic
// normally, wxDataObject controls our lifetime (i.e. we're deleted when it
// is), but in some cases, the situation is inversed, that is we delete it
// when this object is deleted - setting this flag enables such logic
- void SetDeleteFlag() { m_mustDelete = TRUE; }
+ void SetDeleteFlag() { m_mustDelete = true; }
DECLARE_IUNKNOWN_METHODS;
DECLARE_IUNKNOWN_METHODS;
wxIDataObject::wxIDataObject(wxDataObject *pDataObject)
{
m_pDataObject = pDataObject;
wxIDataObject::wxIDataObject(wxDataObject *pDataObject)
{
m_pDataObject = pDataObject;
}
wxIDataObject::~wxIDataObject()
}
wxIDataObject::~wxIDataObject()
return wxDIB::ConvertFromBitmap(pbi, GetHbitmapOf(GetBitmap())) != 0;
#else
return wxDIB::ConvertFromBitmap(pbi, GetHbitmapOf(GetBitmap())) != 0;
#else
+ wxUnusedVar(buf);
+ return false;
+ wxUnusedVar(buf);
+ return false;
// we put a bitmap handle into pBuf
*(WXHBITMAP *)pBuf = GetBitmap().GetHBITMAP();
// we put a bitmap handle into pBuf
*(WXHBITMAP *)pBuf = GetBitmap().GetHBITMAP();
}
bool wxBitmapDataObject2::SetData(size_t WXUNUSED(len), const void *pBuf)
}
bool wxBitmapDataObject2::SetData(size_t WXUNUSED(len), const void *pBuf)
if ( !bitmap.Ok() ) {
wxFAIL_MSG(wxT("pasting/dropping invalid bitmap"));
if ( !bitmap.Ok() ) {
wxFAIL_MSG(wxT("pasting/dropping invalid bitmap"));
{
wxLogLastError(wxT("GetDIBits"));
{
wxLogLastError(wxT("GetDIBits"));
*(HBITMAP *)pBuf = hbmp;
}
*(HBITMAP *)pBuf = hbmp;
}
}
bool wxBitmapDataObject::SetData(const wxDataFormat& format,
}
bool wxBitmapDataObject::SetData(const wxDataFormat& format,
wxASSERT_MSG( m_bitmap.Ok(), wxT("pasting invalid bitmap") );
wxASSERT_MSG( m_bitmap.Ok(), wxT("pasting invalid bitmap") );
+ wxUnusedVar(pData);
+ return false;
// if pData is NULL, or there are no files, return
if ( !pData || m_filenames.GetCount() == 0 )
// if pData is NULL, or there are no files, return
if ( !pData || m_filenames.GetCount() == 0 )
// convert data pointer to a DROPFILES struct pointer
LPDROPFILES pDrop = (LPDROPFILES) pData;
// convert data pointer to a DROPFILES struct pointer
LPDROPFILES pDrop = (LPDROPFILES) pData;
// add final null terminator
*pbuf = wxT('\0');
// add final null terminator
*pbuf = wxT('\0');
+ wxUnusedVar(pData);
+ return false;
memcpy( buffer, unicode_buffer.c_str(),
( unicode_buffer.length() + 1 ) * sizeof(wxChar) );
memcpy( buffer, unicode_buffer.c_str(),
( unicode_buffer.length() + 1 ) * sizeof(wxChar) );
}
virtual bool GetDataHere(const wxDataFormat& WXUNUSED(format),
void *buf) const
}
virtual bool GetDataHere(const wxDataFormat& WXUNUSED(format),
void *buf) const
wxRegion::wxRegion(size_t n, const wxPoint *points, int fillStyle)
{
#if defined(__WXMICROWIN__) || defined(__WXWINCE__)
wxRegion::wxRegion(size_t n, const wxPoint *points, int fillStyle)
{
#if defined(__WXMICROWIN__) || defined(__WXWINCE__)
+ wxUnusedVar(n);
+ wxUnusedVar(points);
+ wxUnusedVar(fillStyle);
m_refData = NULL;
M_REGION = NULL;
#else
m_refData = NULL;
M_REGION = NULL;
#else