映射WM_ERASEBKGND
然后
准备bmp.
最后pDC->BitBlt(....&你的bmp的内存dc...)
ok...

解决方案 »

  1.   

    响应WM_CTLCOLOR
    HBRUSH CTypeokDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
    {
      // HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
       //return hbr;
    //   m_hBrush=::CreatePatternBrush (HBITMAP);
       return m_hBrush; //返回你定义的位图刷子。
    }
      

  2.   

    http://www.csdn.net/develop/read_article.asp?id=9603
      

  3.   

    哥们们,我怎么感觉有点儿不太好用呀,能不能麻烦给我一个简单的例程呢?
    [email protected]
    谢谢了!
      

  4.   

    prog_st(st):还有问题呀打开时有如下提示:
    Cannot access the ClassView infirmation file.ClassView information will not be available.
    编译时有如下提示:
    LINK : fatal error LNK1104: cannot open file "Debug/BmpDlg.exe"怎么解决呢?
      

  5.   

    这些VC例程通常从光盘中拷贝的,带有自度属性,编译工程前从来需要保证工程所有文件的属性是非只读的,这是基本常识,但很多VC才鸟就爱问这样的问题。