Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question about keyboard event in C/C++ Pin
Yanshof13-Apr-06 3:29
Yanshof13-Apr-06 3:29 
QuestionRe: Question about keyboard event in C/C++ Pin
David Crow13-Apr-06 3:33
David Crow13-Apr-06 3:33 
AnswerRe: Question about keyboard event in C/C++ Pin
flytomysky13-Apr-06 3:46
flytomysky13-Apr-06 3:46 
QuestionHow to close a file opened using ShellExecute Pin
ledallam13-Apr-06 2:22
ledallam13-Apr-06 2:22 
AnswerRe: How to close a file opened using ShellExecute Pin
David Crow13-Apr-06 2:33
David Crow13-Apr-06 2:33 
GeneralRe: How to close a file opened using ShellExecute Pin
jayart13-Apr-06 5:50
jayart13-Apr-06 5:50 
GeneralRe: How to close a file opened using ShellExecute Pin
David Crow13-Apr-06 6:09
David Crow13-Apr-06 6:09 
QuestionHow to Print the Text in Required Format. Pin
kiran janaswamy13-Apr-06 1:28
kiran janaswamy13-Apr-06 1:28 
hi all,

i want to print the Contents of the Feilds of the Form into the Printer into the Required Alignment.

my approach.

CPringDialog dlg;
dlg.DoModal();
CDC dc;
dc.Attach(dlg.GetDC()) int h, v;
h = dc.GetDeviceCaps(HORZRES);
v = dc.GetDeviceCaps(VERTRES);

dlg.BeginDocument();
dlg.BeginPrint();
dc.TextOut("Some Text"); //Printing towards the Printer.
dlg.EndPrint();
dlg.EndDocument();

// This works fine but With GetDeviceCaps(...) i am getting the Horizontal and Verticals Coordinates of the Computer. But How to align Top,Width,Height,Bottom of the Page to Print in Correct Alignment.

please help me out.

thanks,
uday.




uday kiran
AnswerRe: How to Print the Text in Required Format. Pin
Branislav13-Apr-06 23:53
Branislav13-Apr-06 23:53 
QuestionAnother Drag and Drop Question Pin
GrumbleWeedster13-Apr-06 1:28
GrumbleWeedster13-Apr-06 1:28 
AnswerRe: Another Drag and Drop Question Pin
Branislav13-Apr-06 23:58
Branislav13-Apr-06 23:58 
QuestionCButton text alignment problem Pin
Shree13-Apr-06 1:13
Shree13-Apr-06 1:13 
AnswerRe: CButton text alignment problem Pin
toxcct13-Apr-06 1:15
toxcct13-Apr-06 1:15 
GeneralRe: CButton text alignment problem Pin
Shree13-Apr-06 1:18
Shree13-Apr-06 1:18 
Questionproviding new functionality in activex Pin
Identity Undisclosed13-Apr-06 0:44
Identity Undisclosed13-Apr-06 0:44 
AnswerRe: providing new functionality in activex Pin
Roger Stoltz13-Apr-06 1:46
Roger Stoltz13-Apr-06 1:46 
GeneralRe: providing new functionality in activex Pin
Identity Undisclosed13-Apr-06 3:17
Identity Undisclosed13-Apr-06 3:17 
AnswerRe: providing new functionality in activex Pin
Roger Stoltz13-Apr-06 3:23
Roger Stoltz13-Apr-06 3:23 
QuestionShow html in dialog Pin
Nishad S13-Apr-06 0:40
Nishad S13-Apr-06 0:40 
AnswerRe: Show html in dialog Pin
Rage13-Apr-06 1:27
professionalRage13-Apr-06 1:27 
GeneralRe: Show html in dialog Pin
Nishad S13-Apr-06 1:34
Nishad S13-Apr-06 1:34 
QuestionClass wizard Pin
alex__b13-Apr-06 0:40
professionalalex__b13-Apr-06 0:40 
AnswerRe: Class wizard Pin
Nishad S13-Apr-06 0:52
Nishad S13-Apr-06 0:52 
GeneralRe: Class wizard Pin
alex__b13-Apr-06 1:05
professionalalex__b13-Apr-06 1:05 
GeneralRe: Class wizard Pin
Nishad S13-Apr-06 1:21
Nishad S13-Apr-06 1:21 

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.