Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to pass the firewall?? Pin
realyxm17-May-01 22:08
realyxm17-May-01 22:08 
QuestionCan anyone erase the background bitmap? Pin
17-May-01 17:05
suss17-May-01 17:05 
AnswerRe: Can anyone erase the background bitmap? Pin
Christian Graus17-May-01 17:43
protectorChristian Graus17-May-01 17:43 
QuestionAny ideas on reducing link times? Pin
Chris Hafey17-May-01 15:18
Chris Hafey17-May-01 15:18 
AnswerRe: Any ideas on reducing link times? Pin
Anders Molin17-May-01 23:57
professionalAnders Molin17-May-01 23:57 
GeneralRe: Any ideas on reducing link times? Pin
Gerry18-May-01 3:30
Gerry18-May-01 3:30 
GeneralRe: Any ideas on reducing link times? Pin
18-May-01 4:52
suss18-May-01 4:52 
GeneralPrinting under MFC - ARGH !!! Pin
Christian Graus17-May-01 14:57
protectorChristian Graus17-May-01 14:57 
I'm setting up printing in my program, and the idea is that we present a dialog that allows the user to format the page, then we print it. I bring up the dialog in OnPreparePrinting, and pass in the pInfo item. The problem is, I want to know my printable area so I can allow the user to set the page up, taking into allowance the set margins of the printer ( i.e. the printable area, as opposed to the page area ). My problem is the pInfo struct has a perfect data member for this, call m_rectDraw, but it contains garbage until OnPrint. I can stretch my bitmap perfectly over the page in OnPrint, but I need to know those values in OnPreparePrinting AND see them change when I flick between Portrait/Landscape or set a new paper size. Can this be done ? I even toyed with setting up a function that runs through the print sequence, but I am already in the middle of it AND I'm not sure I can do it without something printing - I tried setting the bContine flag to false in OnPrint to no avail.

This is all too convoluted and I am sure I am missing something, but I can't see it in the MSDN. Any help will result in instant good karma, plus some of my wife's famous chocolate cake the next time you're in Hobart...

Christian

#include <std_disclaimer.h>
GeneralRe: Printing under MFC - ARGH !!! Pin
l a u r e n18-May-01 12:51
l a u r e n18-May-01 12:51 
GeneralRe: Printing under MFC - ARGH !!! Pin
Christian Graus18-May-01 12:59
protectorChristian Graus18-May-01 12:59 
GeneralRe: Printing under MFC - ARGH !!! Pin
CodeGuy18-May-01 16:50
CodeGuy18-May-01 16:50 
GeneralUnicode File I/O Pin
Shankar Chandra Bose17-May-01 14:35
Shankar Chandra Bose17-May-01 14:35 
GeneralRe: Unicode File I/O Pin
l a u r e n18-May-01 12:53
l a u r e n18-May-01 12:53 
GeneralCRecordset and SQL Server 2000 Pin
SuperGeek17-May-01 11:15
SuperGeek17-May-01 11:15 
GeneralRe: CRecordset and SQL Server 2000 Pin
4-Sep-01 1:27
suss4-Sep-01 1:27 
GeneralCFormView Throwing Exception Pin
Christopher17-May-01 10:45
Christopher17-May-01 10:45 
GeneralEjecting a CD Pin
17-May-01 8:53
suss17-May-01 8:53 
GeneralRe: Ejecting a CD Pin
Ed Dixon17-May-01 9:21
Ed Dixon17-May-01 9:21 
GeneralRe: Ejecting a CD Pin
Tomasz Sowinski17-May-01 9:28
Tomasz Sowinski17-May-01 9:28 
GeneralRe: Ejecting a CD Pin
17-May-01 18:11
suss17-May-01 18:11 
GeneralRe: Ejecting a CD Pin
Anders Molin17-May-01 23:54
professionalAnders Molin17-May-01 23:54 
GeneralRe: Ejecting a CD Pin
18-May-01 4:01
suss18-May-01 4:01 
GeneralRe: Ejecting a CD Pin
Carlos Antollini17-May-01 9:49
Carlos Antollini17-May-01 9:49 
QuestionHow to make an output file in VC++ Pin
mr200317-May-01 8:49
mr200317-May-01 8:49 
AnswerRe: How to make an output file in VC++ Pin
Ravi Bhavnani17-May-01 10:08
professionalRavi Bhavnani17-May-01 10:08 

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.