diff --git a/ResizableComboBox/.cvsignore b/ResizableComboBox/.cvsignore new file mode 100644 index 0000000..8e7f619 --- /dev/null +++ b/ResizableComboBox/.cvsignore @@ -0,0 +1,12 @@ +Debug +Debug_Static +Release +Release_Static +*.clw +*.aps +*.ncb +*.opt +*.plg +*.scc +*.WW +*.positions diff --git a/ResizableComboBox/Demo.cpp b/ResizableComboBox/Demo.cpp new file mode 100644 index 0000000..7ba62c7 --- /dev/null +++ b/ResizableComboBox/Demo.cpp @@ -0,0 +1,55 @@ +// Demo.cpp : Defines the class behaviors for the application. +// + +#include "stdafx.h" +#include "Demo.h" +#include "DemoDlg.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) + //}}AFX_MSG + ON_COMMAND(ID_HELP, CWinApp::OnHelp) +END_MESSAGE_MAP() + +///////////////////////////////////////////////////////////////////////////// +// CDemoApp construction + +CDemoApp::CDemoApp() +{ +} + +///////////////////////////////////////////////////////////////////////////// +// The one and only CDemoApp object + +CDemoApp theApp; + +///////////////////////////////////////////////////////////////////////////// +// CDemoApp initialization + +BOOL CDemoApp::InitInstance() +{ + // Standard initialization + + CDemoDlg dlg; + m_pMainWnd = &dlg; + int nResponse = dlg.DoModal(); + if (nResponse == IDOK) + { + } + else if (nResponse == IDCANCEL) + { + } + + // Since the dialog has been closed, return FALSE so that we exit the + // application, rather than start the application's message pump. + return FALSE; +} diff --git a/ResizableComboBox/Demo.dsp b/ResizableComboBox/Demo.dsp new file mode 100644 index 0000000..f80afc7 --- /dev/null +++ b/ResizableComboBox/Demo.dsp @@ -0,0 +1,196 @@ +# 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 Static +!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 Static" +!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 "Demo - Win32 Debug Static" (based on "Win32 (x86) Application") +!MESSAGE "Demo - Win32 Release Static" (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 6 +# 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 /MD /W4 /GX /O2 /I "..\ResizableLib" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_AFXDLL" /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" /d "_AFXDLL" +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 /W4 /Gm /GX /ZI /Od /I "..\ResizableLib" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_AFXDLL" /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 + +!ELSEIF "$(CFG)" == "Demo - Win32 Debug Static" + +# PROP BASE Use_MFC 6 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Demo___Win32_Debug_Static" +# PROP BASE Intermediate_Dir "Demo___Win32_Debug_Static" +# PROP BASE Target_Dir "" +# PROP Use_MFC 5 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug_Static" +# PROP Intermediate_Dir "Debug_Static" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MDd /W4 /Gm /GX /ZI /Od /I "..\ResizableLib" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /Yu"stdafx.h" /FD /GZ /c +# ADD CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\ResizableLib" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /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" +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 + +!ELSEIF "$(CFG)" == "Demo - Win32 Release Static" + +# PROP BASE Use_MFC 5 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Demo___Win32_Release_Static" +# PROP BASE Intermediate_Dir "Demo___Win32_Release_Static" +# PROP BASE Target_Dir "" +# PROP Use_MFC 5 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release_Static" +# PROP Intermediate_Dir "Release_Static" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MT /W4 /GX /O2 /I "..\ResizableLib" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /Yu"stdafx.h" /FD /c +# ADD CPP /nologo /MT /W4 /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" +# 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 + +!ENDIF + +# Begin Target + +# Name "Demo - Win32 Release" +# Name "Demo - Win32 Debug" +# Name "Demo - Win32 Debug Static" +# Name "Demo - Win32 Release Static" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=.\Demo.cpp +# End Source File +# Begin Source File + +SOURCE=.\Demo.rc +# End Source File +# Begin Source File + +SOURCE=.\DemoDlg.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=.\Demo.h +# End Source File +# Begin Source File + +SOURCE=.\DemoDlg.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 +# End Group +# End Target +# End Project diff --git a/ResizableComboBox/Demo.dsw b/ResizableComboBox/Demo.dsw new file mode 100644 index 0000000..ce308f0 --- /dev/null +++ b/ResizableComboBox/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: "ResizableLib"="..\ResizableLib\ResizableLib.dsp" - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "Demo"=".\Demo.dsp" - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name ResizableLib + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/ResizableComboBox/Demo.h b/ResizableComboBox/Demo.h new file mode 100644 index 0000000..5871585 --- /dev/null +++ b/ResizableComboBox/Demo.h @@ -0,0 +1,47 @@ +// Demo.h : main header file for the TESTCOMBOBOX application +// + +#if !defined(AFX_TESTCOMBOBOX_H__AD8B91BB_D15A_4B88_B140_6D0F92474AED__INCLUDED_) +#define AFX_TESTCOMBOBOX_H__AD8B91BB_D15A_4B88_B140_6D0F92474AED__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 + DECLARE_MESSAGE_MAP() +}; + + +///////////////////////////////////////////////////////////////////////////// + +//{{AFX_INSERT_LOCATION}} +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. + +#endif // !defined(AFX_TESTCOMBOBOX_H__AD8B91BB_D15A_4B88_B140_6D0F92474AED__INCLUDED_) diff --git a/ResizableComboBox/Demo.rc b/ResizableComboBox/Demo.rc new file mode 100644 index 0000000..55157a2 --- /dev/null +++ b/ResizableComboBox/Demo.rc @@ -0,0 +1,202 @@ +//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_TESTCOMBOBOX_DIALOG DIALOGEX 0, 0, 164, 108 +STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME +EXSTYLE WS_EX_APPWINDOW +CAPTION "Demo" +FONT 8, "MS Sans Serif" +BEGIN + DEFPUSHBUTTON "OK",IDOK,107,7,50,14 + PUSHBUTTON "Annulla",IDCANCEL,107,23,50,14 + COMBOBOX IDC_COMBO1,7,7,74,45,CBS_DROPDOWN | CBS_SORT | + WS_VSCROLL | WS_TABSTOP + EDITTEXT IDC_EDIT1,7,42,150,59,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 "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_TESTCOMBOBOX_DIALOG, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 157 + TOPMARGIN, 7 + BOTTOMMARGIN, 101 + END +END +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Dialog Info +// + +IDD_TESTCOMBOBOX_DIALOG DLGINIT +BEGIN + IDC_COMBO1, 0x403, 10, 0 +0x7449, 0x6d65, 0x3120, 0x7020, 0x0071, + IDC_COMBO1, 0x403, 10, 0 +0x7449, 0x6d65, 0x3220, 0x7020, 0x0071, + IDC_COMBO1, 0x403, 47, 0 +0x7449, 0x6d65, 0x3320, 0x7020, 0x2071, 0x202d, 0x6854, 0x7369, 0x6920, +0x2073, 0x2061, 0x6576, 0x7972, 0x6c20, 0x6e6f, 0x2067, 0x7473, 0x6972, +0x676e, 0x6f20, 0x2066, 0x6574, 0x7478, "\000" + IDC_COMBO1, 0x403, 10, 0 +0x7449, 0x6d65, 0x3420, 0x7020, 0x0071, + IDC_COMBO1, 0x403, 10, 0 +0x7449, 0x6d65, 0x3520, 0x7020, 0x0071, + IDC_COMBO1, 0x403, 10, 0 +0x7449, 0x6d65, 0x3620, 0x7020, 0x0071, + 0 +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/ResizableComboBox/DemoDlg.cpp b/ResizableComboBox/DemoDlg.cpp new file mode 100644 index 0000000..c5544e7 --- /dev/null +++ b/ResizableComboBox/DemoDlg.cpp @@ -0,0 +1,68 @@ +// DemoDlg.cpp : implementation file +// + +#include "stdafx.h" +#include "Demo.h" +#include "DemoDlg.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + +///////////////////////////////////////////////////////////////////////////// +// CDemoDlg dialog + +CDemoDlg::CDemoDlg(CWnd* pParent /*=NULL*/) + : CResizableDialog(CDemoDlg::IDD, pParent) +{ + //{{AFX_DATA_INIT(CDemoDlg) + // NOTE: the ClassWizard will add member initialization here + //}}AFX_DATA_INIT + m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); +} + +void CDemoDlg::DoDataExchange(CDataExchange* pDX) +{ + CResizableDialog::DoDataExchange(pDX); + //{{AFX_DATA_MAP(CDemoDlg) + DDX_Control(pDX, IDC_COMBO1, m_ctrlCombo1); + //}}AFX_DATA_MAP +} + +BEGIN_MESSAGE_MAP(CDemoDlg, CResizableDialog) + //{{AFX_MSG_MAP(CDemoDlg) + ON_WM_CREATE() + //}}AFX_MSG_MAP +END_MESSAGE_MAP() + +///////////////////////////////////////////////////////////////////////////// +// CDemoDlg message handlers + +BOOL CDemoDlg::OnInitDialog() +{ + CResizableDialog::OnInitDialog(); + + SetIcon(m_hIcon, TRUE); // Set big icon + SetIcon(m_hIcon, FALSE); // Set small icon + + // TODO: Add extra initialization here + AddAnchor(IDOK, TOP_RIGHT); + AddAnchor(IDCANCEL, TOP_RIGHT); + AddAnchor(IDC_COMBO1, TOP_LEFT, TOP_RIGHT); + AddAnchor(IDC_EDIT1, TOP_LEFT, BOTTOM_RIGHT); + + return TRUE; // return TRUE unless you set the focus to a control +} + + +int CDemoDlg::OnCreate(LPCREATESTRUCT lpCreateStruct) +{ + ModifyStyleEx(0, WS_EX_LAYOUTRTL); + + if (CResizableDialog::OnCreate(lpCreateStruct) == -1) + return -1; + + return 0; +} diff --git a/ResizableComboBox/DemoDlg.h b/ResizableComboBox/DemoDlg.h new file mode 100644 index 0000000..8264b6f --- /dev/null +++ b/ResizableComboBox/DemoDlg.h @@ -0,0 +1,50 @@ +// DemoDlg.h : header file +// + +#if !defined(AFX_TESTCOMBOBOXDLG_H__CA544F9E_0749_4281_8E00_EED3872CDCAC__INCLUDED_) +#define AFX_TESTCOMBOBOXDLG_H__CA544F9E_0749_4281_8E00_EED3872CDCAC__INCLUDED_ + +#include "ResizableComboBox.h" +#include "ResizableDialog.h" + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +///////////////////////////////////////////////////////////////////////////// +// CDemoDlg dialog + +class CDemoDlg : public CResizableDialog +{ +// Construction +public: + CDemoDlg(CWnd* pParent = NULL); // standard constructor + +// Dialog Data + //{{AFX_DATA(CDemoDlg) + enum { IDD = IDD_TESTCOMBOBOX_DIALOG }; + CResizableComboBox m_ctrlCombo1; + //}}AFX_DATA + + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CDemoDlg) + protected: + virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support + //}}AFX_VIRTUAL + +// Implementation +protected: + HICON m_hIcon; + + // Generated message map functions + //{{AFX_MSG(CDemoDlg) + virtual BOOL OnInitDialog(); + 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_TESTCOMBOBOXDLG_H__CA544F9E_0749_4281_8E00_EED3872CDCAC__INCLUDED_) diff --git a/ResizableComboBox/Resource.h b/ResizableComboBox/Resource.h new file mode 100644 index 0000000..e180841 --- /dev/null +++ b/ResizableComboBox/Resource.h @@ -0,0 +1,20 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Developer Studio generated include file. +// Used by Demo.rc +// +#define IDD_TESTCOMBOBOX_DIALOG 102 +#define IDR_MAINFRAME 128 +#define IDC_COMBO1 1000 +#define IDC_EDIT1 1001 +#define IDC_EDIT2 1002 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1003 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/ResizableComboBox/StdAfx.cpp b/ResizableComboBox/StdAfx.cpp new file mode 100644 index 0000000..1e015ff --- /dev/null +++ b/ResizableComboBox/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/ResizableComboBox/StdAfx.h b/ResizableComboBox/StdAfx.h new file mode 100644 index 0000000..58e536b --- /dev/null +++ b/ResizableComboBox/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__F6DCB1E4_4878_43E3_8B61_F929F62F7A6F__INCLUDED_) +#define AFX_STDAFX_H__F6DCB1E4_4878_43E3_8B61_F929F62F7A6F__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__F6DCB1E4_4878_43E3_8B61_F929F62F7A6F__INCLUDED_) diff --git a/ResizableComboBox/res/Demo.ico b/ResizableComboBox/res/Demo.ico new file mode 100644 index 0000000..7eef0bc Binary files /dev/null and b/ResizableComboBox/res/Demo.ico differ diff --git a/ResizableComboBox/res/Demo.rc2 b/ResizableComboBox/res/Demo.rc2 new file mode 100644 index 0000000..981d38d --- /dev/null +++ b/ResizableComboBox/res/Demo.rc2 @@ -0,0 +1,13 @@ +// +// TESTCOMBOBOX.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... + +/////////////////////////////////////////////////////////////////////////////