Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

ResizableLib

, 15 Jun 2004 CPOL
A set of classes to ease the development of resizable windows with MFC
resizabledialog_demo_1_4a.zip
ResizableDialog
Demo.dsp
Demo.dsw
Release_Static
Demo.exe
Demo.exe.manifest
res
bitmap1.bmp
Demo.ico
toolbar1.bmp
resizableformviewmdi_demo_1_4a.zip
ResizableFormViewMDI
Demo.dsp
Demo.dsw
Release_Static
Demo.exe
Demo.exe.manifest
res
Demo.ico
DemoDoc.ico
DemoDoc0.ico
DemoDoc1.ico
DemoDoc2.ico
resizableformviewsdi_demo_1_4a.zip
ResizableFormViewSDI
Demo.dsp
Demo.dsw
Release_Static
Demo.exe
Demo.exe.manifest
res
Demo.ico
DemoDoc.ico
Toolbar.bmp
resizablelib_1_1.zip
ResizableLib
.cvsignore
Docs
CVS
Entries
Repository
Root
Release_Static
ResizableLib.lib
ResizableLib.dsp
ResizableLib.dsw
resizablelib_1_2.zip
.cvsignore
ResizableLib.dsp
ResizableLib.dsw
resizablelib_1_3.zip
ChangeLog
ResizableLib.dsp
ResizableLib.dsw
ResizableMsgSupport.inl
resizablelib_1_4a.zip
Doxyfile-include
Doxyfile
ResizableLib.dsp
ResizableLib.dsw
resizablelib_src.zip
ResizableLib.dsp
ResizableLib.dsw
.cvsignore
resizableproperties_demo_1_4a.zip
ResizableProperties
Demo.dsp
Demo.dsw
Release_Static
Demo.exe
Demo.exe.manifest
res
Demo.ico
resizablewizard97_demo_1_4a.zip
ResizableWizard97
Release_Static
Wizard97.exe
Wizard97.exe.manifest
res
Baner16.bmp
Baner256.bmp
Water16.bmp
Water256.bmp
Wizard97.ico
Wizard97.dsp
Wizard97.dsw
//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

/////////////////////////////////////////////////////////////////////////////
// Italian (Italy) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ITA)
#ifdef _WIN32
LANGUAGE LANG_ITALIAN, SUBLANG_ITALIAN
#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_ITA)\r\n"
    "#ifdef _WIN32\r\n"
    "LANGUAGE 16, 1\r\n"
    "#pragma code_page(1252)\r\n"
    "#endif //_WIN32\r\n"
    "#include ""res\\Demo.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
    "#include ""l.ita\\afxres.rc""          // Standard components\r\n"
    "#endif\r\n"
    "\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\\Demo.ico"

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

IDD_DEMO_DIALOG DIALOGEX 0, 0, 160, 121
STYLE DS_MODALFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | 
    WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "CResizableDialog Demo"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    LTEXT           "Static text",IDC_LABEL1,7,7,87,10
    CONTROL         "Spin1",IDC_SPIN1,"msctls_updown32",UDS_ARROWKEYS | 
                    UDS_HORZ,134,7,19,10
    EDITTEXT        IDC_EDIT1,7,18,146,48,ES_MULTILINE | ES_AUTOVSCROLL | 
                    WS_VSCROLL
    CONTROL         "Hidden",IDC_RADIO1,"Button",BS_AUTORADIOBUTTON | 
                    WS_GROUP | WS_TABSTOP,17,86,53,9
    CONTROL         "Visible",IDC_RADIO2,"Button",BS_AUTORADIOBUTTON,17,99,
                    56,9
    GROUPBOX        "Size Grip",IDC_GROUP1,7,72,87,42
    DEFPUSHBUTTON   "OK",IDOK,103,76,50,14,WS_GROUP
    PUSHBUTTON      "Cancel",IDCANCEL,103,100,50,14
END

