绘的什么图?
试着用背景色重画一遍,看行不行

解决方案 »

  1.   

    我把背景图成黑色,在放一个静态文本上去,怎样让这个控件的背景也是黑色
      

  2.   

    HBRUSH CTemp1Dlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
    {
    HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);

    // TODO: Change any attributes of the DC here
    if(nCtlColor== CTLCOLOR_STATIC)
    {
    pDC->SetBkMode(TRANSPARENT);          //背景设为透明
    pDC->SetTextColor(RGB(255,255,255)); //设置字体色

    }
    // TODO: Return a different brush if the default is not desired
    return hbr;
    }