Click here to Skip to main content
12,397,480 members (61,044 online)
Click here to Skip to main content

Stats

54K views
1.6K downloads
48 bookmarked
Posted

MFC Extension library : Enhanced print preview plug-in

, 24 May 2004 CPOL
MFC Extension library : Enhanced print preview plug-in
EPrintPreview
EPrintPreview.def
EPrintPreview.dsp
EPrintPreview.dsw
res
pages.bmp
pages_to.bmp
PrevEnd.BMP
PreviewHome.BMP
PreviewNext.BMP
PrevPrevious.BMP
PrevPrint.BMP
PrevZoomin.bmp
PrevZoomout.BMP
prev_set.bmp
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,0,0,1
 PRODUCTVERSION 1,0,0,1
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x2L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904B0"
        BEGIN
            VALUE "CompanyName", "\0"
            VALUE "FileDescription", "EPrintPreview DLL\0"
            VALUE "FileVersion", "1, 0, 0, 1\0"
            VALUE "InternalName", "EPrintPreview\0"
            VALUE "LegalCopyright", "Copyright (C) 2004\0"
            VALUE "LegalTrademarks", "\0"
            VALUE "OriginalFilename", "EPrintPreview.DLL\0"
            VALUE "ProductName", "EPrintPreview Dynamic Link Library\0"
            VALUE "ProductVersion", "1, 0, 0, 1\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END

#endif    // !_MAC

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// English (U.K.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDB_PREV_END            BITMAP  DISCARDABLE     "RES\\PrevEnd.BMP"
IDB_PREV_HOME           BITMAP  DISCARDABLE     "RES\\PreviewHome.BMP"
IDB_PREV_NEXT           BITMAP  DISCARDABLE     "RES\\PreviewNext.BMP"
IDB_PREV_PREVIOUS       BITMAP  DISCARDABLE     "RES\\PrevPrevious.BMP"
IDB_PREV_PRINT          BITMAP  DISCARDABLE     "RES\\PrevPrint.BMP"
IDB_PREV_ZOOMIN         BITMAP  DISCARDABLE     "res\\PrevZoomin.bmp"
IDB_PREV_ZOOMOUT        BITMAP  DISCARDABLE     "RES\\PrevZoomout.BMP"
IDB_PAGES               BITMAP  DISCARDABLE     "res\\pages.bmp"
IDR_PAGES_TOOLBAR       BITMAP  DISCARDABLE     "res\\pages_to.bmp"
IDB_PREV_PRINT_SETUP    BITMAP  DISCARDABLE     "res\\prev_set.bmp"

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE DISCARDABLE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
    "#define _AFX_NO_OLE_RESOURCES\r\n"
    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
    "\r\n"
    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
    "#ifdef _WIN32\r\n"
    "LANGUAGE 9, 1\r\n"
    "#pragma code_page(1252)\r\n"
    "#endif //_WIN32\r\n"
    "#include ""res\\EPrintPreview.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
    "#include ""afxres.rc""         // Standard components\r\n"
    "#endif\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Menu
//

IDR_PREVIEW_PAGES MENU DISCARDABLE 
BEGIN
    POPUP "PAGES"
    BEGIN
        MENUITEM "1 Page",                      ID_PAGES_1PAGE
        MENUITEM "2 pages",                     ID_PAGES_2PAGES
        MENUITEM "3 Pages",                     ID_PAGES_3PAGES
        MENUITEM "4 pages",                     ID_PAGES_4PAGES
        MENUITEM "6 pages",                     ID_PAGES_6PAGES
        MENUITEM "9 pages",                     ID_PAGES_9PAGES
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_PREVIEW DIALOG DISCARDABLE  0, 0, 294, 16
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "",AFX_ID_PREVIEW_PRINT,"Button",BS_OWNERDRAW | 
                    WS_TABSTOP,4,2,15,13
    CONTROL         "",IDC_PRINT_SETUP,"Button",BS_OWNERDRAW | WS_TABSTOP,23,
                    2,15,13
    CONTROL         "",AFX_ID_PREVIEW_NEXT,"Button",BS_OWNERDRAW | 
                    WS_TABSTOP,41,2,15,13
    CONTROL         "",AFX_ID_PREVIEW_PREV,"Button",BS_OWNERDRAW | 
                    WS_TABSTOP,60,2,15,13
    CONTROL         "#",ID_PREVIEW_PAGES,"Button",BS_OWNERDRAW | WS_TABSTOP,
                    79,2,15,13
    CONTROL         "",AFX_ID_PREVIEW_ZOOMIN,"Button",BS_OWNERDRAW | 
                    WS_TABSTOP,131,2,15,13
    CONTROL         "",AFX_ID_PREVIEW_ZOOMOUT,"Button",BS_OWNERDRAW | 
                    WS_TABSTOP,150,2,15,13
    PUSHBUTTON      "&Close",AFX_ID_PREVIEW_CLOSE,178,2,37,13,BS_NOTIFY
    CONTROL         "Landscape print",IDC_LANDSCAPE,"Button",BS_AUTOCHECKBOX | 
                    BS_NOTIFY | WS_TABSTOP,222,2,67,13
END


/////////////////////////////////////////////////////////////////////////////
//
// Toolbar
//

IDR_PAGES_TOOLBAR TOOLBAR DISCARDABLE  16, 15
BEGIN
    BUTTON      ID_PAGES_1PAGE
    BUTTON      ID_PAGES_2PAGES
    BUTTON      ID_PAGES_3PAGES
    BUTTON      ID_PAGES_4PAGES
    BUTTON      ID_PAGES_6PAGES
    BUTTON      ID_PAGES_9PAGES
END


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE DISCARDABLE 
BEGIN
    ID_PAGES_1PAGE          "Preview a single page"
    ID_PAGES_2PAGES         "Preview 2 pages"
    ID_PAGES_3PAGES         "Preview 3 pages"
    ID_PAGES_4PAGES         "Preview 4 pages"
    ID_PAGES_6PAGES         "Preview 6 pages"
    ID_PAGES_9PAGES         "Preview 9 pages"
END

#endif    // English (U.K.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE 9, 1
#pragma code_page(1252)
#endif //_WIN32
#include "res\EPrintPreview.rc2"  // non-Microsoft Visual C++ edited resources
#include "afxres.rc"         // Standard components
#endif

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Roger Allen
Software Developer (Senior) Sirius Analytical Instruments
United Kingdom United Kingdom
A research and development programmer working for a pharmaceutical instrument company for the past 17 years.

I am one of those lucky people who enjoys his work and spends more time than he should either doing work or reseaching new stuff. I can also be found on playing DDO on the Cannith server (Send a tell to "Maetrim" who is my current main)

I am also a keep fit fanatic, doing cross country running and am seriously into [url]http://www.ryushinkan.co.uk/[/url] Karate at this time of my life, training from 4-6 times a week and recently achieved my 1st Dan after 6 years.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160721.1 | Last Updated 25 May 2004
Article Copyright 2004 by Roger Allen
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid