void CComboCompletion::PreSubclassWindow()
{
// TODO: Add your specialized code here and/or call the base class
// use the same font to ctrl
CFont *pFont = GetFont();
if (m_font.m_hObject == NULL)
{
LOGFONT lf;
pFont->GetLogFont(&lf);
m_font.CreateFontIndirect(&lf);
}
CComboBox::PreSubclassWindow();
}
注意:不能在ComboCompletion的构造函数中GetFont,因为此时控件尚未创建