可以对对话框窗口挖洞 int nwidth=480;//洞宽 int nhight=768;//洞高 CRgn rgn2; //洞开在屏中间部份 rgn2.CreateRectRgn((x-nwidth)/2, (y-nhight)/2, (x-nwidth)/2+nwidth, (y-nhight)/2+nhight); CRgn rgn; rgn.CreateRectRgn(0, 0, 1, 1); rgn.CombineRgn(&rgn1, &rgn2, RGN_DIFF);