Click here to Skip to main content
15,912,021 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CTreeCtrl SetCheck problem Pin
Brian van der Beek4-Dec-02 2:40
Brian van der Beek4-Dec-02 2:40 
GeneralRe: CTreeCtrl SetCheck problem Pin
peterchen4-Dec-02 2:50
peterchen4-Dec-02 2:50 
GeneralRe: CTreeCtrl SetCheck problem Pin
jhwurmbach4-Dec-02 2:52
jhwurmbach4-Dec-02 2:52 
GeneralRe: CTreeCtrl SetCheck problem Pin
peterchen5-Dec-02 8:07
peterchen5-Dec-02 8:07 
Generalfont resizing Pin
jmgir3-Dec-02 21:18
jmgir3-Dec-02 21:18 
GeneralRe: font resizing Pin
KaЯl3-Dec-02 21:39
KaЯl3-Dec-02 21:39 
GeneralRe: font resizing Pin
jmgir3-Dec-02 21:47
jmgir3-Dec-02 21:47 
GeneralRe: font resizing Pin
KaЯl3-Dec-02 22:01
KaЯl3-Dec-02 22:01 
jmgir wrote:
There should be a relation between the size of the CRect in pixels and a given text to display in it (provided taht you have selected previously a font name)


I'm not sure of that, because the font name is not enough. When a CFont object is constructed, the system tries to match the criteria you asked with the available fonts, and if it doesn't match, the system with get the closest font, which may be different from what you asked.
Another point is that DC characteristics need to be part of the calculations, 'cause font use logical units when you need pixel and this conversion is relative to the DC characteristics.
Anyway, if you can get this formula, I would be happy if you could share it, TIA Smile | :)

HTH,









Ohé Partisans, Ouvriers et Paysans
C'est l'alarme!

Le Chant des Partisans

GeneralRe: font resizing Pin
Scott H. Settlemier5-Dec-02 7:25
Scott H. Settlemier5-Dec-02 7:25 
GeneralCommunication between Dialogs in a TabControl Pin
pma3-Dec-02 20:20
pma3-Dec-02 20:20 
GeneralRe: Communication between Dialogs in a TabControl Pin
Roger Allen4-Dec-02 1:40
Roger Allen4-Dec-02 1:40 
QuestionHow to draw Menu? Pin
litth3-Dec-02 19:43
litth3-Dec-02 19:43 
AnswerRe: How to draw Menu? Pin
Roger Allen4-Dec-02 1:42
Roger Allen4-Dec-02 1:42 
Generaldatabase Pin
udayGovekar3-Dec-02 19:35
udayGovekar3-Dec-02 19:35 
GeneralC++ Problem Need Help Part 2 Pin
alishaklas3-Dec-02 18:57
alishaklas3-Dec-02 18:57 
GeneralRe: C++ Problem Need Help Part 2 Pin
Christian Graus3-Dec-02 19:24
protectorChristian Graus3-Dec-02 19:24 
GeneralRe: C++ Problem Need Help Part 2 Pin
Roger Wright3-Dec-02 19:45
professionalRoger Wright3-Dec-02 19:45 
GeneralRe: C++ Problem Need Help Part 2 Pin
Christian Graus3-Dec-02 19:52
protectorChristian Graus3-Dec-02 19:52 
GeneralRe: C++ Problem Need Help Part 2 Pin
Michael Dunn3-Dec-02 20:00
sitebuilderMichael Dunn3-Dec-02 20:00 
GeneralRe: C++ Problem Need Help Part 2 Pin
Roger Wright3-Dec-02 20:40
professionalRoger Wright3-Dec-02 20:40 
GeneralRe: C++ Problem Need Help Part 2 Pin
Rage3-Dec-02 21:23
professionalRage3-Dec-02 21:23 
GeneralRe: C++ Problem Need Help Part 2 Pin
KaЯl3-Dec-02 22:24
KaЯl3-Dec-02 22:24 
GeneralRe: C++ Problem Need Help Part 2 Pin
Rickard Andersson203-Dec-02 21:24
Rickard Andersson203-Dec-02 21:24 
GeneralRe: C++ Problem Need Help Part 2 Pin
Michael P Butler3-Dec-02 22:07
Michael P Butler3-Dec-02 22:07 
GeneralC++ Problem Need Help Part 1 Pin
alishaklas3-Dec-02 18:56
alishaklas3-Dec-02 18:56 

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.