-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
916 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
|
||
// MFCApplication3.cpp: 애플리케이션에 대한 클래스 동작을 정의합니다. | ||
// | ||
|
||
#include "pch.h" | ||
#include "framework.h" | ||
#include "MFCApplication3.h" | ||
#include "MFCApplication3Dlg.h" | ||
|
||
#ifdef _DEBUG | ||
#define new DEBUG_NEW | ||
#endif | ||
|
||
|
||
// CMFCApplication3App | ||
|
||
BEGIN_MESSAGE_MAP(CMFCApplication3App, CWinApp) | ||
ON_COMMAND(ID_HELP, &CWinApp::OnHelp) | ||
END_MESSAGE_MAP() | ||
|
||
|
||
// CMFCApplication3App 생성 | ||
|
||
CMFCApplication3App::CMFCApplication3App() | ||
{ | ||
// 다시 시작 관리자 지원 | ||
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART; | ||
|
||
// TODO: 여기에 생성 코드를 추가합니다. | ||
// InitInstance에 모든 중요한 초기화 작업을 배치합니다. | ||
} | ||
|
||
|
||
// 유일한 CMFCApplication3App 개체입니다. | ||
|
||
CMFCApplication3App theApp; | ||
|
||
|
||
// CMFCApplication3App 초기화 | ||
|
||
BOOL CMFCApplication3App::InitInstance() | ||
{ | ||
// 애플리케이션 매니페스트가 ComCtl32.dll 버전 6 이상을 사용하여 비주얼 스타일을 | ||
// 사용하도록 지정하는 경우, Windows XP 상에서 반드시 InitCommonControlsEx()가 필요합니다. | ||
// InitCommonControlsEx()를 사용하지 않으면 창을 만들 수 없습니다. | ||
INITCOMMONCONTROLSEX InitCtrls; | ||
InitCtrls.dwSize = sizeof(InitCtrls); | ||
// 응용 프로그램에서 사용할 모든 공용 컨트롤 클래스를 포함하도록 | ||
// 이 항목을 설정하십시오. | ||
InitCtrls.dwICC = ICC_WIN95_CLASSES; | ||
InitCommonControlsEx(&InitCtrls); | ||
|
||
CWinApp::InitInstance(); | ||
|
||
|
||
AfxEnableControlContainer(); | ||
|
||
// 대화 상자에 셸 트리 뷰 또는 | ||
// 셸 목록 뷰 컨트롤이 포함되어 있는 경우 셸 관리자를 만듭니다. | ||
CShellManager *pShellManager = new CShellManager; | ||
|
||
// MFC 컨트롤의 테마를 사용하기 위해 "Windows 원형" 비주얼 관리자 활성화 | ||
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows)); | ||
|
||
// 표준 초기화 | ||
// 이들 기능을 사용하지 않고 최종 실행 파일의 크기를 줄이려면 | ||
// 아래에서 필요 없는 특정 초기화 | ||
// 루틴을 제거해야 합니다. | ||
// 해당 설정이 저장된 레지스트리 키를 변경하십시오. | ||
// TODO: 이 문자열을 회사 또는 조직의 이름과 같은 | ||
// 적절한 내용으로 수정해야 합니다. | ||
SetRegistryKey(_T("로컬 애플리케이션 마법사에서 생성된 애플리케이션")); | ||
|
||
CMFCApplication3Dlg dlg; | ||
m_pMainWnd = &dlg; | ||
INT_PTR nResponse = dlg.DoModal(); | ||
if (nResponse == IDOK) | ||
{ | ||
// TODO: 여기에 [확인]을 클릭하여 대화 상자가 없어질 때 처리할 | ||
// 코드를 배치합니다. | ||
} | ||
else if (nResponse == IDCANCEL) | ||
{ | ||
// TODO: 여기에 [취소]를 클릭하여 대화 상자가 없어질 때 처리할 | ||
// 코드를 배치합니다. | ||
} | ||
else if (nResponse == -1) | ||
{ | ||
TRACE(traceAppMsg, 0, "경고: 대화 상자를 만들지 못했으므로 애플리케이션이 예기치 않게 종료됩니다.\n"); | ||
TRACE(traceAppMsg, 0, "경고: 대화 상자에서 MFC 컨트롤을 사용하는 경우 #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS를 수행할 수 없습니다.\n"); | ||
} | ||
|
||
// 위에서 만든 셸 관리자를 삭제합니다. | ||
if (pShellManager != nullptr) | ||
{ | ||
delete pShellManager; | ||
} | ||
|
||
#if !defined(_AFXDLL) && !defined(_AFX_NO_MFC_CONTROLS_IN_DIALOGS) | ||
ControlBarCleanUp(); | ||
#endif | ||
|
||
// 대화 상자가 닫혔으므로 응용 프로그램의 메시지 펌프를 시작하지 않고 응용 프로그램을 끝낼 수 있도록 FALSE를 | ||
// 반환합니다. | ||
return FALSE; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
// MFCApplication3.h: PROJECT_NAME 애플리케이션에 대한 주 헤더 파일입니다. | ||
// | ||
|
||
#pragma once | ||
|
||
#ifndef __AFXWIN_H__ | ||
#error "PCH에 대해 이 파일을 포함하기 전에 'pch.h'를 포함합니다." | ||
#endif | ||
|
||
#include "resource.h" // 주 기호입니다. | ||
|
||
|
||
// CMFCApplication3App: | ||
// 이 클래스의 구현에 대해서는 MFCApplication3.cpp을(를) 참조하세요. | ||
// | ||
|
||
class CMFCApplication3App : public CWinApp | ||
{ | ||
public: | ||
CMFCApplication3App(); | ||
|
||
// 재정의입니다. | ||
public: | ||
virtual BOOL InitInstance(); | ||
|
||
// 구현입니다. | ||
|
||
DECLARE_MESSAGE_MAP() | ||
}; | ||
|
||
extern CMFCApplication3App theApp; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.6.33815.320 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MFCApplication3", "MFCApplication3.vcxproj", "{7537174C-6C08-4424-82FB-3FC1C445EAC5}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|x64 = Debug|x64 | ||
Debug|x86 = Debug|x86 | ||
Release|x64 = Release|x64 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{7537174C-6C08-4424-82FB-3FC1C445EAC5}.Debug|x64.ActiveCfg = Debug|x64 | ||
{7537174C-6C08-4424-82FB-3FC1C445EAC5}.Debug|x64.Build.0 = Debug|x64 | ||
{7537174C-6C08-4424-82FB-3FC1C445EAC5}.Debug|x86.ActiveCfg = Debug|Win32 | ||
{7537174C-6C08-4424-82FB-3FC1C445EAC5}.Debug|x86.Build.0 = Debug|Win32 | ||
{7537174C-6C08-4424-82FB-3FC1C445EAC5}.Release|x64.ActiveCfg = Release|x64 | ||
{7537174C-6C08-4424-82FB-3FC1C445EAC5}.Release|x64.Build.0 = Release|x64 | ||
{7537174C-6C08-4424-82FB-3FC1C445EAC5}.Release|x86.ActiveCfg = Release|Win32 | ||
{7537174C-6C08-4424-82FB-3FC1C445EAC5}.Release|x86.Build.0 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {0F2A59B4-7569-4CCD-8B6D-81465938712C} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,215 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup Label="ProjectConfigurations"> | ||
<ProjectConfiguration Include="Debug|Win32"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>Win32</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|Win32"> | ||
<Configuration>Release</Configuration> | ||
<Platform>Win32</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Debug|x64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<PropertyGroup Label="Globals"> | ||
<VCProjectVersion>17.0</VCProjectVersion> | ||
<ProjectGuid>{7537174C-6C08-4424-82FB-3FC1C445EAC5}</ProjectGuid> | ||
<Keyword>MFCProj</Keyword> | ||
<RootNamespace>MFCApplication3</RootNamespace> | ||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<PlatformToolset>v143</PlatformToolset> | ||
<CharacterSet>Unicode</CharacterSet> | ||
<UseOfMfc>Dynamic</UseOfMfc> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<PlatformToolset>v143</PlatformToolset> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
<CharacterSet>Unicode</CharacterSet> | ||
<UseOfMfc>Dynamic</UseOfMfc> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<PlatformToolset>v143</PlatformToolset> | ||
<CharacterSet>Unicode</CharacterSet> | ||
<UseOfMfc>Dynamic</UseOfMfc> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<PlatformToolset>v143</PlatformToolset> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
<CharacterSet>Unicode</CharacterSet> | ||
<UseOfMfc>Dynamic</UseOfMfc> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
<ImportGroup Label="ExtensionSettings"> | ||
</ImportGroup> | ||
<ImportGroup Label="Shared"> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<PropertyGroup Label="UserMacros" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<LinkIncremental>true</LinkIncremental> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<LinkIncremental>true</LinkIncremental> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<LinkIncremental>false</LinkIncremental> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<LinkIncremental>false</LinkIncremental> | ||
</PropertyGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<ClCompile> | ||
<PrecompiledHeader>Use</PrecompiledHeader> | ||
<WarningLevel>Level3</WarningLevel> | ||
<SDLCheck>true</SDLCheck> | ||
<PreprocessorDefinitions>_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Windows</SubSystem> | ||
</Link> | ||
<Midl> | ||
<MkTypLibCompatible>false</MkTypLibCompatible> | ||
<ValidateAllParameters>true</ValidateAllParameters> | ||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
</Midl> | ||
<ResourceCompile> | ||
<Culture>0x0412</Culture> | ||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
</ResourceCompile> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<ClCompile> | ||
<PrecompiledHeader>Use</PrecompiledHeader> | ||
<WarningLevel>Level3</WarningLevel> | ||
<SDLCheck>true</SDLCheck> | ||
<PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Windows</SubSystem> | ||
</Link> | ||
<Midl> | ||
<MkTypLibCompatible>false</MkTypLibCompatible> | ||
<ValidateAllParameters>true</ValidateAllParameters> | ||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
</Midl> | ||
<ResourceCompile> | ||
<Culture>0x0412</Culture> | ||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
</ResourceCompile> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<ClCompile> | ||
<PrecompiledHeader>Use</PrecompiledHeader> | ||
<WarningLevel>Level3</WarningLevel> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<SDLCheck>true</SDLCheck> | ||
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Windows</SubSystem> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
</Link> | ||
<Midl> | ||
<MkTypLibCompatible>false</MkTypLibCompatible> | ||
<ValidateAllParameters>true</ValidateAllParameters> | ||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
</Midl> | ||
<ResourceCompile> | ||
<Culture>0x0412</Culture> | ||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
</ResourceCompile> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<ClCompile> | ||
<PrecompiledHeader>Use</PrecompiledHeader> | ||
<WarningLevel>Level3</WarningLevel> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<SDLCheck>true</SDLCheck> | ||
<PreprocessorDefinitions>_WINDOWS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Windows</SubSystem> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
</Link> | ||
<Midl> | ||
<MkTypLibCompatible>false</MkTypLibCompatible> | ||
<ValidateAllParameters>true</ValidateAllParameters> | ||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
</Midl> | ||
<ResourceCompile> | ||
<Culture>0x0412</Culture> | ||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
</ResourceCompile> | ||
</ItemDefinitionGroup> | ||
<ItemGroup> | ||
<ClInclude Include="framework.h" /> | ||
<ClInclude Include="MFCApplication3.h" /> | ||
<ClInclude Include="MFCApplication3Dlg.h" /> | ||
<ClInclude Include="pch.h" /> | ||
<ClInclude Include="Resource.h" /> | ||
<ClInclude Include="targetver.h" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClCompile Include="MFCApplication3.cpp" /> | ||
<ClCompile Include="MFCApplication3Dlg.cpp" /> | ||
<ClCompile Include="pch.cpp"> | ||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader> | ||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader> | ||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader> | ||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader> | ||
</ClCompile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ResourceCompile Include="MFCApplication3.rc" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="res\MFCApplication3.rc2" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Image Include="res\MFCApplication3.ico" /> | ||
</ItemGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
<ImportGroup Label="ExtensionTargets"> | ||
</ImportGroup> | ||
</Project> |
Oops, something went wrong.