class CGXView: public CView
The CGXView class provides functionality to maintain individual printer settings for each view and provides an interface for using a view as worksheet in a workbook (CGXTabWnd).
CGXView maintains a pointer to a print-device object (CGXPrintDevice). This object is used to maintain the printer settings and can be modified through the print-setup dialog provided by MFC. By default, the pointer is NULL. This means that if the user changes the printer settings, the printer settings for the whole application are changed, which is the default MFC implementation. If you want to maintain the printer settings in a document or in a view, you should override OnInitialUpdate and connect the print-device to the view by calling SetPrintDevice. An extra parameter in SetPrintDevice tells CGXView if the object should be deleted when the view gets destroyed.
CGXView also provides methods for using a view in a workbook and overrides GetScrollBarCtrl to return pointers to the shared scrollbars maintained by CGXTabWnd. Other methods enable you to determine if the view is embedded in a workbook or to specify the sheet-name. If you want to initialize the sheet-name, you should override OnInitialUpdate. Since OnInitialUpdate is called after construction of the tab-beam, it is no problem to change the tab-width or tab-name.
#include <gxall.h>