我想改变背景颜色
在OnDraw()中加了一行pDC->SetBkColor(RGB(255,0,0));
为什么不行?
SetBkColor()要怎么使用才行?
谢谢!ps:不用画刷,想知道SetBkColor的使用方法。

解决方案 »

  1.   

    pDC->SetBkColor(RGB(255,0,0));就是这样
      

  2.   

    Res
    This function fills the gaps between styled lines drawn using a pen created by the CreatePen function. The SetBKColor function also sets the background colors for the ExtTextOut function.If the background mode is OPAQUE, the background color is used to fill gaps between styled lines, gaps between hatched lines in brushes, and character cells. The background color is also used when converting bitmaps from color to monochrome and vice versa.