Click here to Skip to main content
15,915,172 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI+ initialization Pin
led mike17-Oct-07 4:44
led mike17-Oct-07 4:44 
AnswerRe: GDI+ initialization Pin
Mark Salsbery16-Oct-07 9:58
Mark Salsbery16-Oct-07 9:58 
GeneralRe: GDI+ initialization Pin
indigox317-Oct-07 3:41
indigox317-Oct-07 3:41 
GeneralRe: GDI+ initialization Pin
led mike17-Oct-07 4:43
led mike17-Oct-07 4:43 
AnswerRe: GDI+ initialization Pin
Randor 16-Oct-07 10:28
professional Randor 16-Oct-07 10:28 
GeneralRe: GDI+ initialization Pin
Mark Salsbery16-Oct-07 10:31
Mark Salsbery16-Oct-07 10:31 
GeneralRe: GDI+ initialization Pin
indigox317-Oct-07 3:38
indigox317-Oct-07 3:38 
QuestionProblem on MM_HIMETRIC mode with different video cards Pin
JibJeab16-Oct-07 6:12
JibJeab16-Oct-07 6:12 
I have a problem detecting the physical screen size (in millimeters) with different video cards. In my case, I use the same monitor with same resolution, i.e. 19" LCD - 1280x1024. I'm using a C++ common device context function, GetDeviceCaps(HORZSIZE) and it returns deferent results with different video cards, e.g. for nVidia Quadro it return 380 mm but for Maxtrox it returns 375 mm. I've already tried with other video cards with different resolution but sometimes the function gave me different results, e.g. 320x240 mmxmm, 320x256 mmxmm, 375x300 mm, 380x300 mm (I confirm "with the same monitor"). That cause me a problem when I use map mode MM_HIMETRIC and I would like to draw a rectangle in MM_HIMETRIC units, let say 5000x5000. It gives a different size of rectangle on the screen. Is there any way that I can set the physical screen size or any way to solves the problem?

I know that there is a function, ChangeDisplaySettings(), to set the dispaly properties but there is no option to set the physical screen size.

Furthermore, it has no effect when I changed from DVI to VGA port. The result is still the same.

Thank you very much,

JibJeab
AnswerRe: Problem on MM_HIMETRIC mode with different video cards Pin
Iain Clarke, Warrior Programmer17-Oct-07 5:36
Iain Clarke, Warrior Programmer17-Oct-07 5:36 
QuestionPrint an image file on default printer from c++ application Pin
ShilpaPotnis16-Oct-07 5:27
ShilpaPotnis16-Oct-07 5:27 
AnswerRe: Print an image file on default printer from c++ application Pin
led mike16-Oct-07 5:46
led mike16-Oct-07 5:46 
GeneralRe: Print an image file on default printer from c++ application Pin
ShilpaPotnis16-Oct-07 5:54
ShilpaPotnis16-Oct-07 5:54 
GeneralRe: Print an image file on default printer from c++ application Pin
led mike16-Oct-07 6:05
led mike16-Oct-07 6:05 
GeneralRe: Print an image file on default printer from c++ application Pin
ShilpaPotnis16-Oct-07 6:12
ShilpaPotnis16-Oct-07 6:12 
QuestionHow do you set the text color for a static label? Pin
littleGreenDude16-Oct-07 5:14
littleGreenDude16-Oct-07 5:14 
QuestionRe: How do you set the text color for a static label? Pin
David Crow16-Oct-07 5:21
David Crow16-Oct-07 5:21 
AnswerRe: How do you set the text color for a static label? Pin
littleGreenDude16-Oct-07 5:43
littleGreenDude16-Oct-07 5:43 
GeneralRe: How do you set the text color for a static label? Pin
David Crow16-Oct-07 5:52
David Crow16-Oct-07 5:52 
GeneralRe: How do you set the text color for a static label? Pin
littleGreenDude16-Oct-07 6:13
littleGreenDude16-Oct-07 6:13 
GeneralRe: How do you set the text color for a static label? Pin
David Crow16-Oct-07 6:20
David Crow16-Oct-07 6:20 
Questionhow to read txt file Pin
nomi khan16-Oct-07 5:11
nomi khan16-Oct-07 5:11 
QuestionRe: how to read txt file Pin
David Crow16-Oct-07 5:18
David Crow16-Oct-07 5:18 
AnswerRe: how to read txt file Pin
jhwurmbach16-Oct-07 6:05
jhwurmbach16-Oct-07 6:05 
AnswerRe: how to read txt file Pin
Hamid_RT16-Oct-07 8:29
Hamid_RT16-Oct-07 8:29 
AnswerRe: how to read txt file Pin
aks.16-Oct-07 18:14
aks.16-Oct-07 18:14 

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.