Click here to Skip to main content
16,010,268 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC Project File Format Pin
Steve Thresher30-Jul-01 6:41
Steve Thresher30-Jul-01 6:41 
GeneralRe: VC Project File Format Pin
J Patel30-Jul-01 7:04
J Patel30-Jul-01 7:04 
GeneralRe: VC Project File Format Pin
J Patel30-Jul-01 10:52
J Patel30-Jul-01 10:52 
GeneralRe: VC Project File Format Pin
Tomasz Sowinski30-Jul-01 7:17
Tomasz Sowinski30-Jul-01 7:17 
GeneralRe: VC Project File Format Pin
Steve Thresher30-Jul-01 22:44
Steve Thresher30-Jul-01 22:44 
GeneralCRichEditCtrl & EM_CHARFROMPOS Pin
AJ12330-Jul-01 5:14
AJ12330-Jul-01 5:14 
GeneralDialog Printing .... Again!!! Pin
Michael Martin30-Jul-01 4:16
professionalMichael Martin30-Jul-01 4:16 
GeneralRe: Dialog Printing .... Again!!! Pin
Tomasz Sowinski30-Jul-01 5:25
Tomasz Sowinski30-Jul-01 5:25 
how do I set the tab stops?

You need to use ::DrawTextEx if you want to set tab stops. Note that there's no MFC wrapper for this function. You'll have to pass GetSafeHdc() as 1st arg.

I found CView::OnFilePrint being called. This is not a member function of the SDI application nor could I find it in MSDN.

CView::OnFilePrint is the place where MFC doc/view printing is implemented. It shows the print dialog and has the main print output loop. Overridable CView functions are called from CView::OnFilePrint.

How do I build the page in memory with formatting before printing?

I think you shouldn't 'build the page in memory'. What you should do is:

1) calculate number of pages,
2) call CDC::StartDoc,
3) for each page: CDC::StartPage, page contents printed with various CDC methods, CDC::EndPage.
4) call CDC::EndDoc

Tomasz Sowinski -- http://www.shooltz.com
Generalswitch and case Pin
Gérald Mercet30-Jul-01 4:15
Gérald Mercet30-Jul-01 4:15 
GeneralRe: switch and case Pin
Carlos Antollini30-Jul-01 4:38
Carlos Antollini30-Jul-01 4:38 
GeneralScroll bars Pin
Nick Armstrong30-Jul-01 4:10
Nick Armstrong30-Jul-01 4:10 
GeneralRe: Scroll bars Pin
Oliver Anhuth31-Jul-01 0:33
Oliver Anhuth31-Jul-01 0:33 
GeneralNaming sub-menus dynamically Pin
mr200330-Jul-01 3:12
mr200330-Jul-01 3:12 
GeneralNT Service problem Pin
yamini30-Jul-01 2:24
yamini30-Jul-01 2:24 
GeneralRe: NT Service problem Pin
Martin Ziacek30-Jul-01 3:03
Martin Ziacek30-Jul-01 3:03 
GeneralRe: NT Service problem Pin
yamini31-Jul-01 20:44
yamini31-Jul-01 20:44 
GeneralRe: NT Service problem Pin
Martin Ziacek2-Aug-01 8:53
Martin Ziacek2-Aug-01 8:53 
GeneralRe: NT Service problem Pin
Carlos Antollini2-Aug-01 9:43
Carlos Antollini2-Aug-01 9:43 
Generaltree control messages Pin
30-Jul-01 1:59
suss30-Jul-01 1:59 
GeneralRe: tree control messages Pin
Tomasz Sowinski30-Jul-01 2:06
Tomasz Sowinski30-Jul-01 2:06 
GeneralThanks Pin
30-Jul-01 4:53
suss30-Jul-01 4:53 
GeneralRe: Thanks Pin
Tomasz Sowinski30-Jul-01 5:15
Tomasz Sowinski30-Jul-01 5:15 
GeneralListControl Pin
30-Jul-01 0:59
suss30-Jul-01 0:59 
Generalcolor opacity win95+ Pin
Leon30-Jul-01 0:17
Leon30-Jul-01 0:17 
GeneralRe: color opacity win95+ Pin
Christian Graus30-Jul-01 1:52
protectorChristian Graus30-Jul-01 1:52 

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.