afx_msg BOOL OnEraseBkgnd(CDC* pDC);//return 1,怎么对话框的背景不是黑色的??????????????????????? [解决办法]你得自己到OnPaint/OnDraw()函数中去绘制底色[解决办法]pdc。setbkcolor!