In CWnd::OnCreate() I call SetSetBkMode() for CDC object
But It doesn't work
My Code is
int CMapObject::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CWnd::OnCreate(lpCreateStruct) == -1)
return -1;
//..........
//..........
CClientDC dc(this); //Device context
int res = dc.TextOut(0,0,L"123"
;
CFont font;
font.CreatePointFont(100,L"Tahoma"
;
dc.SetBkMode(TRANSPARENT); //Transp bk
dc.BeginPath();
dc.RoundRect(5,5,rect.Width(),20,0,0);
res = dc.TextOut(5,5,L"123"
;
dc.EndPath();
tObject.CreateFromPath(&dc); //Creates region
// tObject is CRgn
//.................
//...............
} I use Visual C++ 6.0
Please Help
Thanks;
But It doesn't work
My Code is
int CMapObject::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CWnd::OnCreate(lpCreateStruct) == -1)
return -1;
//..........
//..........
CClientDC dc(this); //Device context
int res = dc.TextOut(0,0,L"123"
CFont font;
font.CreatePointFont(100,L"Tahoma"
dc.SetBkMode(TRANSPARENT); //Transp bk
dc.BeginPath();
dc.RoundRect(5,5,rect.Width(),20,0,0);
res = dc.TextOut(5,5,L"123"
dc.EndPath();
tObject.CreateFromPath(&dc); //Creates region
// tObject is CRgn
//.................
//...............
} I use Visual C++ 6.0
Please Help
Thanks;