diff --git a/ResizableFormViewMDI/.cvsignore b/ResizableFormViewMDI/.cvsignore new file mode 100644 index 0000000..210ed27 --- /dev/null +++ b/ResizableFormViewMDI/.cvsignore @@ -0,0 +1,10 @@ +Debug +Release +*.clw +*.aps +*.ncb +*.opt +*.plg +*.scc +*.WW +*.positions diff --git a/ResizableFormViewMDI/ChildFrm.cpp b/ResizableFormViewMDI/ChildFrm.cpp new file mode 100644 index 0000000..e2a5bb1 --- /dev/null +++ b/ResizableFormViewMDI/ChildFrm.cpp @@ -0,0 +1,63 @@ +// ChildFrm.cpp : implementation of the CChildFrame class +// + +#include "stdafx.h" +#include "Demo.h" + +#include "ChildFrm.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + +///////////////////////////////////////////////////////////////////////////// +// CChildFrame + +IMPLEMENT_DYNCREATE(CChildFrame, CMDIChildWnd) + +BEGIN_MESSAGE_MAP(CChildFrame, CMDIChildWnd) + //{{AFX_MSG_MAP(CChildFrame) + //}}AFX_MSG_MAP +END_MESSAGE_MAP() + +///////////////////////////////////////////////////////////////////////////// +// CChildFrame construction/destruction + +CChildFrame::CChildFrame() +{ +} + +CChildFrame::~CChildFrame() +{ +} + +BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs) +{ + if( !CMDIChildWnd::PreCreateWindow(cs) ) + return FALSE; + + return TRUE; +} + + + +///////////////////////////////////////////////////////////////////////////// +// CChildFrame diagnostics + +#ifdef _DEBUG +void CChildFrame::AssertValid() const +{ + CMDIChildWnd::AssertValid(); +} + +void CChildFrame::Dump(CDumpContext& dc) const +{ + CMDIChildWnd::Dump(dc); +} + +#endif //_DEBUG + +///////////////////////////////////////////////////////////////////////////// +// CChildFrame message handlers diff --git a/ResizableFormViewMDI/ChildFrm.h b/ResizableFormViewMDI/ChildFrm.h new file mode 100644 index 0000000..2a8b01a --- /dev/null +++ b/ResizableFormViewMDI/ChildFrm.h @@ -0,0 +1,51 @@ +// ChildFrm.h : interface of the CChildFrame class +// +///////////////////////////////////////////////////////////////////////////// + +#if !defined(AFX_CHILDFRM_H__979888BD_FD55_4384_A5BE_44E267193FEE__INCLUDED_) +#define AFX_CHILDFRM_H__979888BD_FD55_4384_A5BE_44E267193FEE__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + + +class CChildFrame : public CMDIChildWnd +{ + DECLARE_DYNCREATE(CChildFrame) +public: + CChildFrame(); + +// Attributes +public: + +// Operations +public: + +// Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CChildFrame) + virtual BOOL PreCreateWindow(CREATESTRUCT& cs); + //}}AFX_VIRTUAL + +// Implementation +public: + virtual ~CChildFrame(); +#ifdef _DEBUG + virtual void AssertValid() const; + virtual void Dump(CDumpContext& dc) const; +#endif + +// Generated message map functions +protected: + //{{AFX_MSG(CChildFrame) + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + +///////////////////////////////////////////////////////////////////////////// + +//{{AFX_INSERT_LOCATION}} +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. + +#endif // !defined(AFX_CHILDFRM_H__979888BD_FD55_4384_A5BE_44E267193FEE__INCLUDED_) diff --git a/ResizableFormViewMDI/Demo.cpp b/ResizableFormViewMDI/Demo.cpp new file mode 100644 index 0000000..284b7bf --- /dev/null +++ b/ResizableFormViewMDI/Demo.cpp @@ -0,0 +1,139 @@ +// Demo.cpp : Defines the class behaviors for the application. +// + +#include "stdafx.h" +#include "Demo.h" + +#include "MainFrm.h" +#include "ChildFrm.h" +#include "DemoDoc.h" +#include "DemoView.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + +///////////////////////////////////////////////////////////////////////////// +// CDemoApp + +BEGIN_MESSAGE_MAP(CDemoApp, CWinApp) + //{{AFX_MSG_MAP(CDemoApp) + ON_COMMAND(ID_APP_ABOUT, OnAppAbout) + //}}AFX_MSG_MAP + // Standard file based document commands + ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew) + ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen) +END_MESSAGE_MAP() + +///////////////////////////////////////////////////////////////////////////// +// CDemoApp construction + +CDemoApp::CDemoApp() +{ +} + +///////////////////////////////////////////////////////////////////////////// +// The one and only CDemoApp object + +CDemoApp theApp; + +///////////////////////////////////////////////////////////////////////////// +// CDemoApp initialization + +BOOL CDemoApp::InitInstance() +{ + // Standard initialization + + // Change the registry key under which our settings are stored. + SetRegistryKey(_T("Local AppWizard-Generated Applications")); + + LoadStdProfileSettings(0); // Load standard INI file options (including MRU) + + // Register document templates + + CMultiDocTemplate* pDocTemplate; + pDocTemplate = new CMultiDocTemplate( + IDR_DEMOTYPE, + RUNTIME_CLASS(CDemoDoc), + RUNTIME_CLASS(CChildFrame), // custom MDI child frame + RUNTIME_CLASS(CDemoView)); + AddDocTemplate(pDocTemplate); + + // create main MDI Frame window + CMainFrame* pMainFrame = new CMainFrame; + if (!pMainFrame->LoadFrame(IDR_MAINFRAME)) + return FALSE; + m_pMainWnd = pMainFrame; + + // Parse command line for standard shell commands, DDE, file open + CCommandLineInfo cmdInfo; + ParseCommandLine(cmdInfo); + + // Dispatch commands specified on the command line + if (!ProcessShellCommand(cmdInfo)) + return FALSE; + pMainFrame->ShowWindow(m_nCmdShow); + pMainFrame->UpdateWindow(); + + return TRUE; +} + + +///////////////////////////////////////////////////////////////////////////// +// CAboutDlg dialog used for App About + +class CAboutDlg : public CDialog +{ +public: + CAboutDlg(); + +// Dialog Data + //{{AFX_DATA(CAboutDlg) + enum { IDD = IDD_ABOUTBOX }; + //}}AFX_DATA + + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CAboutDlg) + protected: + virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support + //}}AFX_VIRTUAL + +// Implementation +protected: + //{{AFX_MSG(CAboutDlg) + // No message handlers + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + +CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) +{ + //{{AFX_DATA_INIT(CAboutDlg) + //}}AFX_DATA_INIT +} + +void CAboutDlg::DoDataExchange(CDataExchange* pDX) +{ + CDialog::DoDataExchange(pDX); + //{{AFX_DATA_MAP(CAboutDlg) + //}}AFX_DATA_MAP +} + +BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) + //{{AFX_MSG_MAP(CAboutDlg) + // No message handlers + //}}AFX_MSG_MAP +END_MESSAGE_MAP() + +// App command to run the dialog +void CDemoApp::OnAppAbout() +{ + CAboutDlg aboutDlg; + aboutDlg.DoModal(); +} + +///////////////////////////////////////////////////////////////////////////// +// CDemoApp message handlers + diff --git a/ResizableFormViewMDI/Demo.dsp b/ResizableFormViewMDI/Demo.dsp new file mode 100644 index 0000000..54e5dd2 --- /dev/null +++ b/ResizableFormViewMDI/Demo.dsp @@ -0,0 +1,170 @@ +# Microsoft Developer Studio Project File - Name="Demo" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Application" 0x0101 + +CFG=Demo - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "Demo.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "Demo.mak" CFG="Demo - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "Demo - Win32 Release" (based on "Win32 (x86) Application") +!MESSAGE "Demo - Win32 Debug" (based on "Win32 (x86) Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "Demo - Win32 Release" + +# PROP BASE Use_MFC 6 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 5 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /c +# ADD CPP /nologo /MT /W3 /GX /O2 /I "..\ResizableLib" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /Yu"stdafx.h" /FD /c +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x410 /d "NDEBUG" /d "_AFXDLL" +# ADD RSC /l 0x410 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 /nologo /subsystem:windows /machine:I386 +# ADD LINK32 /nologo /subsystem:windows /machine:I386 + +!ELSEIF "$(CFG)" == "Demo - Win32 Debug" + +# PROP BASE Use_MFC 6 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 6 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\ResizableLib" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Yu"stdafx.h" /FD /GZ /c +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x410 /d "_DEBUG" /d "_AFXDLL" +# ADD RSC /l 0x410 /d "_DEBUG" /d "_AFXDLL" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept +# ADD LINK32 /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "Demo - Win32 Release" +# Name "Demo - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=.\ChildFrm.cpp +# End Source File +# Begin Source File + +SOURCE=.\Demo.cpp +# End Source File +# Begin Source File + +SOURCE=.\Demo.rc +# End Source File +# Begin Source File + +SOURCE=.\DemoDoc.cpp +# End Source File +# Begin Source File + +SOURCE=.\DemoView.cpp +# End Source File +# Begin Source File + +SOURCE=.\MainFrm.cpp +# End Source File +# Begin Source File + +SOURCE=.\StdAfx.cpp +# ADD CPP /Yc"stdafx.h" +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=.\ChildFrm.h +# End Source File +# Begin Source File + +SOURCE=.\Demo.h +# End Source File +# Begin Source File + +SOURCE=.\DemoDoc.h +# End Source File +# Begin Source File + +SOURCE=.\DemoView.h +# End Source File +# Begin Source File + +SOURCE=.\MainFrm.h +# End Source File +# Begin Source File + +SOURCE=.\Resource.h +# End Source File +# Begin Source File + +SOURCE=.\StdAfx.h +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# Begin Source File + +SOURCE=.\res\Demo.ico +# End Source File +# Begin Source File + +SOURCE=.\res\Demo.rc2 +# End Source File +# Begin Source File + +SOURCE=.\res\DemoDoc.ico +# End Source File +# End Group +# End Target +# End Project diff --git a/ResizableFormViewMDI/Demo.dsw b/ResizableFormViewMDI/Demo.dsw new file mode 100644 index 0000000..c26d4ce --- /dev/null +++ b/ResizableFormViewMDI/Demo.dsw @@ -0,0 +1,44 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "Demo"=.\Demo.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name ResizableLib + End Project Dependency +}}} + +############################################################################### + +Project: "ResizableLib"=..\ResizableLib\ResizableLib.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/ResizableFormViewMDI/Demo.h b/ResizableFormViewMDI/Demo.h new file mode 100644 index 0000000..a76dea9 --- /dev/null +++ b/ResizableFormViewMDI/Demo.h @@ -0,0 +1,47 @@ +// Demo.h : main header file for the DEMO application +// + +#if !defined(AFX_DEMO_H__1B23FB25_30B5_451F_B9C1_73B80005D2E7__INCLUDED_) +#define AFX_DEMO_H__1B23FB25_30B5_451F_B9C1_73B80005D2E7__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +#ifndef __AFXWIN_H__ + #error include 'stdafx.h' before including this file for PCH +#endif + +#include "resource.h" // main symbols + +///////////////////////////////////////////////////////////////////////////// +// CDemoApp: +// See Demo.cpp for the implementation of this class +// + +class CDemoApp : public CWinApp +{ +public: + CDemoApp(); + +// Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CDemoApp) + public: + virtual BOOL InitInstance(); + //}}AFX_VIRTUAL + +// Implementation + //{{AFX_MSG(CDemoApp) + afx_msg void OnAppAbout(); + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + + +///////////////////////////////////////////////////////////////////////////// + +//{{AFX_INSERT_LOCATION}} +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. + +#endif // !defined(AFX_DEMO_H__1B23FB25_30B5_451F_B9C1_73B80005D2E7__INCLUDED_) diff --git a/ResizableFormViewMDI/Demo.rc b/ResizableFormViewMDI/Demo.rc new file mode 100644 index 0000000..d8adb41 --- /dev/null +++ b/ResizableFormViewMDI/Demo.rc @@ -0,0 +1,428 @@ +//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" +IDR_DEMOTYPE ICON DISCARDABLE "res\\DemoDoc.ico" + +///////////////////////////////////////////////////////////////////////////// +// +// Menu +// + +IDR_MAINFRAME MENU PRELOAD DISCARDABLE +BEGIN + POPUP "&File" + BEGIN + MENUITEM "&Nuovo\tCtrl+N", ID_FILE_NEW + MENUITEM "&Apri...\tCtrl+A", ID_FILE_OPEN + MENUITEM SEPARATOR + MENUITEM "&Esci", ID_APP_EXIT + END + POPUP "&Visualizza" + BEGIN + MENUITEM "Barra di st&ato", ID_VIEW_STATUS_BAR + END + POPUP "&?" + BEGIN + MENUITEM "Infor&mazioni su Demo...", ID_APP_ABOUT + END +END + +IDR_DEMOTYPE MENU PRELOAD DISCARDABLE +BEGIN + POPUP "&File" + BEGIN + MENUITEM "&Nuovo\tCtrl+N", ID_FILE_NEW + MENUITEM "&Apri...\tCtrl+A", ID_FILE_OPEN + MENUITEM "&Chiudi", ID_FILE_CLOSE + MENUITEM "&Salva\tCtrl+S", ID_FILE_SAVE + MENUITEM "Sa&lva con nome...", ID_FILE_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "&Esci", ID_APP_EXIT + END + POPUP "&Modifica" + BEGIN + MENUITEM "&Annulla\tCtrl+Z", ID_EDIT_UNDO + MENUITEM SEPARATOR + MENUITEM "Tag&lia\tCtrl+X", ID_EDIT_CUT + MENUITEM "&Copia\tCtrl+C", ID_EDIT_COPY + MENUITEM "&Incolla\tCtrl+V", ID_EDIT_PASTE + END + POPUP "&Visualizza" + BEGIN + MENUITEM "Barra di st&ato", ID_VIEW_STATUS_BAR + END + POPUP "Fi&nestra" + BEGIN + MENUITEM "&Nuova finestra", ID_WINDOW_NEW + MENUITEM "&Sovrapponi", ID_WINDOW_CASCADE + MENUITEM "&Affianca", ID_WINDOW_TILE_HORZ + MENUITEM "&Disponi icone", ID_WINDOW_ARRANGE + END + POPUP "&?" + BEGIN + MENUITEM "Infor&mazioni su Demo...", ID_APP_ABOUT + END +END + + +///////////////////////////////////////////////////////////////////////////// +// +// Accelerator +// + +IDR_MAINFRAME ACCELERATORS PRELOAD MOVEABLE PURE +BEGIN + "N", ID_FILE_NEW, VIRTKEY, CONTROL + "O", ID_FILE_OPEN, VIRTKEY, CONTROL + "S", ID_FILE_SAVE, VIRTKEY, CONTROL + "Z", ID_EDIT_UNDO, VIRTKEY, CONTROL + "X", ID_EDIT_CUT, VIRTKEY, CONTROL + "C", ID_EDIT_COPY, VIRTKEY, CONTROL + "V", ID_EDIT_PASTE, VIRTKEY, CONTROL + VK_BACK, ID_EDIT_UNDO, VIRTKEY, ALT + VK_DELETE, ID_EDIT_CUT, VIRTKEY, SHIFT + VK_INSERT, ID_EDIT_COPY, VIRTKEY, CONTROL + VK_INSERT, ID_EDIT_PASTE, VIRTKEY, SHIFT + VK_F6, ID_NEXT_PANE, VIRTKEY + VK_F6, ID_PREV_PANE, VIRTKEY, SHIFT +END + + +///////////////////////////////////////////////////////////////////////////// +// +// Dialog +// + +IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 235, 55 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Informazioni su Demo" +FONT 8, "MS Sans Serif" +BEGIN + ICON IDR_MAINFRAME,IDC_STATIC,11,17,20,20 + LTEXT "Demo Versione 1.0",IDC_STATIC,40,10,119,8,SS_NOPREFIX + LTEXT "Copyright (C) 2001",IDC_STATIC,40,25,119,8 + DEFPUSHBUTTON "OK",IDOK,178,7,50,14,WS_GROUP +END + +IDD_DEMO_FORM DIALOGEX 0, 0, 200, 130 +STYLE WS_CHILD +FONT 8, "MS Sans Serif" +BEGIN + EDITTEXT IDC_EDIT1,7,19,73,68,ES_MULTILINE | ES_AUTOVSCROLL | + WS_VSCROLL + CONTROL "Static",IDC_STATIC,"Static",SS_SIMPLE | WS_GROUP,7,7,63, + 8 + PUSHBUTTON "Button1",IDC_BUTTON1,7,109,73,14 + PUSHBUTTON "Button2",IDC_BUTTON2,7,94,73,14 + COMBOBOX IDC_COMBO1,95,19,89,43,CBS_DROPDOWN | CBS_SORT | + WS_VSCROLL | WS_TABSTOP + GROUPBOX "Group",IDC_GROUP1,87,7,106,116 + CONTROL "Radio1",IDC_RADIO1,"Button",BS_AUTORADIOBUTTON,118,39, + 38,10 + CONTROL "Radio2",IDC_RADIO2,"Button",BS_AUTORADIOBUTTON,118,52, + 38,10 + CONTROL "",IDC_STATIC1,"Static",SS_GRAYRECT,95,71,89,44, + WS_EX_CLIENTEDGE + ICON IDR_DEMOTYPE,IDC_ICON1,95,40,20,20,SS_CENTERIMAGE | + SS_SUNKEN +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 "041004B0" + BEGIN + VALUE "CompanyName", "\0" + VALUE "FileDescription", "Demo Applicazione MFC\0" + VALUE "FileVersion", "1, 0, 0, 1\0" + VALUE "InternalName", "Demo\0" + VALUE "LegalCopyright", "Copyright (C) 2001\0" + VALUE "LegalTrademarks", "\0" + VALUE "OriginalFilename", "Demo.EXE\0" + VALUE "ProductName", "Demo Applicazione\0" + VALUE "ProductVersion", "1, 0, 0, 1\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x410, 1200 + END +END + +#endif // !_MAC + + +///////////////////////////////////////////////////////////////////////////// +// +// DESIGNINFO +// + +#ifdef APSTUDIO_INVOKED +GUIDELINES DESIGNINFO DISCARDABLE +BEGIN + IDD_ABOUTBOX, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 228 + TOPMARGIN, 7 + BOTTOMMARGIN, 48 + END + + IDD_DEMO_FORM, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 193 + VERTGUIDE, 95 + VERTGUIDE, 184 + TOPMARGIN, 7 + BOTTOMMARGIN, 123 + END +END +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Dialog Info +// + +IDD_DEMO_FORM DLGINIT +BEGIN + IDC_COMBO1, 0x403, 7, 0 +0x7449, 0x6d65, 0x3120, "\000" + IDC_COMBO1, 0x403, 7, 0 +0x7449, 0x6d65, 0x3220, "\000" + IDC_COMBO1, 0x403, 7, 0 +0x7449, 0x6d65, 0x3320, "\000" + 0 +END + + +///////////////////////////////////////////////////////////////////////////// +// +// String Table +// + +STRINGTABLE PRELOAD DISCARDABLE +BEGIN + IDR_MAINFRAME "Demo" + IDR_DEMOTYPE "\nDemo\nDemo\n\n\nDemo.Document\nDemo Document" +END + +STRINGTABLE PRELOAD DISCARDABLE +BEGIN + AFX_IDS_APP_TITLE "Demo" + AFX_IDS_IDLEMESSAGE "Pronto" +END + +STRINGTABLE DISCARDABLE +BEGIN + ID_INDICATOR_EXT "EST" + ID_INDICATOR_CAPS "MA" + ID_INDICATOR_NUM "NUM" + ID_INDICATOR_SCRL "BS" + ID_INDICATOR_OVR "SSC" + ID_INDICATOR_REC "REG" +END + +STRINGTABLE DISCARDABLE +BEGIN + ID_FILE_NEW "Crea un nuovo documento\nNuovo" + ID_FILE_OPEN "Apre un documento esistente\nApri" + ID_FILE_CLOSE "Chiude il documento attivo\nChiudi" + ID_FILE_SAVE "Salva il documento attivo\nSalva" + ID_FILE_SAVE_AS "Salva il documento attivo con un nuovo nome\nSalva con nome" +END + +STRINGTABLE DISCARDABLE +BEGIN + ID_APP_ABOUT "Visualizza le informazioni sul programma, il numero di versione e le informazioni di copyright\nInformazioni su" + ID_APP_EXIT "Esce dall'applicazione e chiede di salvare i documenti\nEsci" +END + +STRINGTABLE DISCARDABLE +BEGIN + ID_FILE_MRU_FILE1 "Apre questo documento" + ID_FILE_MRU_FILE2 "Apre questo documento" + ID_FILE_MRU_FILE3 "Apre questo documento" + ID_FILE_MRU_FILE4 "Apre questo documento" + ID_FILE_MRU_FILE5 "Apre questo documento" + ID_FILE_MRU_FILE6 "Apre questo documento" + ID_FILE_MRU_FILE7 "Apre questo documento" + ID_FILE_MRU_FILE8 "Apre questo documento" + ID_FILE_MRU_FILE9 "Apre questo documento" + ID_FILE_MRU_FILE10 "Apre questo documento" + ID_FILE_MRU_FILE11 "Apre questo documento" + ID_FILE_MRU_FILE12 "Apre questo documento" + ID_FILE_MRU_FILE13 "Apre questo documento" + ID_FILE_MRU_FILE14 "Apre questo documento" + ID_FILE_MRU_FILE15 "Apre questo documento" + ID_FILE_MRU_FILE16 "Apre questo documento" +END + +STRINGTABLE DISCARDABLE +BEGIN + ID_NEXT_PANE "Passa al riquadro della finestra successivo\nRiquadro successivo" + ID_PREV_PANE "Ritorna al riquadro della finestra precedente\nRiquadro precedente" +END + +STRINGTABLE DISCARDABLE +BEGIN + ID_WINDOW_NEW "Apre un'altra finestra per il documento attivo\nNuova finestra" + ID_WINDOW_ARRANGE "Dispone le icone nella parte inferiore della finestra\nDisponi icone" + ID_WINDOW_CASCADE "Dispone le finestre sovrapponendole\nSovrapponi finestre" + ID_WINDOW_TILE_HORZ "Dispone le finestre senza sovrapporle\nAffianca finestre" + ID_WINDOW_TILE_VERT "Dispone le finestre senza sovrapporle\nAffianca finestre" + ID_WINDOW_SPLIT "Divide la finestra attiva in riquadri\nDividi" +END + +STRINGTABLE DISCARDABLE +BEGIN + ID_EDIT_CLEAR "Cancella la selezione\nCancella" + ID_EDIT_CLEAR_ALL "Cancella tutto\nCancella tutto" + ID_EDIT_COPY "Copia la selezione e la pone negli Appunti\nCopia" + ID_EDIT_CUT "Taglia la selezione e la pone negli Appunti\nTaglia" + ID_EDIT_FIND "Trova il testo specificato\nTrova" + ID_EDIT_PASTE "Inserisce il contenuto degli Appunti\nIncolla" + ID_EDIT_REPEAT "Ripete l'ultima azione\nRipeti" + ID_EDIT_REPLACE "Sostituisce il testo specifico con un testo differente\nSostituisci" + ID_EDIT_SELECT_ALL "Seleziona l'intero documento\nSeleziona tutto" + ID_EDIT_UNDO "Annulla l'ultima azione\nAnnulla" + ID_EDIT_REDO "Ripristina l'azione precedentemente annullata\nRipristina" +END + +STRINGTABLE DISCARDABLE +BEGIN + ID_VIEW_STATUS_BAR "Mostra o nasconde la barra di stato\nMostra/nascondi barra di stato" +END + +STRINGTABLE DISCARDABLE +BEGIN + AFX_IDS_SCSIZE "Modifica le dimensioni della finestra" + AFX_IDS_SCMOVE "Modifica la posizione della finestra" + AFX_IDS_SCMINIMIZE "Riduce la finestra ad icona" + AFX_IDS_SCMAXIMIZE "Allarga la finestra a tutto schermo" + AFX_IDS_SCNEXTWINDOW "Passa alla finestra successiva del documento " + AFX_IDS_SCPREVWINDOW "Passa alla precedente finestra del documento" + AFX_IDS_SCCLOSE "Chiude la finestra attiva e chiede di salvare i documenti" +END + +STRINGTABLE DISCARDABLE +BEGIN + AFX_IDS_SCRESTORE "Ripristina la finestra alle dimensioni normali" + AFX_IDS_SCTASKLIST "Attiva l'Elenco dei task" + AFX_IDS_MDICHILD "Attiva questa finestra" +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 + diff --git a/ResizableFormViewMDI/DemoDoc.cpp b/ResizableFormViewMDI/DemoDoc.cpp new file mode 100644 index 0000000..e165c07 --- /dev/null +++ b/ResizableFormViewMDI/DemoDoc.cpp @@ -0,0 +1,75 @@ +// DemoDoc.cpp : implementation of the CDemoDoc class +// + +#include "stdafx.h" +#include "Demo.h" + +#include "DemoDoc.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + +///////////////////////////////////////////////////////////////////////////// +// CDemoDoc + +IMPLEMENT_DYNCREATE(CDemoDoc, CDocument) + +BEGIN_MESSAGE_MAP(CDemoDoc, CDocument) + //{{AFX_MSG_MAP(CDemoDoc) + //}}AFX_MSG_MAP +END_MESSAGE_MAP() + +///////////////////////////////////////////////////////////////////////////// +// CDemoDoc construction/destruction + +CDemoDoc::CDemoDoc() +{ +} + +CDemoDoc::~CDemoDoc() +{ +} + +BOOL CDemoDoc::OnNewDocument() +{ + if (!CDocument::OnNewDocument()) + return FALSE; + + return TRUE; +} + + + +///////////////////////////////////////////////////////////////////////////// +// CDemoDoc serialization + +void CDemoDoc::Serialize(CArchive& ar) +{ + if (ar.IsStoring()) + { + } + else + { + } +} + +///////////////////////////////////////////////////////////////////////////// +// CDemoDoc diagnostics + +#ifdef _DEBUG +void CDemoDoc::AssertValid() const +{ + CDocument::AssertValid(); +} + +void CDemoDoc::Dump(CDumpContext& dc) const +{ + CDocument::Dump(dc); +} +#endif //_DEBUG + +///////////////////////////////////////////////////////////////////////////// +// CDemoDoc commands diff --git a/ResizableFormViewMDI/DemoDoc.h b/ResizableFormViewMDI/DemoDoc.h new file mode 100644 index 0000000..0340870 --- /dev/null +++ b/ResizableFormViewMDI/DemoDoc.h @@ -0,0 +1,55 @@ +// DemoDoc.h : interface of the CDemoDoc class +// +///////////////////////////////////////////////////////////////////////////// + +#if !defined(AFX_DEMODOC_H__09F23B29_9993_4768_8346_C6F22F3D630B__INCLUDED_) +#define AFX_DEMODOC_H__09F23B29_9993_4768_8346_C6F22F3D630B__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + + +class CDemoDoc : public CDocument +{ +protected: // create from serialization only + CDemoDoc(); + DECLARE_DYNCREATE(CDemoDoc) + +// Attributes +public: + +// Operations +public: + +// Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CDemoDoc) + public: + virtual BOOL OnNewDocument(); + virtual void Serialize(CArchive& ar); + //}}AFX_VIRTUAL + +// Implementation +public: + virtual ~CDemoDoc(); +#ifdef _DEBUG + virtual void AssertValid() const; + virtual void Dump(CDumpContext& dc) const; +#endif + +protected: + +// Generated message map functions +protected: + //{{AFX_MSG(CDemoDoc) + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + +///////////////////////////////////////////////////////////////////////////// + +//{{AFX_INSERT_LOCATION}} +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. + +#endif // !defined(AFX_DEMODOC_H__09F23B29_9993_4768_8346_C6F22F3D630B__INCLUDED_) diff --git a/ResizableFormViewMDI/DemoView.cpp b/ResizableFormViewMDI/DemoView.cpp new file mode 100644 index 0000000..3a76e44 --- /dev/null +++ b/ResizableFormViewMDI/DemoView.cpp @@ -0,0 +1,92 @@ +// DemoView.cpp : implementation of the CDemoView class +// + +#include "stdafx.h" +#include "Demo.h" + +#include "DemoDoc.h" +#include "DemoView.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + +///////////////////////////////////////////////////////////////////////////// +// CDemoView + +IMPLEMENT_DYNCREATE(CDemoView, CResizableFormView) + +BEGIN_MESSAGE_MAP(CDemoView, CResizableFormView) + //{{AFX_MSG_MAP(CDemoView) + //}}AFX_MSG_MAP +END_MESSAGE_MAP() + +///////////////////////////////////////////////////////////////////////////// +// CDemoView construction/destruction + +CDemoView::CDemoView() + : CResizableFormView(CDemoView::IDD) +{ + //{{AFX_DATA_INIT(CDemoView) + // NOTE: the ClassWizard will add member initialization here + //}}AFX_DATA_INIT +} + +CDemoView::~CDemoView() +{ +} + +void CDemoView::DoDataExchange(CDataExchange* pDX) +{ + CResizableFormView::DoDataExchange(pDX); + //{{AFX_DATA_MAP(CDemoView) + // NOTE: the ClassWizard will add DDX and DDV calls here + //}}AFX_DATA_MAP +} + +BOOL CDemoView::PreCreateWindow(CREATESTRUCT& cs) +{ + return CResizableFormView::PreCreateWindow(cs); +} + +void CDemoView::OnInitialUpdate() +{ + AddAnchor(IDC_EDIT1, TOP_LEFT, CSize(40,100)); + AddAnchor(IDC_BUTTON1, BOTTOM_LEFT, CSize(40,100)); + AddAnchor(IDC_BUTTON2, BOTTOM_LEFT, CSize(40,100)); + AddAnchor(IDC_GROUP1, CSize(40,0), BOTTOM_RIGHT); + AddAnchor(IDC_COMBO1, CSize(40,0), TOP_RIGHT); + AddAnchor(IDC_RADIO1, CSize(70,0), CSize(70,0)); + AddAnchor(IDC_RADIO2, CSize(70,0), CSize(70,0)); + AddAnchor(IDC_STATIC1, CSize(40,0), BOTTOM_RIGHT); + AddAnchor(IDC_ICON1, CSize(40,0), CSize(70,0)); + + CResizableFormView::OnInitialUpdate(); + ResizeParentToFit(); +} + +///////////////////////////////////////////////////////////////////////////// +// CDemoView diagnostics + +#ifdef _DEBUG +void CDemoView::AssertValid() const +{ + CResizableFormView::AssertValid(); +} + +void CDemoView::Dump(CDumpContext& dc) const +{ + CResizableFormView::Dump(dc); +} + +CDemoDoc* CDemoView::GetDocument() // non-debug version is inline +{ + ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDemoDoc))); + return (CDemoDoc*)m_pDocument; +} +#endif //_DEBUG + +///////////////////////////////////////////////////////////////////////////// +// CDemoView message handlers diff --git a/ResizableFormViewMDI/DemoView.h b/ResizableFormViewMDI/DemoView.h new file mode 100644 index 0000000..173761d --- /dev/null +++ b/ResizableFormViewMDI/DemoView.h @@ -0,0 +1,70 @@ +// DemoView.h : interface of the CDemoView class +// +///////////////////////////////////////////////////////////////////////////// + +#if !defined(AFX_DEMOVIEW_H__3D2A41E4_C897_4064_AD75_DC3F1B237D00__INCLUDED_) +#define AFX_DEMOVIEW_H__3D2A41E4_C897_4064_AD75_DC3F1B237D00__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +#include "ResizableFormView.h" + +class CDemoView : public CResizableFormView +{ +protected: // create from serialization only + CDemoView(); + DECLARE_DYNCREATE(CDemoView) + +public: + //{{AFX_DATA(CDemoView) + enum{ IDD = IDD_DEMO_FORM }; + // NOTE: the ClassWizard will add data members here + //}}AFX_DATA + +// Attributes +public: + CDemoDoc* GetDocument(); + +// Operations +public: + +// Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CDemoView) + public: + virtual BOOL PreCreateWindow(CREATESTRUCT& cs); + protected: + virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support + virtual void OnInitialUpdate(); // called first time after construct + //}}AFX_VIRTUAL + +// Implementation +public: + virtual ~CDemoView(); +#ifdef _DEBUG + virtual void AssertValid() const; + virtual void Dump(CDumpContext& dc) const; +#endif + +protected: + +// Generated message map functions +protected: + //{{AFX_MSG(CDemoView) + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + +#ifndef _DEBUG // debug version in DemoView.cpp +inline CDemoDoc* CDemoView::GetDocument() + { return (CDemoDoc*)m_pDocument; } +#endif + +///////////////////////////////////////////////////////////////////////////// + +//{{AFX_INSERT_LOCATION}} +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. + +#endif // !defined(AFX_DEMOVIEW_H__3D2A41E4_C897_4064_AD75_DC3F1B237D00__INCLUDED_) diff --git a/ResizableFormViewMDI/MainFrm.cpp b/ResizableFormViewMDI/MainFrm.cpp new file mode 100644 index 0000000..c2c8f60 --- /dev/null +++ b/ResizableFormViewMDI/MainFrm.cpp @@ -0,0 +1,86 @@ +// MainFrm.cpp : implementation of the CMainFrame class +// + +#include "stdafx.h" +#include "Demo.h" + +#include "MainFrm.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + +///////////////////////////////////////////////////////////////////////////// +// CMainFrame + +IMPLEMENT_DYNAMIC(CMainFrame, CMDIFrameWnd) + +BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd) + //{{AFX_MSG_MAP(CMainFrame) + ON_WM_CREATE() + //}}AFX_MSG_MAP +END_MESSAGE_MAP() + +static UINT indicators[] = +{ + ID_SEPARATOR, // status line indicator + ID_INDICATOR_CAPS, + ID_INDICATOR_NUM, + ID_INDICATOR_SCRL, +}; + +///////////////////////////////////////////////////////////////////////////// +// CMainFrame construction/destruction + +CMainFrame::CMainFrame() +{ +} + +CMainFrame::~CMainFrame() +{ +} + +int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) +{ + if (CMDIFrameWnd::OnCreate(lpCreateStruct) == -1) + return -1; + + if (!m_wndStatusBar.Create(this) || + !m_wndStatusBar.SetIndicators(indicators, + sizeof(indicators)/sizeof(UINT))) + { + TRACE0("Failed to create status bar\n"); + return -1; // fail to create + } + + return 0; +} + +BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) +{ + if( !CMDIFrameWnd::PreCreateWindow(cs) ) + return FALSE; + return TRUE; +} + +///////////////////////////////////////////////////////////////////////////// +// CMainFrame diagnostics + +#ifdef _DEBUG +void CMainFrame::AssertValid() const +{ + CMDIFrameWnd::AssertValid(); +} + +void CMainFrame::Dump(CDumpContext& dc) const +{ + CMDIFrameWnd::Dump(dc); +} + +#endif //_DEBUG + +///////////////////////////////////////////////////////////////////////////// +// CMainFrame message handlers + diff --git a/ResizableFormViewMDI/MainFrm.h b/ResizableFormViewMDI/MainFrm.h new file mode 100644 index 0000000..e2bbc08 --- /dev/null +++ b/ResizableFormViewMDI/MainFrm.h @@ -0,0 +1,54 @@ +// MainFrm.h : interface of the CMainFrame class +// +///////////////////////////////////////////////////////////////////////////// + +#if !defined(AFX_MAINFRM_H__BFFBC8E2_FDE4_4F98_B05C_9EE97F7A4594__INCLUDED_) +#define AFX_MAINFRM_H__BFFBC8E2_FDE4_4F98_B05C_9EE97F7A4594__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +class CMainFrame : public CMDIFrameWnd +{ + DECLARE_DYNAMIC(CMainFrame) +public: + CMainFrame(); + +// Attributes +public: + +// Operations +public: + +// Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CMainFrame) + virtual BOOL PreCreateWindow(CREATESTRUCT& cs); + //}}AFX_VIRTUAL + +// Implementation +public: + virtual ~CMainFrame(); +#ifdef _DEBUG + virtual void AssertValid() const; + virtual void Dump(CDumpContext& dc) const; +#endif + +protected: // control bar embedded members + CStatusBar m_wndStatusBar; + +// Generated message map functions +protected: + //{{AFX_MSG(CMainFrame) + afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + +///////////////////////////////////////////////////////////////////////////// + +//{{AFX_INSERT_LOCATION}} +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. + +#endif // !defined(AFX_MAINFRM_H__BFFBC8E2_FDE4_4F98_B05C_9EE97F7A4594__INCLUDED_) diff --git a/ResizableFormViewMDI/Resource.h b/ResizableFormViewMDI/Resource.h new file mode 100644 index 0000000..f2f850e --- /dev/null +++ b/ResizableFormViewMDI/Resource.h @@ -0,0 +1,28 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Developer Studio generated include file. +// Used by Demo.rc +// +#define IDD_ABOUTBOX 100 +#define IDD_DEMO_FORM 101 +#define IDR_MAINFRAME 128 +#define IDR_DEMOTYPE 129 +#define IDC_EDIT1 1000 +#define IDC_BUTTON1 1002 +#define IDC_BUTTON2 1003 +#define IDC_COMBO1 1005 +#define IDC_RADIO1 1008 +#define IDC_RADIO2 1009 +#define IDC_STATIC1 1010 +#define IDC_GROUP1 1011 +#define IDC_ICON1 1012 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 131 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1013 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/ResizableFormViewMDI/StdAfx.cpp b/ResizableFormViewMDI/StdAfx.cpp new file mode 100644 index 0000000..1e015ff --- /dev/null +++ b/ResizableFormViewMDI/StdAfx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// Demo.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information + +#include "stdafx.h" + + + diff --git a/ResizableFormViewMDI/StdAfx.h b/ResizableFormViewMDI/StdAfx.h new file mode 100644 index 0000000..57624ee --- /dev/null +++ b/ResizableFormViewMDI/StdAfx.h @@ -0,0 +1,26 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#if !defined(AFX_STDAFX_H__D323ADE2_50A1_4C34_8B7F_2892323C4972__INCLUDED_) +#define AFX_STDAFX_H__D323ADE2_50A1_4C34_8B7F_2892323C4972__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers + +#include // MFC core and standard components +#include // MFC extensions +#include // MFC support for Internet Explorer 4 Common Controls +#ifndef _AFX_NO_AFXCMN_SUPPORT +#include // MFC support for Windows Common Controls +#endif // _AFX_NO_AFXCMN_SUPPORT + + +//{{AFX_INSERT_LOCATION}} +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. + +#endif // !defined(AFX_STDAFX_H__D323ADE2_50A1_4C34_8B7F_2892323C4972__INCLUDED_) diff --git a/ResizableFormViewMDI/res/Demo.ico b/ResizableFormViewMDI/res/Demo.ico new file mode 100644 index 0000000..7eef0bc Binary files /dev/null and b/ResizableFormViewMDI/res/Demo.ico differ diff --git a/ResizableFormViewMDI/res/Demo.rc2 b/ResizableFormViewMDI/res/Demo.rc2 new file mode 100644 index 0000000..aaefa40 --- /dev/null +++ b/ResizableFormViewMDI/res/Demo.rc2 @@ -0,0 +1,13 @@ +// +// DEMO.RC2 - resources Microsoft Visual C++ does not edit directly +// + +#ifdef APSTUDIO_INVOKED + #error this file is not editable by Microsoft Visual C++ +#endif //APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// Add manually edited resources here... + +///////////////////////////////////////////////////////////////////////////// diff --git a/ResizableFormViewMDI/res/DemoDoc.ico b/ResizableFormViewMDI/res/DemoDoc.ico new file mode 100644 index 0000000..2756a06 Binary files /dev/null and b/ResizableFormViewMDI/res/DemoDoc.ico differ