IDD_SECOND_DIALOG DIALOG DISCARDABLE  0, 0, 186, 94
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "CResizableDialog - New features"
FONT 8, "MS Sans Serif"
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,74,73,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,129,73,50,14
    CONTROL         "",IDC_LINE1,"Static",SS_ETCHEDHORZ,7,66,172,1
    CONTROL         131,IDC_PICTURE1,"Static",SS_BITMAP | SS_CENTERIMAGE | 
                    SS_RIGHTJUST | SS_SUNKEN,7,7,63,52
    CONTROL         "This is about 20% with some long text",IDC_STATIC2,
                    "Static",SS_LEFTNOWORDWRAP | SS_CENTERIMAGE | SS_SUNKEN | 
                    SS_WORDELLIPSIS | WS_GROUP,142,7,37,52
    CTEXT           "This is an example of percentage resizing.\nBitmap is about 30%, this is about 50%.\n\nClick on the toolbar!",
                    IDC_STATIC1,76,7,60,52,SS_NOPREFIX | SS_SUNKEN
END

IDD_TEST_DIALOG DIALOG DISCARDABLE  0, 0, 237, 154
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Test Dialog"
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "",IDC_STATIC_TEST,"Static",SS_BLACKFRAME,7,7,109,140
    GROUPBOX        "Static Control's Style",IDC_GROUPBOX,122,7,108,102
    COMBOBOX        IDC_COMBO_TYPE,129,21,94,56,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
    CONTROL         "SS_CENTERIMAGE",IDC_CHECK_CENTERIMAGE,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,129,40,94,10
    CONTROL         "SS_RIGHTJUST",IDC_CHECK_RIGHTJUST,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,129,53,94,10
    CONTROL         "SS_REALSIZEIMAGE",IDC_CHECK_REALSIZEIMAGE,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,129,66,94,10
    CONTROL         "SS_ENDELLIPSIS",IDC_CHECK_ENDELLIPSIS,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,129,79,94,10
    CONTROL         "SS_PATHELLIPSIS",IDC_CHECK_PATHELLIPSIS,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,129,92,94,10
    EDITTEXT        IDC_EDIT_TEXT,129,116,94,12,ES_AUTOHSCROLL
    PUSHBUTTON      "&Update",IDC_BUTTON_UPDATE,122,133,50,14
    PUSHBUTTON      "Close",IDCANCEL,180,133,50,14
END


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

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,0,0,2
 PRODUCTVERSION 1,0,0,2
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "041004B0"
        BEGIN
            VALUE "CompanyName", "\0"
            VALUE "FileDescription", "Demo Applicazione MFC\0"
            VALUE "FileVersion", "1, 0, 0, 2\0"
            VALUE "InternalName", "Demo\0"
            VALUE "LegalCopyright", "Copyright (C) 1999\0"
            VALUE "LegalTrademarks", "\0"
            VALUE "OriginalFilename", "Demo.EXE\0"
            VALUE "ProductName", "Demo Applicazione\0"
            VALUE "ProductVersion", "1, 0, 0, 2\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x410, 1200
    END
END

#endif    // !_MAC


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

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE 
BEGIN
    IDD_DEMO_DIALOG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 153
        TOPMARGIN, 7
        BOTTOMMARGIN, 114
    END

    IDD_SECOND_DIALOG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 179
        TOPMARGIN, 7
        BOTTOMMARGIN, 87
        HORZGUIDE, 59
    END

    IDD_TEST_DIALOG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 230
        VERTGUIDE, 122
        VERTGUIDE, 129
        VERTGUIDE, 223
        TOPMARGIN, 7
        BOTTOMMARGIN, 147
    END
END
#endif    // APSTUDIO_INVOKED


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

IDB_BITMAP1             BITMAP  DISCARDABLE     "res\\bitmap1.bmp"
IDR_TOOLBAR1            BITMAP  DISCARDABLE     "res\\toolbar1.bmp"

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

IDR_TOOLBAR1 TOOLBAR DISCARDABLE  16, 15
BEGIN
    BUTTON      ID_BUTTON1
    BUTTON      ID_BUTTON2
    BUTTON      ID_BUTTON3
    BUTTON      ID_BUTTON4
END


/////////////////////////////////////////////////////////////////////////////
//
// Dialog Info
//

IDD_TEST_DIALOG DLGINIT
BEGIN
    IDC_COMBO_TYPE, 0x403, 8, 0
0x5353, 0x4c5f, 0x4645, 0x0054, 
    IDC_COMBO_TYPE, 0x403, 10, 0
0x5353, 0x435f, 0x4e45, 0x4554, 0x0052, 
    IDC_COMBO_TYPE, 0x403, 9, 0
