如何在OnDraw()里面设置背景颜色??

解决方案 »

  1.   

    CRect rect;
    GetClientRect(&rect);
    pDC->FillSolidRect(&rect,m_clrBkcolor);Fill the client rect using the background color.You could then do the drawing
    operations.
    pDC->SetBkColor() could set the text's background color.Are there what you want?I don't know your problems quite clearly!
      

  2.   

    可以响应消息:Erasebackground中设置,可以设置图形背景 
    CRect rect;
    GetClientRect(&rect);
    pDC->FillSolidRect(&rect,m_clrBkcolor);
      

  3.   

    我的意思是整个窗口的背景
    不是text的不过你说的这个可以实现