About Static Control
-
I'm a beginner.I'm working MFC and use Static Control to show texts.But the frame of Static is too small, the texts are so much to show in the frame . Have everybody anyway to show all texts without change the frame size and Font size ? . I uesed Vertical Scroll Bar but I don't know how to do it. Please Help me ! thanks
-
I'm a beginner.I'm working MFC and use Static Control to show texts.But the frame of Static is too small, the texts are so much to show in the frame . Have everybody anyway to show all texts without change the frame size and Font size ? . I uesed Vertical Scroll Bar but I don't know how to do it. Please Help me ! thanks
if you want to show a text without change size and font i suggest use form editbox
_**
**_
whitesky
-
I'm a beginner.I'm working MFC and use Static Control to show texts.But the frame of Static is too small, the texts are so much to show in the frame . Have everybody anyway to show all texts without change the frame size and Font size ? . I uesed Vertical Scroll Bar but I don't know how to do it. Please Help me ! thanks
-
if you want to show a text without change size and font i suggest use form editbox
_**
**_
whitesky
-
if you want to show a text without change size and font i suggest use form editbox
_**
**_
whitesky
The first , I tried with Edit Box , but I want to use Font, colour and Font size . Because i 'm a beginner so I don't known to change Font , colour and Font size in Edit box . If you know how to , Please show to me ! thanks
-
The first , I tried with Edit Box , but I want to use Font, colour and Font size . Because i 'm a beginner so I don't known to change Font , colour and Font size in Edit box . If you know how to , Please show to me ! thanks
To change font Here am giving a font of Arial 14 to edit box. 1) add member variable CFont m_FontArial14; 2) Create font for the edit box in the constructor of the class m_FontArial14.CreatePointFont( 140, "Arial" ); 3) Then call SetFont in OnInitDialog() GetDlgItem( IDC_EDIT )->SetFont( &m_FontArial14 ); ( where IDC_EDIT is the ID of the edit control ) To change color it is better to override OnCtlColor() :)
Dream bigger... Do bigger...Expect smaller aji
-
The first , I tried with Edit Box , but I want to use Font, colour and Font size . Because i 'm a beginner so I don't known to change Font , colour and Font size in Edit box . If you know how to , Please show to me ! thanks
for change color see
WM_CTLCOLOREDIT or WM_CTLCOLOR
for change font you can usem_Edit.SetFont(GetFont())