forked from qdtroy/DuiLib_Ultimate
-
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.
1. 增加控件UIAnimation,UIAnimationTabLayout 2. 增加“视频广告过滤大师安装向导”Demo
- Loading branch information
charliewin
committed
Jun 28, 2015
1 parent
076206e
commit bc572ad
Showing
37 changed files
with
1,229 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -12,4 +12,6 @@ | |
*.log | ||
*.idb | ||
*.opensdf | ||
*.lastbuildstate | ||
*.lastbuildstate | ||
*.exe | ||
*.dll |
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,65 @@ | ||
// ADMonSetup.cpp : Defines the entry point for the application. | ||
// | ||
|
||
#include "stdafx.h" | ||
#include "ADMonSetup.h" | ||
#include "MainWnd.h" | ||
|
||
//#include <GdiPlus.h> | ||
//#pragma comment( lib, "GdiPlus.lib" ) | ||
//using namespace Gdiplus; | ||
|
||
//---------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
//程序入口处调用该函数进行内存泄露检测 | ||
//程序退出前调用_CrtDumpMemoryLeaks();函数可查看内存泄露的ID号,该ID号可作为Breakpoint的参数,运行时将会在相应位置自动断点 | ||
inline void EnableMemLeakCheck(int Breakpoint = 0){ | ||
_CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF); | ||
if(Breakpoint) | ||
_CrtSetBreakAlloc ( 1912 ); | ||
} | ||
|
||
#ifdef _DEBUG | ||
#define new new(_NORMAL_BLOCK, __FILE__, __LINE__) | ||
#endif | ||
#define _CRT_SECURE_NO_DEPRECATE | ||
|
||
//---------------------------------------------------------------------------------------------------------------------------------------- | ||
|
||
int APIENTRY _tWinMain(HINSTANCE hInstance, | ||
HINSTANCE hPrevInstance, | ||
LPTSTR lpCmdLine, | ||
int nCmdShow) | ||
{ | ||
UNREFERENCED_PARAMETER(hPrevInstance); | ||
UNREFERENCED_PARAMETER(lpCmdLine); | ||
|
||
EnableMemLeakCheck(); | ||
CPaintManagerUI::SetInstance(hInstance); | ||
CPaintManagerUI::SetResourcePath(CPaintManagerUI::GetInstancePath() + _T("skin\\ADMonSetup")); | ||
|
||
//GdiplusStartupInput gdiplusStartupInput; | ||
//ULONG_PTR gdiplusToken; | ||
//GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); | ||
|
||
HRESULT Hr = ::CoInitialize(NULL); | ||
if( FAILED(Hr) ) return 0; | ||
|
||
if( ::LoadLibrary(_T("d3d9.dll")) == NULL ) | ||
::MessageBox(NULL, _T("加载 d3d9.dll 失败,一些特效可能无法显示!"), _T("信息提示"),MB_OK|MB_ICONWARNING); | ||
|
||
CMainWnd* pFrame = new CMainWnd(); | ||
if(pFrame == NULL) | ||
return 0; | ||
|
||
pFrame->Create(NULL,_T("视频广告过滤大师安装向导"), UI_WNDSTYLE_FRAME, 0L, 0, 0, 900, 600); | ||
pFrame->CenterWindow(); | ||
::ShowWindow(*pFrame, SW_SHOW); | ||
CPaintManagerUI::MessageLoop(); | ||
|
||
::CoUninitialize(); | ||
//GdiplusShutdown(gdiplusToken); | ||
|
||
_CrtDumpMemoryLeaks(); | ||
return 0; | ||
} |
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,3 @@ | ||
#pragma once | ||
|
||
#include "resource.h" |
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,150 @@ | ||
//Microsoft Visual C++ generated resource script. | ||
// | ||
#include "resource.h" | ||
|
||
#define APSTUDIO_READONLY_SYMBOLS | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Generated from the TEXTINCLUDE 2 resource. | ||
// | ||
#ifndef APSTUDIO_INVOKED | ||
#include "targetver.h" | ||
#endif | ||
#define APSTUDIO_HIDDEN_SYMBOLS | ||
#include "windows.h" | ||
#undef APSTUDIO_HIDDEN_SYMBOLS | ||
///////////////////////////////////////////////////////////////////////////// | ||
#undef APSTUDIO_READONLY_SYMBOLS | ||
|
||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) | ||
LANGUAGE 9, 1 | ||
#pragma code_page(936) | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Icon | ||
// | ||
|
||
// Icon with lowest ID value placed first to ensure application icon | ||
// remains consistent on all systems. | ||
|
||
IDI_ADMONSETUP ICON "ADMonSetup.ico" | ||
IDI_SMALL ICON "small.ico" | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Menu | ||
// | ||
|
||
IDC_ADMONSETUP MENU | ||
BEGIN | ||
POPUP "&File" | ||
BEGIN | ||
MENUITEM "E&xit", IDM_EXIT | ||
END | ||
POPUP "&Help" | ||
BEGIN | ||
MENUITEM "&About ...", IDM_ABOUT | ||
END | ||
END | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Accelerator | ||
// | ||
|
||
IDC_ADMONSETUP ACCELERATORS | ||
BEGIN | ||
"?", IDM_ABOUT, ASCII, ALT | ||
"/", IDM_ABOUT, ASCII, ALT | ||
END | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Dialog | ||
// | ||
|
||
IDD_ABOUTBOX DIALOGEX 0, 0, 170, 62 | ||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU | ||
CAPTION "About ADMonSetup" | ||
FONT 8, "MS Shell Dlg" | ||
BEGIN | ||
ICON IDR_MAINFRAME,IDC_STATIC,14,14,21,20 | ||
LTEXT "ADMonSetup, Version 1.0",IDC_STATIC,42,14,114,8,SS_NOPREFIX | ||
LTEXT "Copyright (C) 2015",IDC_STATIC,42,26,114,8 | ||
DEFPUSHBUTTON "OK",IDOK,113,41,50,14,WS_GROUP | ||
END | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// DESIGNINFO | ||
// | ||
|
||
#ifdef APSTUDIO_INVOKED | ||
GUIDELINES DESIGNINFO | ||
BEGIN | ||
IDD_ABOUTBOX, DIALOG | ||
BEGIN | ||
LEFTMARGIN, 7 | ||
RIGHTMARGIN, 163 | ||
TOPMARGIN, 7 | ||
BOTTOMMARGIN, 55 | ||
END | ||
END | ||
#endif // APSTUDIO_INVOKED | ||
|
||
#ifdef APSTUDIO_INVOKED | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// TEXTINCLUDE | ||
// | ||
1 TEXTINCLUDE | ||
BEGIN | ||
"resource.h\0" | ||
END | ||
|
||
2 TEXTINCLUDE | ||
BEGIN | ||
"#ifndef APSTUDIO_INVOKED\r\n" | ||
"#include ""targetver.h""\r\n" | ||
"#endif\r\n" | ||
"#define APSTUDIO_HIDDEN_SYMBOLS\r\n" | ||
"#include ""windows.h""\r\n" | ||
"#undef APSTUDIO_HIDDEN_SYMBOLS\r\n" | ||
"\0" | ||
END | ||
|
||
3 TEXTINCLUDE | ||
BEGIN | ||
"\r\n" | ||
"\0" | ||
END | ||
|
||
#endif // APSTUDIO_INVOKED | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// String Table | ||
// | ||
|
||
STRINGTABLE | ||
BEGIN | ||
IDC_ADMONSETUP "ADMONSETUP" | ||
IDS_APP_TITLE "ADMonSetup" | ||
END | ||
|
||
#endif | ||
///////////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
|
||
#ifndef APSTUDIO_INVOKED | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Generated from the TEXTINCLUDE 3 resource. | ||
// | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
#endif // not APSTUDIO_INVOKED |
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,118 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="4.0" 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> | ||
</ItemGroup> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>{46E0954B-D9BE-48D6-8573-10B4F41E0171}</ProjectGuid> | ||
<RootNamespace>ADMonSetup</RootNamespace> | ||
<Keyword>Win32Proj</Keyword> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<CharacterSet>Unicode</CharacterSet> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<CharacterSet>Unicode</CharacterSet> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
<ImportGroup Label="ExtensionSettings"> | ||
</ImportGroup> | ||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<PropertyGroup Label="UserMacros" /> | ||
<PropertyGroup> | ||
<_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion> | ||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)Bin\</OutDir> | ||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir> | ||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental> | ||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)Bin\</OutDir> | ||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir> | ||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental> | ||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet> | ||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" /> | ||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" /> | ||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet> | ||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" /> | ||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" /> | ||
</PropertyGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<ClCompile> | ||
<Optimization>Disabled</Optimization> | ||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<MinimalRebuild>true</MinimalRebuild> | ||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> | ||
<PrecompiledHeader>Use</PrecompiledHeader> | ||
<WarningLevel>Level3</WarningLevel> | ||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat> | ||
</ClCompile> | ||
<Link> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
<SubSystem>Windows</SubSystem> | ||
<TargetMachine>MachineX86</TargetMachine> | ||
</Link> | ||
<Manifest> | ||
<AdditionalManifestFiles>compatibility.manifest</AdditionalManifestFiles> | ||
</Manifest> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<ClCompile> | ||
<Optimization>MaxSpeed</Optimization> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<PrecompiledHeader>Use</PrecompiledHeader> | ||
<WarningLevel>Level3</WarningLevel> | ||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat> | ||
</ClCompile> | ||
<Link> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
<SubSystem>Windows</SubSystem> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<TargetMachine>MachineX86</TargetMachine> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemGroup> | ||
<ClCompile Include="ADMonSetup.cpp" /> | ||
<ClCompile Include="stdafx.cpp"> | ||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader> | ||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader> | ||
</ClCompile> | ||
<ClCompile Include="MainWnd.cpp" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClInclude Include="ADMonSetup.h" /> | ||
<ClInclude Include="Resource.h" /> | ||
<ClInclude Include="stdafx.h" /> | ||
<ClInclude Include="targetver.h" /> | ||
<ClInclude Include="MainWnd.h" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="ADMonSetup.ico" /> | ||
<None Include="small.ico" /> | ||
<None Include="ReadMe.txt" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ResourceCompile Include="ADMonSetup.rc" /> | ||
</ItemGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
<ImportGroup Label="ExtensionTargets"> | ||
</ImportGroup> | ||
</Project> |
Oops, something went wrong.