// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
+#ifdef __GNUG__
+ #pragma implementation "bitmap.h"
+#endif
+
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// macros
// ----------------------------------------------------------------------------
-#if !USE_SHARED_LIBRARIES
IMPLEMENT_DYNAMIC_CLASS(wxBitmap, wxGDIObject)
IMPLEMENT_DYNAMIC_CLASS(wxMask, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxBitmapHandler, wxObject)
-#endif
// ============================================================================
// implementation
if (!rIcon.Ok())
return(FALSE);
-#if WXWIN_COMPATIBILITY_2
- refData->m_ok = TRUE;
-#endif // WXWIN_COMPATIBILITY_2
-
return CopyFromIconOrCursor(rIcon);
}
wxLogLastError("GpiCreatePS Failure");
}
- m_hDc = hDc;
- m_hPs = hPs;
-
m_refData = pRefData;
pRefData->m_nWidth = nTheWidth;
, long lType
)
{
+ HPS hPs = NULLHANDLE;
+
UnRef();
wxBitmapHandler* pHandler = wxDynamicCast( FindHandler(lType)
return(pHandler->LoadFile( this
,rFilename
+ ,hPs
,lType
, -1
, -1
bool wxBitmapHandler::Load(
wxGDIImage* pImage
, const wxString& rName
+, HPS hPs
, long lFlags
, int nWidth
, int nHeight
return(pBitmap ? LoadFile( pBitmap
,rName
+ ,hPs
,lFlags
,nWidth
,nHeight
bool wxBitmapHandler::LoadFile(
wxBitmap* WXUNUSED(pBitmap)
, const wxString& WXUNUSED(rName)
+, HPS WXUNUSED(hPs)
, long WXUNUSED(lType)
, int WXUNUSED(nDesiredWidth)
, int WXUNUSED(nDesiredHeight)