Click here to Skip to main content
15,896,726 members
Articles / Desktop Programming / MFC

CResizableSheet and CResizablePage

Rate me:
Please Sign up or sign in to vote.
4.90/5 (20 votes)
27 Oct 2001CPOL 397.2K   8.6K   96  
Two CPropertySheet/CPropertyPage derived classes to implement resizable property sheets or wizard dialogs with MFC
//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

#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\\Wizard97.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
    "#include ""afxres.rc""         // Standard components\r\n"
    "#endif\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME           ICON    DISCARDABLE     "res\\Wizard97.ico"

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

IDD_ABOUTBOX DIALOG DISCARDABLE  0, 0, 217, 55
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About Wizard97"
FONT 8, "MS Sans Serif"
BEGIN
    ICON            IDR_MAINFRAME,IDC_STATIC,11,17,20,20
    LTEXT           "Wizard97 Version 1.0",IDC_STATIC,40,10,119,8,
                    SS_NOPREFIX
    LTEXT           "Copyright (C) 1998",IDC_STATIC,40,25,119,8
    DEFPUSHBUTTON   "OK",IDOK,178,7,32,14,WS_GROUP
END

IDD_COMPLETION_NEW DIALOG DISCARDABLE  0, 0, 209, 76
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Sample Wizard"
FONT 8, "MS Shell Dlg"
BEGIN
    LTEXT           "Add New User Wizard",IDC_BIGBOLDTITLE,21,20,181,19
    LTEXT           "You have finished with",IDC_BOLDTITLE,7,7,106,10
    LTEXT           "You have finished setting options with the Sample Wizard",
                    IDC_TRANSPARENT1,21,41,181,20
END

IDD_INTERIOR1_NEW DIALOG DISCARDABLE  0, 0, 291, 132
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Sample Wizard"
FONT 8, "MS Shell Dlg"
BEGIN
    LTEXT           "To add or remove a component, click the checkbox.  A shaded box means that only part of the component will be installed.  To see what's included in a component, click Details.",
                    IDC_STATIC_TITLE,7,7,277,24
    LTEXT           "Components:",IDC_STATIC,7,35,42,8
    LISTBOX         IDC_LIST1,7,46,178,65,LBS_SORT | LBS_NOINTEGRALHEIGHT | 
                    WS_VSCROLL | WS_TABSTOP
    GROUPBOX        "Description",IDC_GROUP1,192,41,92,70
    LTEXT           "Space needed by Setup:",IDC_STATIC1,7,117,134,8
    LTEXT           "Space available on disk:",IDC_STATIC2,150,117,134,8
    PUSHBUTTON      "&Details...",IDC_BUTTON1,227,92,50,14,WS_DISABLED
END

IDD_INTERIOR2_NEW DIALOG DISCARDABLE  0, 0, 260, 133
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Sample Wizard"
FONT 8, "MS Shell Dlg"
BEGIN
    LTEXT           "Select the appropriate option below:",IDC_STATIC,7,7,
                    114,8
    CONTROL         "Microsoft Windows NT Workstation",IDC_RADIO1,"Button",
                    BS_AUTORADIOBUTTON,21,24,232,10
    LTEXT           "Choose this option for greatest system performance and to maximize data security and internet capabilities",
                    IDC_STATIC1,30,38,223,26
    CONTROL         "Microsoft Windows 95",IDC_RADIO2,"Button",
                    BS_AUTORADIOBUTTON,21,69,232,10
    LTEXT           "Choose this option if you are setting up a computer that has less than 16 megabytes of RAM, or if you are setting up a laptop (portable) computer.",
                    IDC_STATIC2,30,82,223,26
END

