Click here to Skip to main content
15,886,137 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Opening a file for read when it is already open by another application Pin
ArthurDt15-Aug-05 0:37
ArthurDt15-Aug-05 0:37 
GeneralRe: Opening a file for read when it is already open by another application Pin
u6ik15-Aug-05 0:22
u6ik15-Aug-05 0:22 
GeneralRe: Opening a file for read when it is already open by another application Pin
ArthurDt15-Aug-05 0:39
ArthurDt15-Aug-05 0:39 
QuestionHow to get the Font width ??? Pin
HumanOsc15-Aug-05 0:04
HumanOsc15-Aug-05 0:04 
AnswerRe: How to get the Font width ??? Pin
alias001815-Aug-05 0:21
alias001815-Aug-05 0:21 
GeneralRe: How to get the Font width ??? Pin
Steve S15-Aug-05 0:22
Steve S15-Aug-05 0:22 
AnswerRe: How to get the Font width ??? Pin
Steve S15-Aug-05 0:21
Steve S15-Aug-05 0:21 
AnswerRe: How to get the Font width ??? Pin
mark novak15-Aug-05 0:30
mark novak15-Aug-05 0:30 
I believe what you want is something like GetTextMetrics(), which will return an average width in units based on the DC your using. A LOGFONT's lfWidth returns an average width in logical units. Also you can use DrawText() with DT_CALCRECT to get accurate dimensions on a given peice of text on a given DC.
GeneralRe: How to get the Font width ??? Pin
HumanOsc15-Aug-05 0:31
HumanOsc15-Aug-05 0:31 
GeneralRe: How to get the Font width ??? Pin
HumanOsc15-Aug-05 0:41
HumanOsc15-Aug-05 0:41 
GeneralRe: How to get the Font width ??? Pin
mark novak15-Aug-05 1:07
mark novak15-Aug-05 1:07 
GeneralRe: How to get the Font width ??? Pin
HumanOsc16-Aug-05 1:38
HumanOsc16-Aug-05 1:38 
GeneralRe: How to get the Font width ??? Pin
mark novak16-Aug-05 2:45
mark novak16-Aug-05 2:45 
GeneralRe: How to get the Font width ??? Pin
HumanOsc22-Aug-05 10:24
HumanOsc22-Aug-05 10:24 
GeneralRe: How to get the Font width ??? Pin
Anonymous18-Oct-05 15:41
Anonymous18-Oct-05 15:41 
GeneralWeird ProgBar Prob... Pin
u6ik14-Aug-05 23:43
u6ik14-Aug-05 23:43 
GeneralRe: Weird ProgBar Prob... Pin
mark novak15-Aug-05 0:19
mark novak15-Aug-05 0:19 
GeneralRe: Weird ProgBar Prob... Pin
u6ik15-Aug-05 1:17
u6ik15-Aug-05 1:17 
Generalopc server and client Pin
xieyig14-Aug-05 23:43
xieyig14-Aug-05 23:43 
Questionhow can I convert a mfc ocx to asp server ocx Pin
xieyig14-Aug-05 23:37
xieyig14-Aug-05 23:37 
GeneralStupid newbies need help. Pin
cue_ball14-Aug-05 22:03
cue_ball14-Aug-05 22:03 
GeneralRe: Stupid newbies need help. Pin
HumanOsc14-Aug-05 23:15
HumanOsc14-Aug-05 23:15 
GeneralRe: Stupid newbies need help. Pin
u6ik15-Aug-05 0:03
u6ik15-Aug-05 0:03 
GeneralRe: Stupid newbies need help. Pin
HumanOsc15-Aug-05 0:10
HumanOsc15-Aug-05 0:10 
GeneralC++ and Python Questions... Pin
Raistlfiren14-Aug-05 18:46
Raistlfiren14-Aug-05 18:46 

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.