/////////////////////////////////////////////////////////////////////////////
-// Name: dcmemory.cpp
+// Name: src/os2/dcmemory.cpp
// Purpose: wxMemoryDC class
// Author: David Webster
// Modified by:
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#include "wx/dcmemory.h"
+
#ifndef WX_PRECOMP
-#include "wx/utils.h"
-#include "wx/app.h"
-#include "wx/log.h"
+ #include "wx/utils.h"
+ #include "wx/app.h"
+ #include "wx/log.h"
#endif
#include "wx/os2/private.h"
-#include "wx/dcmemory.h"
-
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
/////////////////////////////////////////////////////////////////////////////
// Memory DC
/////////////////////////////////////////////////////////////////////////////
-wxMemoryDC::wxMemoryDC(void)
-{
- CreateCompatible(NULL);
- Init();
-} // end of wxMemoryDC::wxMemoryDC
-
wxMemoryDC::wxMemoryDC(
wxDC* pOldDC
)
{
- pOldDC->BeginDrawing();
CreateCompatible(pOldDC);
- pOldDC->EndDrawing();
Init();
} // end of wxMemoryDC::wxMemoryDC
{
m_hPS = NULLHANDLE;
m_hDC = NULLHANDLE;
- m_ok = FALSE;
- m_bOwnsDC = FALSE;
+ m_ok = false;
+ m_bOwnsDC = false;
}
}
else
{
m_hPS = NULLHANDLE;
m_hDC = NULLHANDLE;
- m_ok = FALSE;
- m_bOwnsDC = FALSE;
+ m_ok = false;
+ m_bOwnsDC = false;
}
//
return m_ok;
} // end of wxMemoryDC::CreateCompatible
-void wxMemoryDC::SelectObject(
+void wxMemoryDC::DoSelect(
const wxBitmap& rBitmap
)
{
);
m_vSelectedBitmap.SetSelectedInto(NULL);
}
+
m_vSelectedBitmap = rBitmap;