como estan?
queria consultarles si existe alguna clase para poder agrandar la letra de un EditBox y un StaticText.
Desde ya muchas gracias.
Saludos.
Emanuel.
![]() |
![]() |
|
Moderador: latindeveloper

CFont m_newfont; // (declarado en tu clase)
//Codigo en OnInitDialog
LOGFONT lf;
m_newfont.CreateStockObject(DEFAULT_GUI_FONT); // Para la fuente por defecto del sistema
m_newfont.GetLogFont(&lf);
//strcpy(lf.lfFaceName,"Arial"); Por si quieres cambiar de tipo
lf.lfHeight = 20; // Agrandando el tamaño.
//Creando nuevamente la fuente
m_newfont.DeleteObject();
m_newfont.CreateFontIndirect(&lf);
//Asignando la fuente a tus controles.
GetDlgItem(IDC_STATIC_O_EDIT)->SetFont(&m_newfont);




Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados