|
-
May 16th, 1999, 09:22 AM
#1
Q: Changing font size in CDialogBar control.
Hello!
I want to change size of fonts of my CDialogBar controls.
I tried this way :
// changing Dialog Bar fonts
CFont font;
int nFontSize = 300; // in tenth of point - so sizi should be 30 pts.
CString strFontFace = "Times New Roman";
font.CreatePointFont(nFontSize, strFontFace, 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 (nFontSize = 300, 100, 1000 etc. makes same size). Where is my mistake?
Thank you ahead
Moshe Levin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|