#Print Preview
4 messages in this thread
Hi,
I want to overload one (or more) members of CView so that I have a better
control on print preview of my SDI application. All I want to do is get rid of
the "One Page/Two Page", "Next Page" and "Prev Page" buttons as my application
has always only one page printouts.
Thanks.
Avinash Saxena.
Raindrop,
Unfortunately, I myself don't know how to arrive at this solution in a simple
manner. my suggestion would be to implement a new CPrintPreviewState class and
use this as your basis. You can find the code in: \SRC\VIEWPREV.CPP
When all I wanted to do was the standard print classes to use my own print
"abort" dialogbox as well as fix the font being used in Print preview, I had to
reimplement the entire CPreviewView as well as CPreviewDC classes make the
changes there.
Good luck,
Charles Steinhardt[MVP],
OMG Inc.
Written 11-Jul-1994 @ 01:43:58
Windows NavCIS PRO 1.21
!^NavFont01F000FMGHHGB4MGC5HH96EF61
>>I want to overload one (or more) members of CView so >>that I have a better
control on print preview of my >>SDI application. All I want to do is get rid
of
Override OnFilePrintPreviw (see TechNote 30)
void CMyView::OnFilePrintPreview() { CPrintPreviewState* pState = new
CPrintPreviewState;
if (!DoPrintPreview(AFX_IDD_PREVIEW_TOOLBAR, this,
^^^^^^^^^^^^
Just use your own resource here
Thanks Tim,
I'll give it a shot.
Avinash.