Skip to content

Commit 75fe4f7

Browse files
committed
초기 커밋.
1 parent 1dacebb commit 75fe4f7

15 files changed

+820
-0
lines changed

MFCApplication1.sln

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.26014.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MFCApplication1", "MFCApplication1\MFCApplication1.vcxproj", "{0D37C522-A16E-4E8A-927C-353B543D3323}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|x64 = Debug|x64
11+
Debug|x86 = Debug|x86
12+
Release|x64 = Release|x64
13+
Release|x86 = Release|x86
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{0D37C522-A16E-4E8A-927C-353B543D3323}.Debug|x64.ActiveCfg = Debug|x64
17+
{0D37C522-A16E-4E8A-927C-353B543D3323}.Debug|x64.Build.0 = Debug|x64
18+
{0D37C522-A16E-4E8A-927C-353B543D3323}.Debug|x86.ActiveCfg = Debug|Win32
19+
{0D37C522-A16E-4E8A-927C-353B543D3323}.Debug|x86.Build.0 = Debug|Win32
20+
{0D37C522-A16E-4E8A-927C-353B543D3323}.Release|x64.ActiveCfg = Release|x64
21+
{0D37C522-A16E-4E8A-927C-353B543D3323}.Release|x64.Build.0 = Release|x64
22+
{0D37C522-A16E-4E8A-927C-353B543D3323}.Release|x86.ActiveCfg = Release|Win32
23+
{0D37C522-A16E-4E8A-927C-353B543D3323}.Release|x86.Build.0 = Release|Win32
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
EndGlobal
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
2+
// MFCApplication1.cpp : 응용 프로그램에 대한 클래스 동작을 정의합니다.
3+
//
4+
5+
#include "stdafx.h"
6+
#include "MFCApplication1.h"
7+
#include "MFCApplication1Dlg.h"
8+
9+
#ifdef _DEBUG
10+
#define new DEBUG_NEW
11+
#endif
12+
13+
14+
// CMFCApplication1App
15+
16+
BEGIN_MESSAGE_MAP(CMFCApplication1App, CWinApp)
17+
ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
18+
END_MESSAGE_MAP()
19+
20+
21+
// CMFCApplication1App 생성
22+
23+
CMFCApplication1App::CMFCApplication1App()
24+
{
25+
// 다시 시작 관리자 지원
26+
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;
27+
28+
// TODO: 여기에 생성 코드를 추가합니다.
29+
// InitInstance에 모든 중요한 초기화 작업을 배치합니다.
30+
}
31+
32+
33+
// 유일한 CMFCApplication1App 개체입니다.
34+
35+
CMFCApplication1App theApp;
36+
37+
38+
// CMFCApplication1App 초기화
39+
40+
BOOL CMFCApplication1App::InitInstance()
41+
{
42+
// 응용 프로그램 매니페스트가 ComCtl32.dll 버전 6 이상을 사용하여 비주얼 스타일을
43+
// 사용하도록 지정하는 경우, Windows XP 상에서 반드시 InitCommonControlsEx()가 필요합니다.
44+
// InitCommonControlsEx()를 사용하지 않으면 창을 만들 수 없습니다.
45+
INITCOMMONCONTROLSEX InitCtrls;
46+
InitCtrls.dwSize = sizeof(InitCtrls);
47+
// 응용 프로그램에서 사용할 모든 공용 컨트롤 클래스를 포함하도록
48+
// 이 항목을 설정하십시오.
49+
InitCtrls.dwICC = ICC_WIN95_CLASSES;
50+
InitCommonControlsEx(&InitCtrls);
51+
52+
CWinApp::InitInstance();
53+
54+
55+
AfxEnableControlContainer();
56+
57+
// 대화 상자에 셸 트리 뷰 또는
58+
// 셸 목록 뷰 컨트롤이 포함되어 있는 경우 셸 관리자를 만듭니다.
59+
CShellManager *pShellManager = new CShellManager;
60+
61+
// MFC 컨트롤의 테마를 사용하기 위해 "Windows 원형" 비주얼 관리자 활성화
62+
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows));
63+
64+
// 표준 초기화
65+
// 이들 기능을 사용하지 않고 최종 실행 파일의 크기를 줄이려면
66+
// 아래에서 필요 없는 특정 초기화
67+
// 루틴을 제거해야 합니다.
68+
// 해당 설정이 저장된 레지스트리 키를 변경하십시오.
69+
// TODO: 이 문자열을 회사 또는 조직의 이름과 같은
70+
// 적절한 내용으로 수정해야 합니다.
71+
SetRegistryKey(_T("로컬 응용 프로그램 마법사에서 생성된 응용 프로그램"));
72+
73+
CMFCApplication1Dlg dlg;
74+
m_pMainWnd = &dlg;
75+
INT_PTR nResponse = dlg.DoModal();
76+
if (nResponse == IDOK)
77+
{
78+
// TODO: 여기에 [확인]을 클릭하여 대화 상자가 없어질 때 처리할
79+
// 코드를 배치합니다.
80+
}
81+
else if (nResponse == IDCANCEL)
82+
{
83+
// TODO: 여기에 [취소]를 클릭하여 대화 상자가 없어질 때 처리할
84+
// 코드를 배치합니다.
85+
}
86+
else if (nResponse == -1)
87+
{
88+
TRACE(traceAppMsg, 0, "경고: 대화 상자를 만들지 못했으므로 응용 프로그램이 예기치 않게 종료됩니다.\n");
89+
TRACE(traceAppMsg, 0, "경고: 대화 상자에서 MFC 컨트롤을 사용하는 경우 #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS를 수행할 수 없습니다.\n");
90+
}
91+
92+
// 위에서 만든 셸 관리자를 삭제합니다.
93+
if (pShellManager != NULL)
94+
{
95+
delete pShellManager;
96+
}
97+
98+
#if !defined(_AFXDLL) && !defined(_AFX_NO_MFC_CONTROLS_IN_DIALOGS)
99+
ControlBarCleanUp();
100+
#endif
101+
102+
// 대화 상자가 닫혔으므로 응용 프로그램의 메시지 펌프를 시작하지 않고 응용 프로그램을 끝낼 수 있도록 FALSE를
103+
// 반환합니다.
104+
return FALSE;
105+
}
106+