0x5353, 0x525f, 0x4749, 0x5448, "\000" 
    IDC_COMBO_TYPE, 0x403, 8, 0
0x5353, 0x495f, 0x4f43, 0x004e, 
    IDC_COMBO_TYPE, 0x403, 13, 0
0x5353, 0x425f, 0x414c, 0x4b43, 0x4552, 0x5443, "\000" 
    IDC_COMBO_TYPE, 0x403, 12, 0
0x5353, 0x475f, 0x4152, 0x5259, 0x4345, 0x0054, 
    IDC_COMBO_TYPE, 0x403, 13, 0
0x5353, 0x575f, 0x4948, 0x4554, 0x4552, 0x5443, "\000" 
    IDC_COMBO_TYPE, 0x403, 14, 0
0x5353, 0x425f, 0x414c, 0x4b43, 0x5246, 0x4d41, 0x0045, 
    IDC_COMBO_TYPE, 0x403, 13, 0
0x5353, 0x475f, 0x4152, 0x4659, 0x4152, 0x454d, "\000" 
    IDC_COMBO_TYPE, 0x403, 14, 0
0x5353, 0x575f, 0x4948, 0x4554, 0x5246, 0x4d41, 0x0045, 
    IDC_COMBO_TYPE, 0x403, 12, 0
0x5353, 0x555f, 0x4553, 0x4952, 0x4554, 0x004d, 
    IDC_COMBO_TYPE, 0x403, 10, 0
0x5353, 0x535f, 0x4d49, 0x4c50, 0x0045, 
    IDC_COMBO_TYPE, 0x403, 18, 0
0x5353, 0x4c5f, 0x4645, 0x4e54, 0x574f, 0x524f, 0x5744, 0x4152, 0x0050, 

    IDC_COMBO_TYPE, 0x403, 13, 0
0x5353, 0x4f5f, 0x4e57, 0x5245, 0x5244, 0x5741, "\000" 
    IDC_COMBO_TYPE, 0x403, 10, 0
0x5353, 0x425f, 0x5449, 0x414d, 0x0050, 
    IDC_COMBO_TYPE, 0x403, 15, 0
0x5353, 0x455f, 0x484e, 0x454d, 0x4154, 0x4946, 0x454c, "\000" 
    IDC_COMBO_TYPE, 0x403, 14, 0
0x5353, 0x455f, 0x4354, 0x4548, 0x4844, 0x524f, 0x005a, 
    IDC_COMBO_TYPE, 0x403, 14, 0
0x5353, 0x455f, 0x4354, 0x4548, 0x5644, 0x5245, 0x0054, 
    IDC_COMBO_TYPE, 0x403, 15, 0
0x5353, 0x455f, 0x4354, 0x4548, 0x4644, 0x4152, 0x454d, "\000" 
    0
END


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

STRINGTABLE DISCARDABLE 
BEGIN
    ID_BUTTON1              "\nuno"
    ID_BUTTON3              "\ntre"
    ID_BUTTON2              "\ndue"
    ID_BUTTON4              "\nquattro"
END

#endif    // Italian (Italy) 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_ITA)
#ifdef _WIN32
LANGUAGE 16, 1
#pragma code_page(1252)
#endif //_WIN32
#include "res\Demo.rc2"  // non-Microsoft Visual C++ edited resources
#include "l.ita\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

Paolo Messina
Software Developer RoboTech srl
Italy Italy
Paolo began programming at the age of 9 with a glorious 8086 and GW-BASIC, then he played a bit with C, ASM and Pascal. He tought himself MFC and Windows programming, to exploit his studies of C++. Always attracted by low-level programming and Assembly, he's beginning to appreciate the joys of templates and STL. At work he changed his mind about Java, discovered Eclipse IDE, and now think it's cool.
 
He lives in Follonica, Italy.
 
He has been abroad in the U.S. to work on his final thesis before graduating. For seven months he was playing with airplanes and automatic control at the Unversity of Illinois at Urbana-Champaign.
 
He graduated in Computer Science Engineering at the University of Pisa, Italy, in December 2003.
 
Currently working for an edutainment robotics company (www.robotechsrl.com).
Follow on   Google+

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141030.1 | Last Updated 15 Jun 2004
Article Copyright 2001 by Paolo Messina
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid