Click to See Complete Forum and Search --> : Changing font in CDialogBar controls


May 13th, 1999, 05:36 AM
Hello!
I want to change size of colors of my CDlgBar controls.
I tried this way :


// changing Dialog Bar fonts
CFont font;
font.CreatePointFont(300, "Times New Roman", m_wndDlgBar.GetDC());

m_wndDlgBar.GetDlgItem(IDC_SOME_ITEM)->SetFont(&font);
m_wndPriceBar.GetDlgItem(IDC_SOME_OTHER_ITEM)->SetFont(&font);




But it changes only font face, but not size (300, 100, 1000 etc. in CreatePointFont makes same size). Where is my mistake?

Thank you ahead
Moshe Levin