Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOnFileNew() Question... Pin
JoeSox23-Feb-03 13:27
JoeSox23-Feb-03 13:27 
GeneralRe: OnFileNew() Question... Pin
HENDRIK R23-Feb-03 23:19
HENDRIK R23-Feb-03 23:19 
GeneralRe: OnFileNew() Question... Pin
JoeSox24-Feb-03 10:02
JoeSox24-Feb-03 10:02 
GeneralRe: OnFileNew() Question... Pin
HENDRIK R24-Feb-03 21:06
HENDRIK R24-Feb-03 21:06 
GeneralRe: OnFileNew() Question... Pin
JoeSox25-Feb-03 4:56
JoeSox25-Feb-03 4:56 
GeneralOff-screen bitmap drawing while printing and print previewing Pin
cdsmith23-Feb-03 13:25
cdsmith23-Feb-03 13:25 
GeneralRe: Off-screen bitmap drawing while printing and print previewing Pin
Chris Losinger23-Feb-03 14:50
professionalChris Losinger23-Feb-03 14:50 
GeneralRe: Off-screen bitmap drawing while printing and print previewing Pin
Roger Allen24-Feb-03 1:09
Roger Allen24-Feb-03 1:09 
cdsmith wrote:
- Will the the off-screen approach work for print preview and printing?
It should do, but it may be possible that you could hit an upper limit on the size of the bitmap. As some printers work in very large resolutions (3000 by 3000 or larger), this can cause a very large bitmap to be created. I think there was some upper limit on the size in earlier versions of windows (9x)

cdsmith wrote:
the other problem I have is that some of the graphics I draw are transparent
In my experience, BitBlt works ok for the preview by does not produce output in the actual print for most printers. As you cannot guarantee what printer your user may have, I would suggest moving to the more generic StretchDIBBits() function which I haver never known not to work on a printer. The only issue you may have is that StretchDIBBits() may not support your transparanecy stuff. As I have never used it for that, you will have to investigate using the documentation.

Hope it works out for you. Printing can be hard work.



Roger Allen
Sonork 100.10016

Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
QuestionPossible to use CFontDialog in PropertySheet? Pin
michael thomas23-Feb-03 12:42
michael thomas23-Feb-03 12:42 
AnswerRe: Possible to use CFontDialog in PropertySheet? Pin
valikac23-Feb-03 15:20
valikac23-Feb-03 15:20 
AnswerRe: Possible to use CFontDialog in PropertySheet? Pin
ROK_RShadow23-Feb-03 17:24
ROK_RShadow23-Feb-03 17:24 
AnswerRe: Possible to use CFontDialog in PropertySheet? Pin
Joan M23-Feb-03 21:40
professionalJoan M23-Feb-03 21:40 
GeneralBinary Heap implementation Pin
GabyGirl23-Feb-03 12:41
GabyGirl23-Feb-03 12:41 
GeneralRe: Binary Heap implementation Pin
Neville Franks24-Feb-03 1:18
Neville Franks24-Feb-03 1:18 
GeneralHere's an easy one for you guys.... Pin
Sheshi23-Feb-03 10:52
Sheshi23-Feb-03 10:52 
GeneralRe: Here's an easy one for you guys.... Pin
Larry Antram23-Feb-03 11:00
Larry Antram23-Feb-03 11:00 
GeneralRe: Here's an easy one for you guys.... Pin
Maximilien23-Feb-03 11:03
Maximilien23-Feb-03 11:03 
QuestionGetting rid of this warning? Pin
User 665823-Feb-03 10:37
User 665823-Feb-03 10:37 
AnswerRe: Getting rid of this warning? Pin
Dave Bryant23-Feb-03 10:50
Dave Bryant23-Feb-03 10:50 
GeneralRe: Getting rid of this warning? Pin
User 665823-Feb-03 11:02
User 665823-Feb-03 11:02 
GeneralNeed help in print preview Pin
Dudi Avramov23-Feb-03 9:32
Dudi Avramov23-Feb-03 9:32 
GeneralNeed help getting past a VC++7 compiler error Pin
Jase Jennings23-Feb-03 8:35
Jase Jennings23-Feb-03 8:35 
GeneralRe: Need help getting past a VC++7 compiler error Pin
Stephane Rodriguez.23-Feb-03 9:26
Stephane Rodriguez.23-Feb-03 9:26 
GeneralRe: Need help getting past a VC++7 compiler error Pin
Jase Jennings23-Feb-03 10:34
Jase Jennings23-Feb-03 10:34 
QuestionHow do I handle multiple bitmaps in memory? Pin
Iceman23-Feb-03 8:15
Iceman23-Feb-03 8:15 

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.