In the OnPaint() function:
CDC *dc=GetDC(NULL);//this dc is the Desktop DC
then using the dc,you could do what you could !
ie.
CBrush brush;
brush.CreateSolidBrush(RGB(0,0,0));
dc->FillSolidRect(...);
but considering you don't want the desktop is destroyed ,you could store the desktop before you take your actions!
CDC *dc=GetDC(NULL);//this dc is the Desktop DC
then using the dc,you could do what you could !
ie.
CBrush brush;
brush.CreateSolidBrush(RGB(0,0,0));
dc->FillSolidRect(...);
but considering you don't want the desktop is destroyed ,you could store the desktop before you take your actions!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货