IDD_INTRO_NEW DIALOG DISCARDABLE  0, 0, 250, 146
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Sample Wizard"
FONT 8, "MS Shell Dlg"
BEGIN
    LTEXT           "Add New User Wizard",IDC_BIGBOLDTITLE,21,20,222,19
    LTEXT           "This wizard helps you create an account for a new user of this computer.\r\nThe account determines what the user can and cannot do on this computer.",
                    IDC_TRANSPARENT1,21,39,222,25
    LTEXT           "It's a good idea to create an account for each person who regularly uses this computer",
                    IDC_TRANSPARENT2,21,65,222,25
    LTEXT           "Type a login name for this user:",IDC_TRANSPARENT3,21,
                    93,102,8
    LTEXT           "Welcome to the",IDC_BOLDTITLE,7,7,106,10
    EDITTEXT        IDC_EDIT1,125,92,91,12,ES_AUTOHSCROLL
END


#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 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904B0"
        BEGIN
            VALUE "CompanyName", "\0"
            VALUE "FileDescription", "Wizard97 MFC Application\0"
            VALUE "FileVersion", "1, 0, 0, 1\0"
            VALUE "InternalName", "Wizard97\0"
            VALUE "LegalCopyright", "Copyright (C) 1998\0"
            VALUE "LegalTrademarks", "\0"
            VALUE "OriginalFilename", "Wizard97.EXE\0"
            VALUE "ProductName", "Wizard97 Application\0"
            VALUE "ProductVersion", "1, 0, 0, 1\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END

#endif    // !_MAC


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE 
BEGIN
    IDD_ABOUTBOX, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 210
        TOPMARGIN, 7
        BOTTOMMARGIN, 48
    END

    IDD_COMPLETION_NEW, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 202
        VERTGUIDE, 21
        TOPMARGIN, 7
        BOTTOMMARGIN, 69
    END

    IDD_INTERIOR1_NEW, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 284
        VERTGUIDE, 192
        TOPMARGIN, 7
        BOTTOMMARGIN, 125
        HORZGUIDE, 111
    END

    IDD_INTERIOR2_NEW, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 253
        VERTGUIDE, 21
        VERTGUIDE, 30
        TOPMARGIN, 7
        BOTTOMMARGIN, 126
    END

    IDD_INTRO_NEW, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 243
        VERTGUIDE, 21
        TOPMARGIN, 7
        BOTTOMMARGIN, 139
    END
END
#endif    // APSTUDIO_INVOKED


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

IDB_BANNER16            BITMAP  DISCARDABLE     "res\\Baner16.bmp"
IDB_BANNER256           BITMAP  DISCARDABLE     "res\\Baner256.bmp"
IDB_WATERMARK16         BITMAP  DISCARDABLE     "res\\Water16.bmp"
IDB_WATERMARK256        BITMAP  DISCARDABLE     "res\\Water256.bmp"

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

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_ABOUTBOX            "&About Wizard97..."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_SAMPLEWIZARD        "Sample Wizard"
    IDS_HEADERTITLE         "Header Title"
    IDS_HEADERSUBTITLE      "Header Sub Title"
END

#endif    // English (U.S.) 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\Wizard97.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)


Written By
Technical Lead RoboTech srl
Italy Italy
Paolo began programming at the age of 9 with a glorious Olivetti M24 (i8086) and GW-BASIC, then he played a bit with Turbo C, Turbo Pascal and Assembly (using the MS-DOS Debug). Quick BASIC and Visual Basic shortly followed, until he learned C++ in College. He tought himself MFC and Windows programming, along with some DHTML and Javascript.

Always attracted by low-level programming and Assembly, he started to appreciate the joys of templates and STL while working for his Master Thesis. For seven months he was playing with airplanes and automatic control at the Unversity of Illinois at Urbana-Champaign, where he first met QNX and embedded systems.

In his job experience he learned Java to develop user interfaces and graphical editors, and re-discovered the Eclipse IDE that he had used in its early versions with the QNX SDK. He also deepened his knowledge of Linux and embedded systems, microcontrollers firmware and embedded voice recognition, while also practicing electronics design.

He graduated in Computer Engineering (Ingegneria informatica) at the University of Pisa, Italy, in December 2003. Currently working for an electronics and robotics company (www.robotechsrl.com).

He lives in Pisa and in Follonica (GR), Italy.

Comments and Discussions