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

C / C++ / MFC

 
GeneralRe: FindFirstChangeNotification Pin
Still learning how to code23-Dec-09 22:23
Still learning how to code23-Dec-09 22:23 
GeneralRe: FindFirstChangeNotification Pin
Garth J Lancaster23-Dec-09 22:38
professionalGarth J Lancaster23-Dec-09 22:38 
AnswerRe: FindFirstChangeNotification Pin
Garth J Lancaster23-Dec-09 23:02
professionalGarth J Lancaster23-Dec-09 23:02 
GeneralRe: FindFirstChangeNotification Pin
Still learning how to code24-Dec-09 3:49
Still learning how to code24-Dec-09 3:49 
GeneralRe: FindFirstChangeNotification Pin
Garth J Lancaster24-Dec-09 11:04
professionalGarth J Lancaster24-Dec-09 11:04 
GeneralRe: FindFirstChangeNotification Pin
Still learning how to code24-Dec-09 20:27
Still learning how to code24-Dec-09 20:27 
QuestionWindows coordinate system different in US and European version Pin
Denny10123-Dec-09 11:02
Denny10123-Dec-09 11:02 
AnswerRe: Windows coordinate system different in US and European version Pin
Nelek23-Dec-09 23:30
protectorNelek23-Dec-09 23:30 
I didn't know about that, I thought it should be "standard", but... one possibility could be to get the version of windows and adapting your coordinates to the differences.

I use German Windows, by printing or previewing I use:

pDC->SetMapMode (MM_LOMETRIC);
//...
pDC->TextOut (pInfo->m_rectDraw.left, 50 - pInfo->m_rectDraw.bottom, pDoc->GetPathName());
//...


With this I print the path of the file at the bottom of the page.

You say the Y orientation changes between countries, then my
50 - pInfo->m_rectDraw.bottom should change and be pInfo->m_rectDraw.bottom - 50 for US, shouldn't it?
the result is just the change of the sign, at german version will be -X and at US will be X

A way to do it could be getting the version of windows and adapting the +/- to it. So you can get the version of windows (sorry but I don't know how to for sure) at the initialization of the program in BOOL CMyApp::InitInstance() and say:

if ((windows == US) || /* Other countries with same settings than US */)
   iFactor = 1;
else
   iFactor = -1;


and afterwards

pDC->SetMapMode (MM_LOMETRIC);
pDC->TextOut (pInfo->m_rectDraw.left, iFactor(pInfo->m_rectDraw.bottom - 50), pDoc->GetPathName());


Using as coordinates with Y positive to go down, and that would adapt the sign, according to the windows version.


I guess there is a better approach, but this is an idea.

Regards.
--------
M.D.V. Wink | ;)

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?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.

GeneralRe: Windows coordinate system different in US and European version Pin
Denny10125-Dec-09 9:45
Denny10125-Dec-09 9:45 
GeneralRe: Windows coordinate system different in US and European version Pin
Nelek27-Dec-09 22:16
protectorNelek27-Dec-09 22:16 
GeneralRe: Windows coordinate system different in US and European version Pin
Denny1013-Jan-10 10:22
Denny1013-Jan-10 10:22 
GeneralRe: Windows coordinate system different in US and European version Pin
Nelek3-Jan-10 21:19
protectorNelek3-Jan-10 21:19 
Questionfstream quirkiness using various open modes Pin
Alan Kurlansky23-Dec-09 8:56
Alan Kurlansky23-Dec-09 8:56 
AnswerRe: fstream quirkiness using various open modes Pin
rp_suman23-Dec-09 9:56
rp_suman23-Dec-09 9:56 
Questioncombobox notification before changing selection Pin
rp_suman23-Dec-09 8:20
rp_suman23-Dec-09 8:20 
AnswerRe: combobox notification before changing selection Pin
Abhi Lahare23-Dec-09 10:26
Abhi Lahare23-Dec-09 10:26 
QuestionHow to enable DefaultIcon immediately after setting in Registry? Pin
hawkgao012923-Dec-09 5:14
hawkgao012923-Dec-09 5:14 
AnswerRe: How to enable DefaultIcon immediately after setting in Registry? Pin
Abhi Lahare23-Dec-09 7:23
Abhi Lahare23-Dec-09 7:23 
AnswerRe: How to enable DefaultIcon immediately after setting in Registry? Pin
hawkgao012923-Dec-09 18:11
hawkgao012923-Dec-09 18:11 
QuestionModeless Child Dialog Detection in Parent Dialog Pin
A&Ms23-Dec-09 3:46
A&Ms23-Dec-09 3:46 
AnswerRe: Modeless Child Dialog Detection in Parent Dialog Pin
JudyL_MD23-Dec-09 4:00
JudyL_MD23-Dec-09 4:00 
QuestionRe: Modeless Child Dialog Detection in Parent Dialog Pin
A&Ms23-Dec-09 4:07
A&Ms23-Dec-09 4:07 
AnswerRe: Modeless Child Dialog Detection in Parent Dialog Pin
Nelek23-Dec-09 5:13
protectorNelek23-Dec-09 5:13 
GeneralRe: Modeless Child Dialog Detection in Parent Dialog Pin
A&Ms23-Dec-09 9:41
A&Ms23-Dec-09 9:41 
GeneralRe: Modeless Child Dialog Detection in Parent Dialog Pin
Nelek23-Dec-09 23:00
protectorNelek23-Dec-09 23:00 

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.