Hi...
im trying to draw my own window with bitmap as the frame...
this is what i did so far:

CMyDlg::CMyDlg()
{
m_FxBmp.LoadBitmap(IDB_FRAME_H);
}
void CMyDlg::OnNcPaint()
{
CRect NcRect;

GetWindowRect(&NcRect) ;

CDC *pDC=GetDC();

m_FxBmp.DrawTransparent(pDC,NcRect.left,NcRect.right,RGB(0,0,0));
//m_FxBmp is my class derived from CBitmap where i draw tranparent bmp's
ReleaseDC(pDC);

CWnd::OnNcPaint();
}



But all this doesnt work... i can see the bitmap drawn...
what am i missing here??
Any suggestions?
Many thanks
kishk91




kishk91@hotmail.com
http://www.path.co.il
ICQ: 13610258