摘要:
一般放在重绘函数OnPaint()里OnPaint(){//为按钮添加图片 Image image(L"...resSH\\退出系统正常状态.png",TRUE); Graphics graphics(m_button16.GetWindowDC()->m_hDC); graphics.DrawImage(&image,0,0,image.GetWidth(),image.GetHeight()); //为窗体添机背景图片CPaintDC dc(this); // device context for painting CRect rect;GetClient 阅读全文