void CGCColorStatic::SetUnderline(const BOOL On) { LOGFONT fontstruct; fontstruct = this->GetLogFont(); fontstruct.lfUnderline = (BYTE) On; SetFontIndirect(&fontstruct); }
void CGCColorStatic::SetItalic(const BOOL On) { LOGFONT fontstruct; fontstruct = this->GetLogFont(); fontstruct.lfItalic = (BYTE) On; SetFontIndirect(&fontstruct); }
BOOL CGCColorStatic::SetFontWeight(const int Weight) { if ( (Weight < 1) || (Weight > 1000) ) return FALSE; LOGFONT fontstruct; fontstruct = this->GetLogFont(); fontstruct.lfWeight = Weight; return SetFontIndirect(&fontstruct); }
void CXTPTabPaintManager::RefreshMetrics() { if (m_bUseStandardFont) { LOGFONT lfIcon; VERIFY(CXTPDrawHelpers::GetIconLogFont(&lfIcon)); SetFontIndirect(&lfIcon, TRUE); } m_pColorSet->RefreshMetrics(); m_pAppearanceSet->RefreshMetrics(); }
void CGCColorStatic::SetBold(const BOOL On) { LOGFONT fontstruct; fontstruct = this->GetLogFont(); switch (On) { case TRUE: fontstruct.lfWeight = 700; break; case FALSE: fontstruct.lfWeight = 400; } SetFontIndirect(&fontstruct); }