CompuServe Thread

#Print Preview

4 messages in this thread
#30451From: Raindrop SoftwareJul 10, 1994 10:50 PM
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.
#30463From: Charles SteinhardtJul 11, 1994 12:46 AM
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
#30606From: MichTronJul 11, 1994 10:13 PM
>>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
#30616From: Raindrop SoftwareJul 11, 1994 11:05 PM
Thanks Tim, I'll give it a shot. Avinash.