用AppWiard生成dialog应用程序(dlg1)
在resource view中自定义对话框dlg2(popup)
dlg1的OnButtonXX时,
void CDlg1::OnButtonXX() 
{
CDlg2 dlg;
dlg.DoModal();
}
一切正常。但是
如果我想改变dlg2的外观,也就是在OnCreate中加入如下代码:
CRgn rgn;
CRect rect;
GetWindowRect(&rect);
rgn.CreateRoundRectRgn(rect.left,rect.top,rect.right,rect.bottom,50,50);
SetWindowRgn(rgn,1);后,
我就再也没有见到它的样子了,
大伙儿给支个招吧