How to retrieve font size of a dialog box??
-
Hi guys, can someone tell me how i can retrieve the font size of a Static box of a dialog box? I hope someone can help me. Thanks in advance
CFont* fn = GetdlgItem(ID of static :)Box)->GetFont( ) :)
-
CFont* fn = GetdlgItem(ID of static :)Box)->GetFont( ) :)
-
Thanks, that's right, but how can i retrieve di dimension of the font in a int variable, to set the height of my static control?
vasmvr wrote:
...how can i retrieve di dimension of the font...
That information is contained within the
LOGFONT
structure.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
vasmvr wrote:
...how can i retrieve di dimension of the font...
That information is contained within the
LOGFONT
structure.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
CFont::GetLogFont()
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal.
George Orwell, "Keep the Aspidistra Flying", Opening words -
CFont* font = pWnd->GetFont(); if (font) { LOGFONT lf; font->GetLogFont(&lf); } :)
-
Hi guys, can someone tell me how i can retrieve the font size of a Static box of a dialog box? I hope someone can help me. Thanks in advance
-
Thanks all, now i have to understand why this value is negative.....and if this value is in client value
They hide that information in the documentation[^] :)
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
See here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
They hide that information in the documentation[^] :)
Mark Salsbery Microsoft MVP - Visual C++ :java:
Stealing Mike's thunder, eh?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Stealing Mike's thunder, eh?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
Nah - not stealing...it's a tribute!
Mark Salsbery Microsoft MVP - Visual C++ :java: