Click here to Skip to main content
15,907,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: I can't believe I am having so many problems with file access Pin
ldsdbomber31-May-07 2:28
ldsdbomber31-May-07 2:28 
AnswerRe: I can't believe I am having so many problems with file access Pin
toxcct31-May-07 2:40
toxcct31-May-07 2:40 
AnswerRe: I can't believe I am having so many problems with file access Pin
David Crow31-May-07 4:02
David Crow31-May-07 4:02 
GeneralRe: I can't believe I am having so many problems with file access Pin
ldsdbomber31-May-07 6:01
ldsdbomber31-May-07 6:01 
GeneralRe: I can't believe I am having so many problems with file access Pin
David Crow31-May-07 6:10
David Crow31-May-07 6:10 
Questionpls help me-msi file Pin
saisp31-May-07 2:25
saisp31-May-07 2:25 
AnswerRe: pls help me-msi file Pin
toxcct31-May-07 2:37
toxcct31-May-07 2:37 
AnswerRe: pls help me-msi file Pin
Hamid_RT31-May-07 2:45
Hamid_RT31-May-07 2:45 
JokeRe: IDE Pin
CPallini31-May-07 2:10
mveCPallini31-May-07 2:10 
GeneralRe: IDE Pin
Hamid_RT31-May-07 2:47
Hamid_RT31-May-07 2:47 
GeneralRe: IDE Pin
Rajesh R Subramanian31-May-07 3:10
professionalRajesh R Subramanian31-May-07 3:10 
GeneralRe: IDE Pin
toxcct31-May-07 3:23
toxcct31-May-07 3:23 
QuestionIDE Pin
tom groezer31-May-07 2:07
tom groezer31-May-07 2:07 
AnswerRe: IDE Pin
toxcct31-May-07 2:14
toxcct31-May-07 2:14 
GeneralRe: IDE Pin
tom groezer31-May-07 2:31
tom groezer31-May-07 2:31 
GeneralRe: IDE Pin
toxcct31-May-07 2:34
toxcct31-May-07 2:34 
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 

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.