Static font
-
Hi All How can set the satic text size?I want to set the static text which is written by ne.Plz help me
You can use of CreateFont and after make your font you can use of SetFont.(you need change id of staticfont).
-
You can use of CreateFont and after make your font you can use of SetFont.(you need change id of staticfont).
-
CFont m2; m2.CreateFontA(20,0,0,0,FW_NORMAL,FALSE,FALSE,0,ANSI_CHARSET,OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH | FF_SWISS,_T("System")); GetDlgItem(IDC_STATIC2)->SetFont(&m2);
-
CFont m2; m2.CreateFontA(20,0,0,0,FW_NORMAL,FALSE,FALSE,0,ANSI_CHARSET,OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH | FF_SWISS,_T("System")); GetDlgItem(IDC_STATIC2)->SetFont(&m2);
-
:-D
-
:-D
-
NewVC++ wrote:
one little problem it's showing char highlited and i want show in nornal font.
Not sure what you mean but if your looking for the default dialog font it can be obtained by changing the font face to: _T("MS Shell Dlg 2") which is a Logical Font[^] that maps to default font used throughout the operating system on Windows 2000 and later. Best Wishes, -David Delaune
-
Can you more explain what is highlited ?
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
Can you more explain what is highlited ?
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
I have static text more than one.And i set the font only one static text.Every things is working fine but problem is that it's showing highlited in related to other static text.But i want to set only it's size and all things i want to show nornmal as like all normal satic text show.Plz help me Thanks in advance
-
I have static text more than one.And i set the font only one static text.Every things is working fine but problem is that it's showing highlited in related to other static text.But i want to set only it's size and all things i want to show nornmal as like all normal satic text show.Plz help me Thanks in advance
I need to see your project.showing highlited??
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )