You may want to try making the CFont a member of your class roather than
having it in a function. The font won't work if it goes out of scope.
To get rid of bold font, you should change the font to whatever you
want(use
SetFont).
QUESTION
---------------
i do not get any effect of setfont. here is my code for that:-
***********************************************************************************************
//my rect area of editbox
CRect
rectEdit(m_stShape[nIEdited][nJEdited].pointTopLeft.x-m_nWidthOffset+1,m_stShape[nIEdited][nJEdited].pointTopLeft.y-m_nHeightOffset+1,m_stShape[nIEdited][nJEdited].pointBottomRight.x-m_nWidthOffset-1,m_stShape[nIEdited][nJEdited].pointBottomRight.y-m_nHeightOffset-1);
m_editCell.Create(ES_LEFT | WS_VISIBLE |
ES_AUTOVSCROLL,rectEdit,this,1);
m_editCell.SetLimitText(50); // limit the text that can be entered
m_editCell.SetFocus(); // set the focus in edit box
CFont fontEdit; // font while typing
fontEdit.CreateFont(17,0,0,0,FW_REGULAR,FALSE,FALSE,FALSE,DEFAULT_CHARSET,OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH
| FF_SWISS,"Calibri");
m_editCell.SetFont(&fontEdit);
************************************************************************************************
Is it that i have to use some another flag instead of FW_REGULAR for
not getting BOLD characters
####################################################################
For sizing the control, you can use SetWindowPos.
QUESTION
----------------
Yes, but my problem i dont seem to be finding how can i come to know
that text has reached the limit of editbox size.
Thanks for replying..