如何在vc ++ MFC中设置对话框窗口的背景图像? [英] How to set the background image for the dialog window in vc++ MFC??
本文介绍了如何在vc ++ MFC中设置对话框窗口的背景图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在vC ++ MFC中将位图设置为对话框窗口的背景?
解决方案
自己处理绘画
CPaintDC dc(this);
CRect rc;
GetClientRect(& rc);
dc.FillSolidRect(rc,RGB(0x33,0x55,0x56));
CDialog :: OnPaint();
或类似的东西
问候
Espen Harlinn
请参阅此处 [ ^ ]
请注意,文章的作者是我们的常驻名人Nishant Sivakumar。另请注意,我将整个问题逐字复制并粘贴到Google中,我相信我在这里给你的链接是2号。谷歌先问以后问。祝好运。 :)
How to set the bitmap as the background for the dialog window in vC++ MFC??
解决方案
Handle painting yourself
CPaintDC dc(this); CRect rc; GetClientRect(&rc); dc.FillSolidRect(rc,RGB(0x33,0x55,0x56)); CDialog::OnPaint();
or something like that
Regards
Espen Harlinn
See here[^]
Please note that the author of the article is none other than our resident celebrity Nishant Sivakumar. Also note that I copied your entire question verbatim and pasted it into Google and I believe the link I gave you here was hit number 2. Google first ask questions later. Good luck. :)
这篇关于如何在vc ++ MFC中设置对话框窗口的背景图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文