Click here to Skip to main content
15,921,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with the registry Pin
Jochem9-Jan-03 2:37
Jochem9-Jan-03 2:37 
GeneralRe: Problem with the registry Pin
Anonymous9-Jan-03 3:23
Anonymous9-Jan-03 3:23 
GeneralRe: Problem with the registry Pin
Ramu Pulipati9-Jan-03 1:40
Ramu Pulipati9-Jan-03 1:40 
GeneralRe: Problem with the registry Pin
Jochem9-Jan-03 2:39
Jochem9-Jan-03 2:39 
GeneralRe: Problem with the registry Pin
Joan M9-Jan-03 1:42
professionalJoan M9-Jan-03 1:42 
GeneralRe: Problem with the registry Pin
Michael Dunn9-Jan-03 5:39
sitebuilderMichael Dunn9-Jan-03 5:39 
GeneralPrinting a Bitmap Pin
fordge9-Jan-03 1:26
fordge9-Jan-03 1:26 
GeneralRe: Printing a Bitmap Pin
Roger Allen9-Jan-03 1:40
Roger Allen9-Jan-03 1:40 
You need to consider when blting the size of the image and the DPI resolution of the printer in the X/Y directions.
You can do this by using GetDeviceCaps() with LOGICALPIXELSX/Y to get the DPI resolutions and HORZRES and VERTRES to get the number of pixels available. From there you need to work out the DPI ratios and from that work out which bound (x or y) of your bitmap is largest and use that bound to scale the other correctly for your StretchBlt operation.

I don't have any code available to demostrate this, but it shouldn't be too hard to construct.


Roger Allen
Sonork 100.10016

This is a multiple choice question, choose wisely
Why did the hedgehog cross the road?
A: To show he had guts?
B: To see his flat mate?

Generala Good Chart ActiveX! Pin
Alex H 19839-Jan-03 1:19
Alex H 19839-Jan-03 1:19 
GeneralRun Time Error When Using CDatabase Pin
Muhammad Asim Ghaznavi9-Jan-03 0:27
Muhammad Asim Ghaznavi9-Jan-03 0:27 
GeneralRe: Run Time Error When Using CDatabase Pin
Ramu Pulipati9-Jan-03 2:00
Ramu Pulipati9-Jan-03 2:00 
GeneralRe: Run Time Error When Using CDatabase Pin
Muhammad Asim Ghaznavi10-Jan-03 0:22
Muhammad Asim Ghaznavi10-Jan-03 0:22 
GeneralCPropertySheet... Pin
Raphael Kindt9-Jan-03 0:24
Raphael Kindt9-Jan-03 0:24 
GeneralRe: CPropertySheet... Pin
Joan M9-Jan-03 0:40
professionalJoan M9-Jan-03 0:40 
GeneralSample: Pin
Joan M9-Jan-03 2:00
professionalJoan M9-Jan-03 2:00 
Generalimporting from a DLL... Pin
Joan M9-Jan-03 0:15
professionalJoan M9-Jan-03 0:15 
GeneralRe: importing from a DLL... Pin
Raphael Kindt9-Jan-03 1:19
Raphael Kindt9-Jan-03 1:19 
GeneralRe: importing from a DLL... Pin
Joan M9-Jan-03 1:29
professionalJoan M9-Jan-03 1:29 
GeneralRe: importing from a DLL... Pin
Raphael Kindt9-Jan-03 1:52
Raphael Kindt9-Jan-03 1:52 
GeneralRe: importing from a DLL... Pin
Joan M9-Jan-03 1:49
professionalJoan M9-Jan-03 1:49 
Generalsmall problem with CString And GetWindowsDirectory Pin
r i s h a b h s8-Jan-03 22:45
r i s h a b h s8-Jan-03 22:45 
GeneralRe: small problem with CString And GetWindowsDirectory Pin
Hans Ruck9-Jan-03 0:08
Hans Ruck9-Jan-03 0:08 
GeneralRe: small problem with CString And GetWindowsDirectory Pin
Hesham Amin9-Jan-03 0:41
Hesham Amin9-Jan-03 0:41 
GeneralMaximizing window in MDI Pin
Rage8-Jan-03 22:27
professionalRage8-Jan-03 22:27 
GeneralRe: Maximizing window in MDI Pin
Hans Ruck8-Jan-03 23:48
Hans Ruck8-Jan-03 23:48 

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.