#include <math.h>
#if wxUSE_COMMON_DIALOGS
+#if wxUSE_NORLANDER_HEADERS
+ #include <windows.h>
+#endif
#include <commdlg.h>
#endif
HDC cdc = GetHdc();
HDC memdc = ::CreateCompatibleDC( cdc );
HBITMAP hbitmap = (HBITMAP) bmp.GetHBITMAP( );
+
+ wxASSERT_MSG( hbitmap, _T("bitmap is ok but HBITMAP is NULL?") );
+
::SelectObject( memdc, hbitmap );
::BitBlt( cdc, x, y, bmp.GetWidth(), bmp.GetHeight(), memdc, 0, 0, SRCCOPY);
::DeleteDC( memdc );
if (m_textBackgroundColour.Ok())
(void)SetBkColor(GetHdc(), old_background);
+ // background colour is used only for DrawText, otherwise
+ // always TRANSPARENT, RR
+ SetBkMode(GetHdc(), TRANSPARENT);
+
CalcBoundingBox(x, y);
long w, h;
{
m_backgroundMode = mode;
+ // SetBackgroundColour now only refers to text background
+ // and m_backgroundMode is used there
+
+/*
if (m_backgroundMode == wxTRANSPARENT)
::SetBkMode(GetHdc(), TRANSPARENT);
else
- ::SetBkMode(GetHdc(), OPAQUE);
+ ::SetBkMode(GetHdc(), OPAQUE);
+*/
}
void wxDC::SetLogicalFunction(int function)