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

C / C++ / MFC

 
GeneralRe: Internet protocols Pin
Mazdak6-Mar-03 8:30
Mazdak6-Mar-03 8:30 
GeneralText problem Pin
Scozturk6-Mar-03 7:42
professionalScozturk6-Mar-03 7:42 
GeneralRe: Text problem Pin
Neville Franks6-Mar-03 9:30
Neville Franks6-Mar-03 9:30 
GeneralXML- XSLT Pin
wimel7-Mar-03 0:04
wimel7-Mar-03 0:04 
GeneralActiveX toolbars Pin
cmschaum6-Mar-03 7:35
cmschaum6-Mar-03 7:35 
GeneralStructure browser Pin
Phamton6-Mar-03 7:30
Phamton6-Mar-03 7:30 
GeneralPrinting a custom control Pin
Gilfrog6-Mar-03 7:29
Gilfrog6-Mar-03 7:29 
GeneralRe: Printing a custom control Pin
Chris Losinger6-Mar-03 9:21
professionalChris Losinger6-Mar-03 9:21 
your screen is probably at 96 DPI, but the printer is likely 300 or 600 DPI. so, it's drawing with the same number of dots, but the dots are much smaller. what you need to do is to set the printer DPI (in effect) to the same as your screen DPI.

you can do this by adjust the DC's extents (see SetViewportExtent and SetWindowExtent and maybe SetMappingMode).

this might work for you:

pDC->SetMapMode(MM_ISOTROPIC);
pDC->SetWindowExt(desiredDPI);
pDC->SetViewportExt(pDC->GetDeviceCaps(LOGPIXELSX), pDC->GetDeviceCaps(LOGPIXELSY));

-c



When history comes, it always takes you by surprise.

GeneralRe: Printing a custom control Pin
Gilfrog6-Mar-03 11:04
Gilfrog6-Mar-03 11:04 
GeneralRe: Printing a custom control Pin
Chris Losinger6-Mar-03 12:14
professionalChris Losinger6-Mar-03 12:14 
GeneralThe View pointer to modal dlg Pin
ns6-Mar-03 7:19
ns6-Mar-03 7:19 
GeneralRe: The View pointer to modal dlg Pin
Nish Nishant6-Mar-03 7:25
sitebuilderNish Nishant6-Mar-03 7:25 
GeneralRe: The View pointer to modal dlg Pin
ns6-Mar-03 7:56
ns6-Mar-03 7:56 
GeneralRe: The View pointer to modal dlg Pin
Alvaro Mendez6-Mar-03 8:02
Alvaro Mendez6-Mar-03 8:02 
GeneralRe: The View pointer to modal dlg Pin
ns6-Mar-03 8:09
ns6-Mar-03 8:09 
GeneralRe: The View pointer to modal dlg Pin
Alvaro Mendez6-Mar-03 9:41
Alvaro Mendez6-Mar-03 9:41 
GeneralRe: The View pointer to modal dlg Pin
ns7-Mar-03 3:24
ns7-Mar-03 3:24 
GeneralApplication Icon Changes Pin
amymarie36-Mar-03 7:11
amymarie36-Mar-03 7:11 
GeneralRe: Application Icon Changes Pin
Anonymous7-Mar-03 3:57
Anonymous7-Mar-03 3:57 
GeneralAdvantech Data Acqusition Card Pin
Abbas_Riazi6-Mar-03 6:58
professionalAbbas_Riazi6-Mar-03 6:58 
GeneralClient vs. Screen Rect. Pin
Maximilien6-Mar-03 6:04
Maximilien6-Mar-03 6:04 
GeneralRe: Client vs. Screen Rect. Pin
PJ Arends6-Mar-03 8:16
professionalPJ Arends6-Mar-03 8:16 
GeneralUsing .dll's created in Visual C++ in VB [both forums] Pin
dazinith6-Mar-03 5:44
dazinith6-Mar-03 5:44 
GeneralRe: Using .dll's created in Visual C++ in VB [both forums] Pin
Chris Meech6-Mar-03 8:13
Chris Meech6-Mar-03 8:13 
GeneralRe: Using .dll's created in Visual C++ in VB [both forums] Pin
dazinith6-Mar-03 9:24
dazinith6-Mar-03 9:24 

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.