1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
BOOL CAboutDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_pBrush= new CBrush;
m_pBrush->CreateSolidBrush(RGB(187,221,255));
ModifyStyleEx(0,WS_EX_LAYERED);
SetLayeredWindowAttributes(m_hWnd,RGB(187,221,255),180,LWA_ALPHA);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
HBRUSH CAboutDlg::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
return static_cast<HBRUSH>(*m_pBrush);
//return hbr;
} |
Partager