Click here to Skip to main content
15,920,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dynamic two dimentional array Pin
carrivick12-Sep-07 8:37
carrivick12-Sep-07 8:37 
GeneralRe: dynamic two dimentional array Pin
David Crow12-Sep-07 8:41
David Crow12-Sep-07 8:41 
GeneralRe: dynamic two dimentional array Pin
Mark Salsbery12-Sep-07 8:42
Mark Salsbery12-Sep-07 8:42 
QuestionHow to change size of a win32 toolbar after TB_DELETEBUTTON Pin
ioctl5112-Sep-07 0:13
ioctl5112-Sep-07 0:13 
QuestionPrinting Problem Pin
pri_skit11-Sep-07 23:59
pri_skit11-Sep-07 23:59 
AnswerRe: Printing Problem Pin
Nelek12-Sep-07 0:29
protectorNelek12-Sep-07 0:29 
GeneralRe: Printing Problem Pin
pri_skit12-Sep-07 1:31
pri_skit12-Sep-07 1:31 
GeneralRe: Printing Problem Pin
Nelek12-Sep-07 1:42
protectorNelek12-Sep-07 1:42 
I guess it is because not all printers have the same PixelsPerInch, it depends on printers, properties of actuall printing job (optimal, low quality...) and other factors

I use the font as follows:

CFont fontLabels;
fontLabels.CreatePointFont (80, "MS Sans Serif", pDC);
CFont fontInfo;
fontInfo.CreatePointFont (140, "MS Sans Serif", pDC);


From MSDN help:
BOOL CreatePointFont( int nPointSize, LPCTSTR lpszFaceName, CDC* pDC = NULL );

This function provides a simple way to create a font of a specified typeface and point size. It automatically converts the height in nPointSize to logical units using the CDC object pointed to by pDC.

When you finish with the CFont object created by the CreatePointFont function, first select the font out of the device context, then delete the CFont object.

.........

It works good for me. I have tested it with 5 different printers (in high and low quality) and a plotter without problems. I don't want to say it will never have problems, but i think is one of the best options.

The fact is to use a standard font that ALWAYS goes with windows like arial, ms sans sherif, times new roman and so on... using CreatePointFont

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

AnswerRe: Printing Problem [modified] Pin
bob1697212-Sep-07 1:54
bob1697212-Sep-07 1:54 
Generalproblem in url Pin
yadahav11-Sep-07 23:30
yadahav11-Sep-07 23:30 
GeneralRe: problem in url Pin
nitin311-Sep-07 23:38
nitin311-Sep-07 23:38 
GeneralRe: problem in url Pin
David Crow12-Sep-07 3:13
David Crow12-Sep-07 3:13 
QuestionRe: problem in url Pin
Hamid_RT12-Sep-07 6:58
Hamid_RT12-Sep-07 6:58 
QuestionProblem when adding JPEG images in ListBox Pin
Atul2311-Sep-07 23:29
Atul2311-Sep-07 23:29 
QuestionRe: Problem when adding JPEG images in ListBox Pin
David Crow12-Sep-07 3:15
David Crow12-Sep-07 3:15 
QuestionHow to make Unistall.exe Pin
GauranG Shah11-Sep-07 23:21
GauranG Shah11-Sep-07 23:21 
AnswerRe: How to make Unistall.exe Pin
Russell'12-Sep-07 0:06
Russell'12-Sep-07 0:06 
GeneralRe: How to make Unistall.exe [modified] Pin
GauranG Shah12-Sep-07 0:12
GauranG Shah12-Sep-07 0:12 
GeneralRe: How to make Unistall.exe Pin
Russell'12-Sep-07 2:06
Russell'12-Sep-07 2:06 
GeneralRe: How to make Unistall.exe Pin
GauranG Shah12-Sep-07 3:00
GauranG Shah12-Sep-07 3:00 
QuestionIs the OS Vista? Pin
Russell'12-Sep-07 3:25
Russell'12-Sep-07 3:25 
AnswerRe: Is the OS Vista? Pin
GauranG Shah12-Sep-07 4:14
GauranG Shah12-Sep-07 4:14 
Questionhow to find the list of activex controls Pin
chandu00411-Sep-07 23:13
chandu00411-Sep-07 23:13 
AnswerRe: how to find the list of activex controls Pin
nbugalia11-Sep-07 23:42
nbugalia11-Sep-07 23:42 
GeneralRe: how to find the list of activex controls Pin
chandu00411-Sep-07 23:58
chandu00411-Sep-07 23:58 

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.