Click here to Skip to main content
15,902,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: RuntimeError: Invalid argument to sendto (plz help me out) Pin
Mark Salsbery26-Oct-07 6:12
Mark Salsbery26-Oct-07 6:12 
QuestionCreating a large DC Pin
Meisterzunge26-Oct-07 4:23
Meisterzunge26-Oct-07 4:23 
AnswerRe: Creating a large DC Pin
Chris Losinger26-Oct-07 4:45
professionalChris Losinger26-Oct-07 4:45 
QuestionRe: Creating a large DC Pin
bob1697226-Oct-07 4:46
bob1697226-Oct-07 4:46 
QuestionRe: Creating a large DC Pin
Hamid_RT26-Oct-07 7:30
Hamid_RT26-Oct-07 7:30 
AnswerRe: Creating a large DC Pin
Meisterzunge26-Oct-07 11:03
Meisterzunge26-Oct-07 11:03 
GeneralRe: Creating a large DC Pin
Meisterzunge26-Oct-07 11:22
Meisterzunge26-Oct-07 11:22 
GeneralRe: Creating a large DC Pin
bob1697226-Oct-07 21:04
bob1697226-Oct-07 21:04 
You really need to lookup mapping modes in MSDN.

Lookup MM_ANISOTROPIC and MM_ISOTROPIC. Pay particular attention to CDC::SetWindowExt() and CDC::SetViewportExt() and how you setup a single DC to do all the dirty work for you.

If you are printing a bitmap, drawing primitives, text, or anything else, the mapping mode functions allow you to draw to a single DC and have the output translated to the devices coordinate system.

A world coordinate system of 2000x2000 needs to be drawn on a printer page 8 1/2 inches by 11 inches at a DPI of 1200? A screen with resolution of 1024x768? 1280x800? No problem.

You need to start thinking in terms of mapping modes and extents when you translate between different metrics or coordinate systems.

Hope that helps.
QuestionRe: Creating a large DC Pin
Meisterzunge27-Oct-07 21:42
Meisterzunge27-Oct-07 21:42 
GeneralRe: Creating a large DC Pin
Meisterzunge28-Oct-07 1:29
Meisterzunge28-Oct-07 1:29 
GeneralRe: Creating a large DC Pin
Force Code26-Oct-07 23:34
Force Code26-Oct-07 23:34 
QuestionKeyboard accelerators and docking bars Pin
bob1697226-Oct-07 4:16
bob1697226-Oct-07 4:16 
QuestionHow to make a listener on a folder, for client-server data synchronization? Pin
Caetano.n.a26-Oct-07 1:53
Caetano.n.a26-Oct-07 1:53 
AnswerRe: How to make a listener on a folder, for client-server data synchronization? Pin
David Crow26-Oct-07 2:39
David Crow26-Oct-07 2:39 
QuestionWake On LAN Problem Pin
joshiprashant26-Oct-07 1:18
joshiprashant26-Oct-07 1:18 
AnswerRe: Wake On LAN Problem Pin
baerten26-Oct-07 3:03
baerten26-Oct-07 3:03 
GeneralRe: Wake On LAN Problem Pin
joshiprashant26-Oct-07 3:48
joshiprashant26-Oct-07 3:48 
GeneralRe: Wake On LAN Problem Pin
baerten26-Oct-07 4:07
baerten26-Oct-07 4:07 
QuestionHow to find the path of my current running application Pin
chandu00426-Oct-07 0:51
chandu00426-Oct-07 0:51 
AnswerRe: How to find the path of my current running application Pin
Hamid_RT26-Oct-07 0:56
Hamid_RT26-Oct-07 0:56 
GeneralRe: How to find the path of my current running application Pin
chandu00426-Oct-07 1:16
chandu00426-Oct-07 1:16 
GeneralRe: How to find the path of my current running application Pin
Rajesh R Subramanian26-Oct-07 1:22
professionalRajesh R Subramanian26-Oct-07 1:22 
GeneralRe: How to find the path of my current running application Pin
Hamid_RT26-Oct-07 1:24
Hamid_RT26-Oct-07 1:24 
GeneralRe: How to find the path of my current running application Pin
chandu00426-Oct-07 1:44
chandu00426-Oct-07 1:44 
GeneralRe: How to find the path of my current running application Pin
Hamid_RT26-Oct-07 1:53
Hamid_RT26-Oct-07 1:53 

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.