Click here to Skip to main content
15,910,877 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to used "Multiple Display Monitors" and "virtual screen" Pin
alex.barylski10-Apr-02 8:22
alex.barylski10-Apr-02 8:22 
QuestionMS to drop static linking from VC? Pin
Jim A. Johnson10-Apr-02 7:27
Jim A. Johnson10-Apr-02 7:27 
AnswerRe: MS to drop static linking from VC? Pin
Joaquín M López Muñoz10-Apr-02 9:31
Joaquín M López Muñoz10-Apr-02 9:31 
GeneralCalculating a text's dimension Pin
Hans Ruck10-Apr-02 7:21
Hans Ruck10-Apr-02 7:21 
GeneralRe: Calculating a text's dimension Pin
Ravi Bhavnani10-Apr-02 7:27
professionalRavi Bhavnani10-Apr-02 7:27 
GeneralRe: Calculating a text's dimension Pin
Chris Losinger10-Apr-02 7:35
professionalChris Losinger10-Apr-02 7:35 
GeneralRe: Calculating a text's dimension Pin
Hans Ruck10-Apr-02 7:51
Hans Ruck10-Apr-02 7:51 
GeneralRe: Calculating a text's dimension Pin
Stan Shannon10-Apr-02 7:54
Stan Shannon10-Apr-02 7:54 
Use GetTextExtent or one of its variants to get the width. However, it is usually best to use GetTextMetrics to get the height. TEXTMETRIC.tmHeight represents the absolute height of the tallest character for a given font. I'm fairly certain that GetTextExtent will only give you the height of whatever characters are in the string and that may vary according to the characters.


"There's a slew of slip 'twixt cup and lip"
GeneralMFC App and C2065 Pin
10-Apr-02 6:13
suss10-Apr-02 6:13 
GeneralRe: MFC App and C2065 Pin
Jeremy Falcon10-Apr-02 7:45
professionalJeremy Falcon10-Apr-02 7:45 
GeneralRe: MFC App and C2065 Pin
10-Apr-02 8:17
suss10-Apr-02 8:17 
GeneralRe: MFC App and C2065 Pin
Jeremy Falcon10-Apr-02 8:22
professionalJeremy Falcon10-Apr-02 8:22 
GeneralRe: MFC App and C2065 Pin
10-Apr-02 8:29
suss10-Apr-02 8:29 
GeneralRe: MFC App and C2065 Pin
Jeremy Falcon10-Apr-02 8:47
professionalJeremy Falcon10-Apr-02 8:47 
GeneralRe: MFC App and C2065 Pin
10-Apr-02 9:53
suss10-Apr-02 9:53 
GeneralRe: MFC App and C2065 Pin
Jeremy Falcon10-Apr-02 10:06
professionalJeremy Falcon10-Apr-02 10:06 
GeneralRe: MFC App and C2065 Pin
Jeremy Falcon10-Apr-02 13:44
professionalJeremy Falcon10-Apr-02 13:44 
GeneralRe: MFC App and C2065 Pin
10-Apr-02 14:39
suss10-Apr-02 14:39 
GeneralRe: MFC App and C2065 Pin
Jeremy Falcon10-Apr-02 15:21
professionalJeremy Falcon10-Apr-02 15:21 
GeneralRe: MFC App and C2065 Pin
11-Apr-02 4:37
suss11-Apr-02 4:37 
GeneralRe: MFC App and C2065 Pin
Jeremy Falcon11-Apr-02 15:31
professionalJeremy Falcon11-Apr-02 15:31 
GeneralRe: MFC App and C2065 Pin
12-Apr-02 6:43
suss12-Apr-02 6:43 
GeneralRe: MFC App and C2065 Pin
12-Apr-02 9:21
suss12-Apr-02 9:21 
GeneralRe: MFC App and C2065 Pin
10-Apr-02 16:13
suss10-Apr-02 16:13 
GeneralVC 7 - ARGH! Pin
Jim A. Johnson10-Apr-02 6:08
Jim A. Johnson10-Apr-02 6:08 

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.