fix ugly headers when using large fonts

This commit is contained in:
Chris Danford
2006-02-08 20:57:09 +00:00
parent 27c0547052
commit 4d6d0f9815
7 changed files with 29 additions and 37 deletions
@@ -163,21 +163,6 @@ void ChangeGameSettings::OnOK()
CDialog::OnOK();
}
HBRUSH ChangeGameSettings::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if( pWnd->GetDlgCtrlID() == IDC_STATIC_HEADER_TEXT )
{
hbr = (HBRUSH)::GetStockObject(HOLLOW_BRUSH);
pDC->SetBkMode(TRANSPARENT);
}
// TODO: Return a different brush if the default is not desired
return hbr;
}
/*
* (c) 2002-2005 Chris Danford
* All rights reserved.