Braulio
May 28th, 1999, 06:54 AM
Hi,
I have a little problem, I want to use and edit control( multi line edit control), in an edit control, but the SetFont function, is a nightmare of parameters, ---> The main problem that I have, is that when the user press intro in my edit control, the last letter sometimes is cutted ( i have to refresh the control, to put it right), what can I avoid that ?
I have done this:
CDC *pDC = GetDC();
CEdit *pExportDef = (CEdit *) GetDlgItem(IDED_EXPORT_DEF);
// MulDiv(8,pDC->GetDeviceCaps(LOGPIXELSY),72)
font.CreateFont(0,
0,0,0,FW_NORMAL,0,0,0,ANSI_CHARSET,OUT_STROKE_PRECIS,
//VARIABLE_PITCH|FF_SWISS
CLIP_STROKE_PRECIS,DRAFT_QUALITY,FIXED_PITCH|FF_DONTCARE,_T("Courier"));*/
pExportDef->SetFont(&font);
Anybody can help me ?, Thanks, Bye !
Braulio
I have a little problem, I want to use and edit control( multi line edit control), in an edit control, but the SetFont function, is a nightmare of parameters, ---> The main problem that I have, is that when the user press intro in my edit control, the last letter sometimes is cutted ( i have to refresh the control, to put it right), what can I avoid that ?
I have done this:
CDC *pDC = GetDC();
CEdit *pExportDef = (CEdit *) GetDlgItem(IDED_EXPORT_DEF);
// MulDiv(8,pDC->GetDeviceCaps(LOGPIXELSY),72)
font.CreateFont(0,
0,0,0,FW_NORMAL,0,0,0,ANSI_CHARSET,OUT_STROKE_PRECIS,
//VARIABLE_PITCH|FF_SWISS
CLIP_STROKE_PRECIS,DRAFT_QUALITY,FIXED_PITCH|FF_DONTCARE,_T("Courier"));*/
pExportDef->SetFont(&font);
Anybody can help me ?, Thanks, Bye !
Braulio