Click here to Skip to main content
15,897,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: IDE Pin
jhwurmbach31-May-07 2:42
jhwurmbach31-May-07 2:42 
QuestionTrackPopupMenu Pin
tom groezer31-May-07 1:45
tom groezer31-May-07 1:45 
AnswerRe: TrackPopupMenu Pin
Ravi Bhavnani31-May-07 2:13
professionalRavi Bhavnani31-May-07 2:13 
AnswerRe: TrackPopupMenu Pin
sps-itsec4631-May-07 2:18
sps-itsec4631-May-07 2:18 
QuestionChange view of MDIFrame Pin
baerten31-May-07 1:29
baerten31-May-07 1:29 
QuestionParallel Port Pin
jswarts31-May-07 1:22
jswarts31-May-07 1:22 
AnswerRe: Parallel Port Pin
Johpoke31-May-07 1:52
Johpoke31-May-07 1:52 
QuestionFont size Pin
garfield18531-May-07 0:35
garfield18531-May-07 0:35 
Hi everybody.

I have noticed that some controls in Visual C++ allow to change their font size. Others don´t allow it, and it takes it from the size you set on the Dialog properties.

To change that, I have created my own font with the CFont class like this:

************************************

CFont m_fuente;
LOGFONT lf;
m_fuente.CreateStockObject(DEFAULT_GUI_FONT);
m_fuente.GetLogFont(&lf);
strcpy(lf.lfFaceName,"MS Sans Serif");
lf.lfWeight =700;

lf.lfHeigth =16;

m_fuente.DeleteObject();
m_fuente.CreateFontIndirect(&lf);

****************************************
My question is about the size. Using lf.lfHeigth = 20 will not make words bigger, it will just make the space around the word bigger (check it in a combo box, for example, increasing the lfheigth of a combo box would make the space between words bigger.

Does anybody know how to fix this? Thank you!!!



Time to come clean...

Vive y deja vivir / Live and let live

Javier

AnswerRe: Font size Pin
CPallini31-May-07 0:47
mveCPallini31-May-07 0:47 
GeneralRe: Font size Pin
garfield18531-May-07 0:51
garfield18531-May-07 0:51 
GeneralRe: Font size Pin
Hamid_RT31-May-07 1:32
Hamid_RT31-May-07 1:32 
GeneralRe: Font size Pin
garfield18531-May-07 1:36
garfield18531-May-07 1:36 
GeneralRe: Font size Pin
CPallini31-May-07 1:49
mveCPallini31-May-07 1:49 
GeneralRe: Font size Pin
CPallini31-May-07 1:43
mveCPallini31-May-07 1:43 
GeneralRe: Font size Pin
garfield18531-May-07 3:22
garfield18531-May-07 3:22 
GeneralRe: Font size Pin
CPallini31-May-07 3:43
mveCPallini31-May-07 3:43 
GeneralRe: Font size Pin
garfield18531-May-07 4:00
garfield18531-May-07 4:00 
GeneralRe: Font size Pin
CPallini31-May-07 5:11
mveCPallini31-May-07 5:11 
GeneralRe: Font size Pin
garfield18531-May-07 5:25
garfield18531-May-07 5:25 
GeneralRe: Font size Pin
David Crow31-May-07 4:12
David Crow31-May-07 4:12 
GeneralRe: Font size Pin
garfield18531-May-07 4:31
garfield18531-May-07 4:31 
QuestionCreating .h files using MATLAB Pin
Purushottama31-May-07 0:31
Purushottama31-May-07 0:31 
AnswerRe: Creating .h files using MATLAB Pin
Cedric Moonen31-May-07 1:31
Cedric Moonen31-May-07 1:31 
JokeRe: Creating .h files using MATLAB Pin
CPallini31-May-07 2:10
mveCPallini31-May-07 2:10 
QuestionMSVCRT.dll and _resetstkoflw() Win 2000 and XP Pin
jerome_data31-May-07 0:27
jerome_data31-May-07 0:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.