1.控件选中transparent属性
2.HBRUSH CWaitDialog::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
// TODO: Return a different brush if the default is not desired
if (nCtlColor == CTLCOLOR_STATIC)
{
pDC-> SetBkMode(TRANSPARENT); //透明
return (HBRUSH)::GetStockObject(NULL_BRUSH);
}
return hbr;
}