Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: static data member in MFC program Pin
Christian Graus16-Dec-01 16:47
protectorChristian Graus16-Dec-01 16:47 
QuestionHow can I print a bitmap file ? Pin
16-Dec-01 15:31
suss16-Dec-01 15:31 
AnswerRe: How can I print a bitmap file ? Pin
Christian Graus16-Dec-01 15:51
protectorChristian Graus16-Dec-01 15:51 
GeneralRe: How can I print a bitmap file ? Pin
Chambers17-Dec-01 7:56
Chambers17-Dec-01 7:56 
GeneralRe: How can I print a bitmap file ? Pin
Christian Graus17-Dec-01 10:15
protectorChristian Graus17-Dec-01 10:15 
GeneralRe: How can I print a bitmap file ? Pin
Chambers18-Dec-01 0:42
Chambers18-Dec-01 0:42 
GeneralRe: How can I print a bitmap file ? Pin
Christian Graus18-Dec-01 10:04
protectorChristian Graus18-Dec-01 10:04 
GeneralRe: How can I print a bitmap file ? Pin
manio18-Dec-01 18:32
manio18-Dec-01 18:32 
CPrintDialog dlg(false);
dlg.GetDefaults();
HDC hdc = dlg.GetPrinterDC();
ASSERT(hdc);
CDC DC;
DC.Attach(hdc);

m_PrintAreaHorz = GetDeviceCaps(hdc, HORZRES);
m_PrintAreaVert = GetDeviceCaps(hdc, VERTRES);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
DC.DeleteDC();

Christian,

Thanks for your reply.
But I got another question as quoted as "^^^^^" above.

Does this print to the "original size" of this bitmap file ? (i.e, original width and height of this bitmap)Smile | :)
GeneralRe: How can I print a bitmap file ? Pin
Christian Graus18-Dec-01 18:50
protectorChristian Graus18-Dec-01 18:50 
GeneralRe: How can I print a bitmap file ? Pin
18-Dec-01 20:53
suss18-Dec-01 20:53 
GeneralRe: How can I print a bitmap file ? Pin
Christian Graus19-Dec-01 1:02
protectorChristian Graus19-Dec-01 1:02 
GeneralRe: How can I print a bitmap file ? Pin
manio21-Dec-01 0:44
manio21-Dec-01 0:44 
GeneralRe: How can I print a bitmap file ? Pin
Christian Graus21-Dec-01 0:55
protectorChristian Graus21-Dec-01 0:55 
GeneralRe: How can I print a bitmap file ? Pin
manio21-Dec-01 0:02
manio21-Dec-01 0:02 
GeneralRe: How can I print a bitmap file ? Pin
Christian Graus21-Dec-01 0:51
protectorChristian Graus21-Dec-01 0:51 
Questionwhy no need to declare class CXXXDoc in XXXView.h? Pin
AnonymousBabe@usa.net16-Dec-01 15:15
AnonymousBabe@usa.net16-Dec-01 15:15 
AnswerRe: why no need to declare class CXXXDoc in XXXView.h? Pin
Erik Funkenbusch17-Dec-01 0:00
Erik Funkenbusch17-Dec-01 0:00 
GeneralProgram not starting Pin
16-Dec-01 10:37
suss16-Dec-01 10:37 
GeneralRe: Program not starting Pin
Paul Selormey16-Dec-01 13:08
Paul Selormey16-Dec-01 13:08 
GeneralRe: Program not starting Pin
Lim Bio Liong16-Dec-01 19:36
Lim Bio Liong16-Dec-01 19:36 
GeneralRe: Program not starting Pin
Jon Hulatt17-Dec-01 0:04
Jon Hulatt17-Dec-01 0:04 
GeneralRe: Program not starting Pin
Rickard Andersson2017-Dec-01 0:38
Rickard Andersson2017-Dec-01 0:38 
GeneralRe: Program not starting Pin
Michael P Butler17-Dec-01 1:09
Michael P Butler17-Dec-01 1:09 
GeneralRe: Program not starting Pin
17-Dec-01 2:14
suss17-Dec-01 2:14 
GeneralRe: Program not starting Pin
Michael P Butler17-Dec-01 2:48
Michael P Butler17-Dec-01 2: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.