且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在vc ++ MFC中设置对话框窗口的背景图像?

更新时间:2023-10-03 11:25:16

自己处理绘画

 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. :)