Click here to Skip to main content
16,004,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow would you name this class ? Pin
Sendel23-Apr-03 10:42
Sendel23-Apr-03 10:42 
AnswerRe: How would you name this class ? Pin
Nitron23-Apr-03 13:46
Nitron23-Apr-03 13:46 
GeneralRe: How would you name this class ? Pin
Sendel23-Apr-03 14:29
Sendel23-Apr-03 14:29 
GeneralLines of text are different size in print preview Pin
Tim Hutzler23-Apr-03 10:42
Tim Hutzler23-Apr-03 10:42 
GeneralRe: Lines of text are different size in print preview Pin
basementman24-Apr-03 7:06
basementman24-Apr-03 7:06 
GeneralRe: Lines of text are different size in print preview Pin
Tim Hutzler24-Apr-03 11:18
Tim Hutzler24-Apr-03 11:18 
GeneralRe: Lines of text are different size in print preview Pin
basementman25-Apr-03 3:56
basementman25-Apr-03 3:56 
GeneralRe: Lines of text are different size in print preview Pin
Tim Hutzler25-Apr-03 11:51
Tim Hutzler25-Apr-03 11:51 
Actually, I mis-stated the mapping mode. I am using MM_TWIPS, since the project is a publishing program.

I have made some advancements since yesterday in that GetDC() seems to return the printer context, or something close to it. After setting the font into the context, the text measurement functions return a line width fairly close to the 'printed' page. It's not exact: some of the character widths are right-on, while a few others are off a little. Still, the errors are minor enough to move onto other aspects of the design.

The screen line widths are clearly long, and overshoots the right margin by a few characters. But, the overshoot is not enough to require wrapping. The importing thing is that it looks right in print preview and hence the actual page. Smile | :)




Tim
QuestionHow to run MFC application Pin
dudic23-Apr-03 9:58
dudic23-Apr-03 9:58 
AnswerRe: How to run MFC application Pin
Toni7823-Apr-03 10:10
Toni7823-Apr-03 10:10 
AnswerRe: How to run MFC application Pin
David Crow23-Apr-03 10:16
David Crow23-Apr-03 10:16 
AnswerRe: How to run MFC application Pin
Joan M23-Apr-03 21:34
professionalJoan M23-Apr-03 21:34 
GeneralDelete Scrollbar Pin
gmlnd23-Apr-03 9:38
gmlnd23-Apr-03 9:38 
GeneralRe: Delete Scrollbar Pin
Chris Losinger23-Apr-03 10:39
professionalChris Losinger23-Apr-03 10:39 
GeneralUGH! widechar buffer problem Pin
will138323-Apr-03 9:18
will138323-Apr-03 9:18 
GeneralRe: UGH! widechar buffer problem Pin
Tim Smith23-Apr-03 10:07
Tim Smith23-Apr-03 10:07 
GeneralRe: UGH! widechar buffer problem Pin
will138323-Apr-03 10:34
will138323-Apr-03 10:34 
GeneralI give up on GDI ! Pin
pankajdaga23-Apr-03 9:08
pankajdaga23-Apr-03 9:08 
GeneralRe: I give up on GDI ! Pin
Chris Richardson23-Apr-03 9:19
Chris Richardson23-Apr-03 9:19 
GeneralRe: I give up on GDI ! Pin
pankajdaga23-Apr-03 9:38
pankajdaga23-Apr-03 9:38 
GeneralRe: I give up on GDI ! Pin
Joel Lucsy23-Apr-03 13:27
Joel Lucsy23-Apr-03 13:27 
GeneralRe: I give up on GDI ! Pin
basementman24-Apr-03 7:12
basementman24-Apr-03 7:12 
QuestionHow to restore previous CTreeCtrl state after app. exit Pin
Jingmin Wei23-Apr-03 8:18
Jingmin Wei23-Apr-03 8:18 
AnswerRe: How to restore previous CTreeCtrl state after app. exit Pin
brianwelsch23-Apr-03 18:46
brianwelsch23-Apr-03 18:46 
GeneralThank you so much! Pin
Jingmin Wei24-Apr-03 7:06
Jingmin Wei24-Apr-03 7:06 

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.