Click here to Skip to main content
16,007,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMoving text Pin
Dennis L10-Jun-03 2:39
Dennis L10-Jun-03 2:39 
GeneralRe: Moving text Pin
Iain Clarke, Warrior Programmer10-Jun-03 3:15
Iain Clarke, Warrior Programmer10-Jun-03 3:15 
GeneralCodewarrior dynamically creation Pin
DuFunk10-Jun-03 2:30
DuFunk10-Jun-03 2:30 
GeneralRe: Codewarrior dynamically creation Pin
Maximilien10-Jun-03 2:39
Maximilien10-Jun-03 2:39 
GeneralRe: Codewarrior dynamically creation Pin
DuFunk10-Jun-03 2:45
DuFunk10-Jun-03 2:45 
GeneralRe: Codewarrior dynamically creation Pin
Maximilien10-Jun-03 3:19
Maximilien10-Jun-03 3:19 
GeneralCTreeCtrl font size Pin
AnkushChopra10-Jun-03 2:29
AnkushChopra10-Jun-03 2:29 
GeneralRe: CTreeCtrl font size Pin
Roger Allen10-Jun-03 2:58
Roger Allen10-Jun-03 2:58 
You need to set a new font for the control. Normally I would do it something like this (assuming your control is part of a dialog)

OnInitDialog()
{
LOGFONT lf;

m_TreeCtrl.GetFont()->GetLogFOnt(&lf):

lf.lfHeight += 2; // make font larger (check for -ve)
m_Font.CreateFontIndirect(&lf);
m_TreeCtrl.SetFont(&m_Font);
}


m_Font needs to be part of your dialog class as it needs to live at least as long as the tree control using it. After setting the font, the tree control should work quite happily with it.


Roger Allen
Sonork 100.10016

Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
GeneralRe: CTreeCtrl font size Pin
ywimmer14-Feb-11 14:44
ywimmer14-Feb-11 14:44 
GeneralWininet.h problem Pin
Jump_Around10-Jun-03 1:25
Jump_Around10-Jun-03 1:25 
GeneralRe: Wininet.h problem Pin
David Crow10-Jun-03 8:47
David Crow10-Jun-03 8:47 
GeneralGrid Control Pin
Atlence10-Jun-03 1:13
Atlence10-Jun-03 1:13 
GeneralQuick Drag/Drop Q'n Pin
RChin10-Jun-03 1:03
RChin10-Jun-03 1:03 
GeneralStrange result Pin
justin2239-Jun-03 23:56
justin2239-Jun-03 23:56 
GeneralRe: Strange result Pin
Martyn Pearson10-Jun-03 0:17
Martyn Pearson10-Jun-03 0:17 
GeneralRe: Strange result Pin
justin22310-Jun-03 0:50
justin22310-Jun-03 0:50 
GeneralRe: Strange result Pin
peterchen10-Jun-03 1:09
peterchen10-Jun-03 1:09 
Generalmissing file Pin
andyg.1019-Jun-03 23:44
andyg.1019-Jun-03 23:44 
GeneralRe: missing file Pin
Roger Allen10-Jun-03 0:21
Roger Allen10-Jun-03 0:21 
GeneralRe: missing file Pin
andyg.10110-Jun-03 0:41
andyg.10110-Jun-03 0:41 
GeneralSlow loading of files in VC++ Pin
soundman329-Jun-03 23:23
soundman329-Jun-03 23:23 
GeneralRe: Slow loading of files in VC++ Pin
jhwurmbach10-Jun-03 0:10
jhwurmbach10-Jun-03 0:10 
GeneralRe: Slow loading of files in VC++ Pin
David Crow10-Jun-03 2:21
David Crow10-Jun-03 2:21 
QuestionHow to supress __stdcall name mangling in VC++? Pin
awaken739-Jun-03 22:39
awaken739-Jun-03 22:39 
AnswerRe: How to supress __stdcall name mangling in VC++? Pin
basementman10-Jun-03 4:03
basementman10-Jun-03 4:03 

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.