Click here to Skip to main content
16,016,744 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CWInThread Pin
Kiran Pinjala22-May-07 0:36
Kiran Pinjala22-May-07 0:36 
GeneralRe: CWInThread Pin
Roger Stoltz22-May-07 2:18
Roger Stoltz22-May-07 2:18 
AnswerRe: CWInThread [modified] Pin
prasad_som21-May-07 22:25
prasad_som21-May-07 22:25 
GeneralRe: CWInThread Pin
Roger Stoltz21-May-07 22:40
Roger Stoltz21-May-07 22:40 
GeneralRe: CWInThread Pin
prasad_som21-May-07 22:48
prasad_som21-May-07 22:48 
GeneralRe: CWInThread Pin
Roger Stoltz21-May-07 22:56
Roger Stoltz21-May-07 22:56 
QuestionConfused about layout due to differen language OS Pin
Stan the man21-May-07 20:50
Stan the man21-May-07 20:50 
AnswerRe: Confused about layout due to differen language OS Pin
Nelek21-May-07 23:21
protectorNelek21-May-07 23:21 
Hi,

how did you create your font?

There is two possibilities that more or less "ensures" you compatibility

BOOL CreatePointFont( int nPointSize, LPCTSTR lpszFaceName, CDC* pDC = NULL );

but here the "int nPointSize" can depend on the MAPMODE, is not the same MM_TEXT as MM_LOMETRIC (for example)

The other one (from Roger Allen's http://www.codeproject.com/printing/printingtricksandtips.asp[^])
CFont font;
LOGFONT lf;

::ZeroMemory (&lf, sizeof (LOGFONT));

lf.lfHeight = -MulDiv (12, pDC->GetDeviceCaps (), 72);
strcpy (lf.lfFaceName, "Arial");
//use the font


if it works for printers, it should work for displays too.

EDIT:

I found this article.

http://msdn2.microsoft.com/en-us/library/d8ws31ff(VS.71).aspx[^]

I hope it helps

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?

Questionanother menu for the childframes Pin
prithaa21-May-07 20:49
prithaa21-May-07 20:49 
AnswerRe: another menu for the childframes Pin
Anurag Gandhi21-May-07 22:21
professionalAnurag Gandhi21-May-07 22:21 
AnswerRe: another menu for the childframes Pin
Nelek21-May-07 23:12
protectorNelek21-May-07 23:12 
QuestionDockling child dialog from a dialog based application.. is it possible? Pin
rbid21-May-07 20:34
rbid21-May-07 20:34 
QuestionClass wizard in 2005 Pin
tom groezer21-May-07 19:59
tom groezer21-May-07 19:59 
AnswerRe: Class wizard in 2005 Pin
Nelek21-May-07 23:05
protectorNelek21-May-07 23:05 
QuestionConstructors Pin
tom groezer21-May-07 19:55
tom groezer21-May-07 19:55 
AnswerRe: Constructors Pin
User 58385221-May-07 20:04
User 58385221-May-07 20:04 
QuestionURGENT!!!remove focus from listbox item Pin
anu jaggi21-May-07 19:35
anu jaggi21-May-07 19:35 
AnswerRe: URGENT!!!remove focus from listbox item Pin
Perspx21-May-07 19:46
Perspx21-May-07 19:46 
AnswerRe: URGENT!!!remove focus from listbox item Pin
Nelek21-May-07 20:09
protectorNelek21-May-07 20:09 
QuestionViewing File Property Pin
Anurag Gandhi21-May-07 19:22
professionalAnurag Gandhi21-May-07 19:22 
QuestionRe: Viewing File Property Pin
Rajesh R Subramanian21-May-07 19:57
professionalRajesh R Subramanian21-May-07 19:57 
AnswerRe: Viewing File Property Pin
Anurag Gandhi21-May-07 20:47
professionalAnurag Gandhi21-May-07 20:47 
QuestionRe: Viewing File Property Pin
Rajesh R Subramanian21-May-07 21:05
professionalRajesh R Subramanian21-May-07 21:05 
AnswerRe: Viewing File Property Pin
prasad_som21-May-07 20:02
prasad_som21-May-07 20:02 
QuestionLocal static variable is thread safe? Pin
Best Kiluyar21-May-07 19:11
Best Kiluyar21-May-07 19:11 

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.