#include "wx/dcmemory.h"
#include <windows.h>
+#include "wx/msw/winundef.h"
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
wxMemoryDC::wxMemoryDC(void)
{
- m_hDC = (WXHDC) ::CreateCompatibleDC(NULL);
+ m_hDC = (WXHDC) ::CreateCompatibleDC((HDC) NULL);
m_ok = (m_hDC != 0);
m_bOwnsDC = TRUE;
// JACS 11/12/98: disabling this since the Forty Thieves sample
// shows this not working properly. In fact, if loading from a resource,
// the depth should become the screen depth, so why was it being called?
- if (0)
- {
- // Make a new bitmap that has the correct depth.
- wxBitmap newBitmap = bitmap.GetBitmapForDC(* this);
-
- m_selectedBitmap = newBitmap ;
- }
- else
- {
+// if (0)
+// {
+// // Make a new bitmap that has the correct depth.
+// wxBitmap newBitmap = bitmap.GetBitmapForDC(* this);
+//
+// m_selectedBitmap = newBitmap ;
+// }
+// else
+// {
m_selectedBitmap = bitmap;
- }
+// }
if (!m_selectedBitmap.Ok())
return;
m_oldBitmap = (WXHBITMAP) bm;
}
-void wxMemoryDC::GetSize(int *width, int *height) const
+void wxMemoryDC::DoGetSize(int *width, int *height) const
{
if (!m_selectedBitmap.Ok())
{