About Edit box
-
Hi all, I need to change the font of Edit box , But I have no idea how to do it.PLz help. Thanks to all Saday Saday Chand Sarkar Trek Technology(s)Pte.Ltd.
-
Hi all, I need to change the font of Edit box , But I have no idea how to do it.PLz help. Thanks to all Saday Saday Chand Sarkar Trek Technology(s)Pte.Ltd.
use SetFont(); CEdit m; m.SetFont();_**
**_
whitesky
-
Hi all, I need to change the font of Edit box , But I have no idea how to do it.PLz help. Thanks to all Saday Saday Chand Sarkar Trek Technology(s)Pte.Ltd.
Use CFont; CFont font.CreateFont(nFontSize, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH|FF_DONTCARE, _T("Arial")); Using object of Edit Ctrl call SetFont() Regards Amar:)
-
Use CFont; CFont font.CreateFont(nFontSize, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH|FF_DONTCARE, _T("Arial")); Using object of Edit Ctrl call SetFont() Regards Amar:)
or one good example see
CFont FontEdit; CFontDialog m_dlg; if(m_dlg.DoModal()==IDOK) { FontEdit.CreateFontIndirect(&m_dlg.m_lf); m_Edit.SetFont(&FontEdit); }
_**
**_
whitesky
-
Use CFont; CFont font.CreateFont(nFontSize, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH|FF_DONTCARE, _T("Arial")); Using object of Edit Ctrl call SetFont() Regards Amar:)
Yes I got . Thanks a lot. Saday Chand Sarkar Trek Technology(s)Pte.Ltd. -- modified at 3:04 Thursday 8th June, 2006