Click here to Skip to main content
15,911,785 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: reverse lines in OpenGl Pin
Cedric Moonen18-Feb-09 7:41
Cedric Moonen18-Feb-09 7:41 
QuestionCFONTDialog usage Pin
ForNow17-Feb-09 7:24
ForNow17-Feb-09 7:24 
AnswerRe: CFONTDialog usage Pin
David Crow17-Feb-09 7:32
David Crow17-Feb-09 7:32 
GeneralRe: CFONTDialog usage Pin
ForNow17-Feb-09 13:07
ForNow17-Feb-09 13:07 
GeneralRe: CFONTDialog usage Pin
frx9617-Feb-09 14:50
frx9617-Feb-09 14:50 
GeneralRe: CFONTDialog usage Pin
David Crow18-Feb-09 3:02
David Crow18-Feb-09 3:02 
GeneralRe: CFONTDialog usage Pin
ForNow18-Feb-09 12:41
ForNow18-Feb-09 12:41 
AnswerRe: CFONTDialog usage Pin
Iain Clarke, Warrior Programmer18-Feb-09 0:27
Iain Clarke, Warrior Programmer18-Feb-09 0:27 
This is a lot like the question you asked two days ago:
http://www.codeproject.com/script/Forums/View.aspx?fid=1647&msg=2926253[^]

You can't just stab in the dark guessing at things.

If your question is:

"I have a window X pixels wide. Given a certain font, how many characters can I fit in the window?"

Unless the font is fixed width, then you have to ask the question the other way around.

"I have a string. I have a font. How many pixels on the screen will it take up".

That question you've had answered twice.
GetTextExtent
is your friend.

I wish you luck - I'm sure you're getting very frustrated by now.

Iain.

Codeproject MVP for C++, I can't believe it's for my lounge posts...

GeneralRe: CFONTDialog usage Pin
ForNow18-Feb-09 2:09
ForNow18-Feb-09 2:09 
GeneralRe: CFONTDialog usage Pin
ForNow18-Feb-09 17:09
ForNow18-Feb-09 17:09 
GeneralRe: CFONTDialog usage Pin
Iain Clarke, Warrior Programmer18-Feb-09 22:17
Iain Clarke, Warrior Programmer18-Feb-09 22:17 
GeneralRe: CFONTDialog usage Pin
ForNow18-Feb-09 23:04
ForNow18-Feb-09 23:04 
GeneralRe: CFONTDialog usage Pin
Iain Clarke, Warrior Programmer18-Feb-09 23:17
Iain Clarke, Warrior Programmer18-Feb-09 23:17 
QuestionReturn Code from EM_GETCHARFORMAT Pin
ForNow17-Feb-09 6:36
ForNow17-Feb-09 6:36 
QuestionRe: Return Code from EM_GETCHARFORMAT Pin
David Crow17-Feb-09 6:38
David Crow17-Feb-09 6:38 
AnswerRe: Return Code from EM_GETCHARFORMAT Pin
ForNow17-Feb-09 7:14
ForNow17-Feb-09 7:14 
AnswerRe: Return Code from EM_GETCHARFORMAT Pin
krmed18-Feb-09 0:39
krmed18-Feb-09 0:39 
Questionadaptive niblack algorithm Pin
Bindas Samanta17-Feb-09 4:14
Bindas Samanta17-Feb-09 4:14 
AnswerRe: adaptive niblack algorithm Pin
Stuart Dootson17-Feb-09 4:31
professionalStuart Dootson17-Feb-09 4:31 
JokeRe: adaptive niblack algorithm Pin
SandipG 17-Feb-09 4:54
SandipG 17-Feb-09 4:54 
GeneralRe: adaptive niblack algorithm Pin
Stuart Dootson17-Feb-09 6:02
professionalStuart Dootson17-Feb-09 6:02 
JokeRe: adaptive niblack algorithm Pin
CPallini17-Feb-09 22:07
mveCPallini17-Feb-09 22:07 
Questioncreate file directly Pin
josip cagalj17-Feb-09 2:04
josip cagalj17-Feb-09 2:04 
AnswerRe: create file directly Pin
«_Superman_»17-Feb-09 2:26
professional«_Superman_»17-Feb-09 2:26 
AnswerRe: create file directly Pin
Stuart Dootson17-Feb-09 2:44
professionalStuart Dootson17-Feb-09 2:44 

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.