-
March 13th, 2000, 02:14 AM
#1
How exactly do i use OnNcPaint() ???
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|