Skip to content

Commit

Permalink
DuiLib_Ultimate
Browse files Browse the repository at this point in the history
  • Loading branch information
Troy committed Jun 11, 2015
1 parent 6ad6921 commit fa9b2a9
Show file tree
Hide file tree
Showing 565 changed files with 87,664 additions and 0 deletions.
Binary file added Demos/bdwallpaper/BDWallPaper.aps
Binary file not shown.
25 changes: 25 additions & 0 deletions Demos/bdwallpaper/BDWallPaper.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#include "stdafx.h"
#include "resource.h"
#include "MainWnd.h"

static LPBYTE resource_zip_buffer_ = NULL;

//#define USE_EMBEDED_RESOURCE

int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPSTR /*lpCmdLine*/, int nCmdShow)
{
CPaintManagerUI::SetInstance(hInstance);

HRESULT Hr = ::CoInitialize(NULL);
if( FAILED(Hr) ) return 0;

CMainWnd* pFrame = new CMainWnd();
if( pFrame == NULL ) return 0;
pFrame->Create(NULL, _T("ѸÀ×ÓÎÏ·ºÐ×Ó"), UI_WNDSTYLE_FRAME, 0L, 0, 0, 884, 652);
pFrame->CenterWindow();

CPaintManagerUI::MessageLoop();

::CoUninitialize();
return 0;
}
Binary file added Demos/bdwallpaper/BDWallPaper.rc
Binary file not shown.
210 changes: 210 additions & 0 deletions Demos/bdwallpaper/BDWallPaper.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
<?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">
<ProjectName>BDWallPaper</ProjectName>
<ProjectGuid>{565089A1-60C0-4281-99D7-A459E7354EEF}</ProjectGuid>
<RootNamespace>360</RootNamespace>
<SccProjectName>
</SccProjectName>
<SccAuxPath>
</SccAuxPath>
<SccLocalPath>
</SccLocalPath>
<SccProvider>
</SccProvider>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<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" />
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" />
</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" />
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" />
</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'">$(SolutionDir)temp\BDWallPaper\$(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'">$(SolutionDir)temp\BDWallPaper\$(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'" />
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectName)_d</TargetName>
<TargetName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(ProjectName)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Midl>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MkTypLibCompatible>true</MkTypLibCompatible>
<SuppressStartupBanner>true</SuppressStartupBanner>
<TargetEnvironment>Win32</TargetEnvironment>
<TypeLibraryName>.\Debug/BDWallPaper.tlb</TypeLibraryName>
<HeaderFileName>
</HeaderFileName>
</Midl>
<ClCompile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
<BrowseInformation>true</BrowseInformation>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<AdditionalIncludeDirectories>helper;controlex;helper\jsoncpp;</AdditionalIncludeDirectories>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0406</Culture>
</ResourceCompile>
<Link>
<SuppressStartupBanner>true</SuppressStartupBanner>
<GenerateDebugInformation>true</GenerateDebugInformation>
<GenerateMapFile>true</GenerateMapFile>
<SubSystem>Windows</SubSystem>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<Bscmake>
<SuppressStartupBanner>true</SuppressStartupBanner>
<OutputFile>.\Debug/BDWallPaper.bsc</OutputFile>
</Bscmake>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MkTypLibCompatible>true</MkTypLibCompatible>
<SuppressStartupBanner>true</SuppressStartupBanner>
<TargetEnvironment>Win32</TargetEnvironment>
<TypeLibraryName>.\Release/BDWallPaper.tlb</TypeLibraryName>
<HeaderFileName>
</HeaderFileName>
</Midl>
<ClCompile>
<Optimization>MinSpace</Optimization>
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
<AdditionalIncludeDirectories>helper;controlex;helper\jsoncpp;</AdditionalIncludeDirectories>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0406</Culture>
</ResourceCompile>
<Link>
<SuppressStartupBanner>true</SuppressStartupBanner>
<SubSystem>Windows</SubSystem>
<TargetMachine>MachineX86</TargetMachine>
<IgnoreSpecificDefaultLibraries>
</IgnoreSpecificDefaultLibraries>
</Link>
<Bscmake>
<SuppressStartupBanner>true</SuppressStartupBanner>
<OutputFile>.\Release/BDWallPaper.bsc</OutputFile>
</Bscmake>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="controlex\AnimationHelper.cpp" />
<ClCompile Include="helper\jsoncpp\json_reader.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="helper\jsoncpp\json_value.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="helper\jsoncpp\json_writer.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="helper\stb_image.c">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="helper\XUnzip.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="MainWnd.cpp" />
<ClCompile Include="BDWallPaper.cpp" />
<ClCompile Include="StdAfx.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="controlex\AnimationHelper.h" />
<ClInclude Include="controlex\UIButtonEx.h" />
<ClInclude Include="controlex\ControlInclude.h" />
<ClInclude Include="controlex\UILableEx.h" />
<ClInclude Include="controlex\UIWPPanel.h" />
<ClInclude Include="DataMgr.h" />
<ClInclude Include="helper\jsoncpp\autolink.h" />
<ClInclude Include="helper\jsoncpp\config.h" />
<ClInclude Include="helper\jsoncpp\features.h" />
<ClInclude Include="helper\jsoncpp\forwards.h" />
<ClInclude Include="helper\jsoncpp\json.h" />
<ClInclude Include="helper\jsoncpp\json_batchallocator.h" />
<ClInclude Include="helper\jsoncpp\reader.h" />
<ClInclude Include="helper\jsoncpp\value.h" />
<ClInclude Include="helper\jsoncpp\writer.h" />
<ClInclude Include="helper\Utils.h" />
<ClInclude Include="MainWnd.h" />
<ClInclude Include="resource.h" />
<ClInclude Include="StdAfx.h" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\bin\skin\bdwallpaper\main.xml">
<SubType>Designer</SubType>
</None>
<None Include="helper\jsoncpp\json_valueiterator.inl" />
<None Include="Res\BDWallPaper.ico" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="BDWallPaper.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
132 changes: 132 additions & 0 deletions Demos/bdwallpaper/BDWallPaper.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{c75b9d7c-452a-4867-a585-e8aee4a05f51}</UniqueIdentifier>
<Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{249f81db-516d-4a60-9882-d3fd674e412c}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl</Extensions>
</Filter>
<Filter Include="Resources">
<UniqueIdentifier>{057557f5-517e-47cf-a695-8b482beaf54a}</UniqueIdentifier>
</Filter>
<Filter Include="ControlEx">
<UniqueIdentifier>{effdb570-d6be-45fe-9ac5-7dedf6a14a93}</UniqueIdentifier>
</Filter>
<Filter Include="Helper">
<UniqueIdentifier>{8b578ff8-5c34-471e-8ab6-0dccfac7dbb4}</UniqueIdentifier>
</Filter>
<Filter Include="Resources\skin">
<UniqueIdentifier>{ff8c0161-870e-4f0d-abcb-a2e94b301694}</UniqueIdentifier>
</Filter>
<Filter Include="Helper\jsoncpp">
<UniqueIdentifier>{ce067cf0-2c17-4761-9766-9a8cbab56a7c}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="BDWallPaper.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="StdAfx.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="MainWnd.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="controlex\AnimationHelper.cpp">
<Filter>ControlEx</Filter>
</ClCompile>
<ClCompile Include="helper\stb_image.c">
<Filter>Helper</Filter>
</ClCompile>
<ClCompile Include="helper\XUnzip.cpp">
<Filter>Helper</Filter>
</ClCompile>
<ClCompile Include="helper\jsoncpp\json_reader.cpp">
<Filter>Helper\jsoncpp</Filter>
</ClCompile>
<ClCompile Include="helper\jsoncpp\json_value.cpp">
<Filter>Helper\jsoncpp</Filter>
</ClCompile>
<ClCompile Include="helper\jsoncpp\json_writer.cpp">
<Filter>Helper\jsoncpp</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="StdAfx.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="resource.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="MainWnd.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="controlex\AnimationHelper.h">
<Filter>ControlEx</Filter>
</ClInclude>
<ClInclude Include="helper\jsoncpp\autolink.h">
<Filter>Helper\jsoncpp</Filter>
</ClInclude>
<ClInclude Include="helper\jsoncpp\config.h">
<Filter>Helper\jsoncpp</Filter>
</ClInclude>
<ClInclude Include="helper\jsoncpp\features.h">
<Filter>Helper\jsoncpp</Filter>
</ClInclude>
<ClInclude Include="helper\jsoncpp\forwards.h">
<Filter>Helper\jsoncpp</Filter>
</ClInclude>
<ClInclude Include="helper\jsoncpp\json.h">
<Filter>Helper\jsoncpp</Filter>
</ClInclude>
<ClInclude Include="helper\jsoncpp\json_batchallocator.h">
<Filter>Helper\jsoncpp</Filter>
</ClInclude>
<ClInclude Include="helper\jsoncpp\reader.h">
<Filter>Helper\jsoncpp</Filter>
</ClInclude>
<ClInclude Include="helper\jsoncpp\value.h">
<Filter>Helper\jsoncpp</Filter>
</ClInclude>
<ClInclude Include="helper\jsoncpp\writer.h">
<Filter>Helper\jsoncpp</Filter>
</ClInclude>
<ClInclude Include="DataMgr.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="controlex\ControlInclude.h">
<Filter>ControlEx</Filter>
</ClInclude>
<ClInclude Include="controlex\UIButtonEx.h">
<Filter>ControlEx</Filter>
</ClInclude>
<ClInclude Include="controlex\UILableEx.h">
<Filter>ControlEx</Filter>
</ClInclude>
<ClInclude Include="controlex\UIWPPanel.h">
<Filter>ControlEx</Filter>
</ClInclude>
<ClInclude Include="helper\Utils.h">
<Filter>Helper</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="Res\BDWallPaper.ico">
<Filter>Resources</Filter>
</None>
<None Include="..\..\bin\skin\bdwallpaper\main.xml">
<Filter>Resources\skin</Filter>
</None>
<None Include="helper\jsoncpp\json_valueiterator.inl">
<Filter>Helper\jsoncpp</Filter>
</None>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="BDWallPaper.rc">
<Filter>Resources</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
3 changes: 3 additions & 0 deletions Demos/bdwallpaper/BDWallPaper.vcxproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
</Project>
Loading

0 comments on commit fa9b2a9

Please sign in to comment.