How do I draw a bitmap in the background of a dialog?
How do I draw a bitmap in the background of a dialog?
The trick is to override the OnEraseBkgnd handler. Here's one way of doing it:
BOOL CTestbed2Dlg::OnEraseBkgnd(CDC* pDC)
{
//if u load the bitmap in pDC using BitBlt() fn
}
The trick is to override the OnEraseBkgnd handler. Here's one way of doing it:
BOOL CTestbed2Dlg::OnEraseBkgnd(CDC* pDC)
{
//if u load the bitmap in pDC using BitBlt() fn
}
Labels: MFC
0 Comments:
Post a Comment
<< Home