MFCApplication1/MFCApplication1.h

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
// MFCApplication1.h : PROJECT_NAME 응용 프로그램에 대한 주 헤더 파일입니다.
3+
//
4+
5+
#pragma once
6+
7+
#ifndef __AFXWIN_H__
8+
#error "PCH에 대해 이 파일을 포함하기 전에 'stdafx.h'를 포함합니다."
9+
#endif
10+
11+
#include "resource.h" // 주 기호입니다.
12+
13+
14+
// CMFCApplication1App:
15+
// 이 클래스의 구현에 대해서는 MFCApplication1.cpp을 참조하십시오.
16+
//
17+
18+
class CMFCApplication1App : public CWinApp
19+
{
20+
public:
21+
CMFCApplication1App();
22+
23+
// 재정의입니다.
24+
public:
25+
virtual BOOL InitInstance();
26+
27+
// 구현입니다.
28+
29+
DECLARE_MESSAGE_MAP()
30+
};
31+
32+
extern CMFCApplication1App theApp;

MFCApplication1/MFCApplication1.rc

12.7 KB
Binary file not shown.
Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,216 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<PropertyGroup Label="Globals">
22+
<ProjectGuid>{0D37C522-A16E-4E8A-927C-353B543D3323}</ProjectGuid>
23+
<RootNamespace>MFCApplication1</RootNamespace>
24+
<WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
25+
<Keyword>MFCProj</Keyword>
26+
</PropertyGroup>
27+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
29+
<ConfigurationType>Application</ConfigurationType>
30+
<UseDebugLibraries>true</UseDebugLibraries>
31+
<PlatformToolset>v141</PlatformToolset>
32+
<CharacterSet>Unicode</CharacterSet>
33+
<UseOfMfc>Dynamic</UseOfMfc>
34+
</PropertyGroup>
35+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
36+
<ConfigurationType>Application</ConfigurationType>
37+
<UseDebugLibraries>false</UseDebugLibraries>
38+
<PlatformToolset>v141</PlatformToolset>
39+
<WholeProgramOptimization>true</WholeProgramOptimization>
40+
<CharacterSet>Unicode</CharacterSet>
41+
<UseOfMfc>Dynamic</UseOfMfc>
42+
</PropertyGroup>
43+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
44+
<ConfigurationType>Application</ConfigurationType>
45+
<UseDebugLibraries>true</UseDebugLibraries>
46+
<PlatformToolset>v141</PlatformToolset>
47+
<CharacterSet>Unicode</CharacterSet>
48+
<UseOfMfc>Dynamic</UseOfMfc>
49+
</PropertyGroup>
50+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
51+
<ConfigurationType>Application</ConfigurationType>
52+
<UseDebugLibraries>false</UseDebugLibraries>
53+
<PlatformToolset>v141</PlatformToolset>
54+
<WholeProgramOptimization>true</WholeProgramOptimization>
55+
<CharacterSet>Unicode</CharacterSet>
56+
<UseOfMfc>Dynamic</UseOfMfc>
57+
</PropertyGroup>
58+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
59+
<ImportGroup Label="ExtensionSettings">
60+
</ImportGroup>
61+
<ImportGroup Label="Shared">
62+
</ImportGroup>
63+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
64+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65+
</ImportGroup>
66+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
67+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68+
</ImportGroup>
69+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
70+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
71+
</ImportGroup>
72+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
73+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
74+
</ImportGroup>
75+
<PropertyGroup Label="UserMacros" />
76+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
77+
<LinkIncremental>true</LinkIncremental>
78+
</PropertyGroup>
79+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
80+
<LinkIncremental>true</LinkIncremental>
81+
</PropertyGroup>
82+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
83+
<LinkIncremental>false</LinkIncremental>
84+
</PropertyGroup>
85+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
86+
<LinkIncremental>false</LinkIncremental>
87+
</PropertyGroup>
88+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
89+
<ClCompile>
90+
<PrecompiledHeader>Use</PrecompiledHeader>
91+
<WarningLevel>Level3</WarningLevel>
92+
<Optimization>Disabled</Optimization>
93+
<PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
94+
<SDLCheck>true</SDLCheck>
95+
</ClCompile>
96+
<Link>
97+
<SubSystem>Windows</SubSystem>
98+
</Link>
99+
<Midl>
100+
<MkTypLibCompatible>false</MkTypLibCompatible>
101+
<ValidateAllParameters>true</ValidateAllParameters>
102+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
103+
</Midl>
104+
<ResourceCompile>
105+
<Culture>0x0412</Culture>
106+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
107+
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
108+
</ResourceCompile>
109+
</ItemDefinitionGroup>
110+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
111+
<ClCompile>
112+
<PrecompiledHeader>Use</PrecompiledHeader>
113+
<WarningLevel>Level3</WarningLevel>
114+
<Optimization>Disabled</Optimization>
115+
<PreprocessorDefinitions>_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
116+
<SDLCheck>true</SDLCheck>
117+
</ClCompile>
118+
<Link>
119+
<SubSystem>Windows</SubSystem>
120+
</Link>
121+
<Midl>
122+
<MkTypLibCompatible>false</MkTypLibCompatible>
123+
<ValidateAllParameters>true</ValidateAllParameters>
124+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
125+
</Midl>
126+
<ResourceCompile>
127+
<Culture>0x0412</Culture>
128+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
129+
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
130+
</ResourceCompile>
131+
</ItemDefinitionGroup>
132+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
133+
<ClCompile>
134+
<WarningLevel>Level3</WarningLevel>
135+
<PrecompiledHeader>Use</PrecompiledHeader>
136+
<Optimization>MaxSpeed</Optimization>
137+
<FunctionLevelLinking>true</FunctionLevelLinking>
138+
<IntrinsicFunctions>true</IntrinsicFunctions>
139+
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
140+
<SDLCheck>true</SDLCheck>
141+
</ClCompile>
142+
<Link>
143+
<SubSystem>Windows</SubSystem>
144+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
145+
<OptimizeReferences>true</OptimizeReferences>
146+
</Link>
147+
<Midl>
148+
<MkTypLibCompatible>false</MkTypLibCompatible>
149+
<ValidateAllParameters>true</ValidateAllParameters>
150+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
151+
</Midl>
152+
<ResourceCompile>
153+
<Culture>0x0412</Culture>
154+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
155+
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
156+
</ResourceCompile>
157+
</ItemDefinitionGroup>
158+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
159+
<ClCompile>
160+
<WarningLevel>Level3</WarningLevel>
161+
<PrecompiledHeader>Use</PrecompiledHeader>
162+
<Optimization>MaxSpeed</Optimization>
163+
<FunctionLevelLinking>true</FunctionLevelLinking>
164+
<IntrinsicFunctions>true</IntrinsicFunctions>
165+
<PreprocessorDefinitions>_WINDOWS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
166+
<SDLCheck>true</SDLCheck>
167+
</ClCompile>
168+
<Link>
169+
<SubSystem>Windows</SubSystem>
170+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
171+
<OptimizeReferences>true</OptimizeReferences>
172+
</Link>
173+
<Midl>
174+
<MkTypLibCompatible>false</MkTypLibCompatible>
175+
<ValidateAllParameters>true</ValidateAllParameters>
176+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
177+
</Midl>
178+
<ResourceCompile>
179+
<Culture>0x0412</Culture>
180+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
181+
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
182+
</ResourceCompile>
183+
</ItemDefinitionGroup>
184+
<ItemGroup>
185+
<Text Include="ReadMe.txt" />
186+
</ItemGroup>
187+
<ItemGroup>
188+
<ClInclude Include="MFCApplication1.h" />
189+
<ClInclude Include="MFCApplication1Dlg.h" />
190+
<ClInclude Include="Resource.h" />
191+
<ClInclude Include="stdafx.h" />
192+
<ClInclude Include="targetver.h" />
193+
</ItemGroup>
194+
<ItemGroup>
195+
<ClCompile Include="MFCApplication1.cpp" />
196+
<ClCompile Include="MFCApplication1Dlg.cpp" />
197+
<ClCompile Include="stdafx.cpp">
198+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
199+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
200+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
201+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
202+
</ClCompile>
203+
</ItemGroup>
204+
<ItemGroup>
205+
<ResourceCompile Include="MFCApplication1.rc" />
206+
</ItemGroup>
207+
<ItemGroup>
208+
<None Include="res\MFCApplication1.rc2" />
209+
</ItemGroup>
210+
<ItemGroup>
211+
<Image Include="res\MFCApplication1.ico" />
212+
</ItemGroup>
213+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
214+
<ImportGroup Label="ExtensionTargets">
215+
</ImportGroup>
216+
</Project>

0 commit comments

Comments
 (0)