summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-02-10 18:01:48 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-02-10 18:01:48 +0000
commit2bd4dd9eae5bb8719207bb8c2ce5369dfd648f0b (patch)
tree5b3682cf54a88413a8f18179bd438852d640e25a /plugins/Clist_nicer
parent6da8e16d8ac0523581b8bcc6f4c86a7290b57ec6 (diff)
added version info
git-svn-id: http://svn.miranda-ng.org/main/trunk@3533 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer')
-rw-r--r--plugins/Clist_nicer/clist_nicer_11.vcxproj50
-rw-r--r--plugins/Clist_nicer/clist_nicer_11.vcxproj.filters101
-rw-r--r--plugins/Clist_nicer/res/blank.icobin1150 -> 0 bytes
-rw-r--r--plugins/Clist_nicer/res/dragcopy.curbin326 -> 0 bytes
-rw-r--r--plugins/Clist_nicer/res/dropuser.curbin1086 -> 0 bytes
-rw-r--r--plugins/Clist_nicer/res/hyperlin.curbin326 -> 0 bytes
-rw-r--r--plugins/Clist_nicer/res/notick.icobin1150 -> 0 bytes
-rw-r--r--plugins/Clist_nicer/res/notick1.icobin1150 -> 0 bytes
-rw-r--r--plugins/Clist_nicer/res/resource.rc34
-rw-r--r--plugins/Clist_nicer/res/version.rc33
-rw-r--r--plugins/Clist_nicer/skineditor/res/Version.rc38
-rw-r--r--plugins/Clist_nicer/skineditor/res/skinedit.rc76
-rw-r--r--plugins/Clist_nicer/skineditor/skinedit_11.vcxproj10
-rw-r--r--plugins/Clist_nicer/skineditor/skinedit_11.vcxproj.filters6
-rw-r--r--plugins/Clist_nicer/skineditor/src/Version.h14
-rw-r--r--plugins/Clist_nicer/skineditor/src/commonheaders.h28
-rw-r--r--plugins/Clist_nicer/skineditor/src/main.cpp1534
-rw-r--r--plugins/Clist_nicer/skineditor/src/skineditres.h4
-rw-r--r--plugins/Clist_nicer/src/Include/Version.h14
-rw-r--r--plugins/Clist_nicer/src/Include/commonheaders.h34
-rw-r--r--plugins/Clist_nicer/src/Include/resource.h4
-rw-r--r--plugins/Clist_nicer/src/Include/vsstyle.h1606
-rw-r--r--plugins/Clist_nicer/src/Include/vssym32.h712
-rw-r--r--plugins/Clist_nicer/src/init.cpp18
24 files changed, 913 insertions, 3403 deletions
diff --git a/plugins/Clist_nicer/clist_nicer_11.vcxproj b/plugins/Clist_nicer/clist_nicer_11.vcxproj
index c34ecbf223..44c7025c24 100644
--- a/plugins/Clist_nicer/clist_nicer_11.vcxproj
+++ b/plugins/Clist_nicer/clist_nicer_11.vcxproj
@@ -82,11 +82,11 @@
<Optimization>Disabled</Optimization>
<PrecompiledHeader>Use</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
- <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;CLIST_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\include;..\..\include\msapi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;..\..\include\msapi</AdditionalIncludeDirectories>
</ResourceCompile>
<Link>
<AdditionalDependencies>comctl32.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -105,7 +105,7 @@
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<AdditionalIncludeDirectories>..\..\include;src\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;CLIST_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<BufferSecurityCheck>false</BufferSecurityCheck>
<FunctionLevelLinking>true</FunctionLevelLinking>
@@ -117,7 +117,7 @@
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\include;..\..\include\msapi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;..\..\include\msapi</AdditionalIncludeDirectories>
</ResourceCompile>
<Link>
<AdditionalDependencies>comctl32.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -141,10 +141,10 @@
<Optimization>Disabled</Optimization>
<PrecompiledHeader>Use</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
- <PreprocessorDefinitions>WIN64;_DEBUG;_WINDOWS;_USRDLL;CLIST_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN64;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<ResourceCompile>
- <AdditionalIncludeDirectories>..\..\include;..\..\include\msapi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;..\..\include\msapi</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<Link>
@@ -166,7 +166,7 @@
<StringPooling>true</StringPooling>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
- <PreprocessorDefinitions>WIN64;NDEBUG;_WINDOWS;_USRDLL;CLIST_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<FunctionLevelLinking>true</FunctionLevelLinking>
<FloatingPointModel>Fast</FloatingPointModel>
<BufferSecurityCheck>false</BufferSecurityCheck>
@@ -174,7 +174,7 @@
<WarningLevel>Level3</WarningLevel>
</ClCompile>
<ResourceCompile>
- <AdditionalIncludeDirectories>..\..\include;..\..\include\msapi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;..\..\include\msapi</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<Link>
@@ -246,44 +246,12 @@
<ClInclude Include="src\Include\extBackg.h" />
<ClInclude Include="src\Include\resource.h" />
<ClInclude Include="src\Include\rowheight_funcs.h" />
+ <ClInclude Include="src\Include\Version.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\resource.rc" />
<ResourceCompile Include="res\version.rc" />
</ItemGroup>
- <ItemGroup>
- <None Include="res\accounts.ico" />
- <None Include="res\arrow-down.ico" />
- <None Include="res\blank.ico" />
- <None Include="res\connecting.ico" />
- <None Include="res\delete.ico" />
- <None Include="res\DRAGCOPY.CUR" />
- <None Include="res\dropuser.cur" />
- <None Include="res\find.ico" />
- <None Include="res\groups.ico" />
- <None Include="res\hyperlin.cur" />
- <None Include="res\menu.ico" />
- <None Include="res\minimize.ico" />
- <None Include="res\notick.ico" />
- <None Include="res\notick1.ico" />
- <None Include="res\online.ico" />
- <None Include="res\options.ico" />
- <None Include="res\options_clvm.ico" />
- <None Include="res\overlay\away.ico" />
- <None Include="res\overlay\dnd.ico" />
- <None Include="res\overlay\invisible.ico" />
- <None Include="res\overlay\lunch.ico" />
- <None Include="res\overlay\na.ico" />
- <None Include="res\overlay\occupied.ico" />
- <None Include="res\overlay\offline.ico" />
- <None Include="res\overlay\online.ico" />
- <None Include="res\overlay\phone.ico" />
- <None Include="res\rename.ico" />
- <None Include="res\slist.ico" />
- <None Include="res\sounds_off.ico" />
- <None Include="res\sounds_on.ico" />
- <None Include="res\tabsrmm_menu.ico" />
- </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
diff --git a/plugins/Clist_nicer/clist_nicer_11.vcxproj.filters b/plugins/Clist_nicer/clist_nicer_11.vcxproj.filters
index 2c9bba4a0c..dfd618c10a 100644
--- a/plugins/Clist_nicer/clist_nicer_11.vcxproj.filters
+++ b/plugins/Clist_nicer/clist_nicer_11.vcxproj.filters
@@ -19,9 +19,6 @@
<UniqueIdentifier>{e5c38f32-abf7-49dc-8c7c-6cb39d9ad5ff}</UniqueIdentifier>
<Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
</Filter>
- <Filter Include="Docs">
- <UniqueIdentifier>{a424f08e-0bd2-48ef-8834-f4a72c0071b6}</UniqueIdentifier>
- </Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\alphablend.cpp">
@@ -176,6 +173,9 @@
<ClInclude Include="src\Include\config.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="src\Include\Version.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\resource.rc">
@@ -185,99 +185,4 @@
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
- <ItemGroup>
- <None Include="res\notick.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\notick1.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\rename.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\delete.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\options_clvm.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\arrow-down.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\blank.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\overlay\offline.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\overlay\online.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\overlay\away.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\overlay\dnd.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\overlay\na.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\overlay\occupied.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\overlay\invisible.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\overlay\phone.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\overlay\lunch.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\online.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\groups.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\sounds_on.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\find.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\options.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\minimize.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\sounds_off.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\slist.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\tabsrmm_menu.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\connecting.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\menu.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\accounts.ico">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\hyperlin.cur">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\DRAGCOPY.CUR">
- <Filter>Resource Files</Filter>
- </None>
- <None Include="res\dropuser.cur">
- <Filter>Resource Files</Filter>
- </None>
- </ItemGroup>
</Project> \ No newline at end of file
diff --git a/plugins/Clist_nicer/res/blank.ico b/plugins/Clist_nicer/res/blank.ico
deleted file mode 100644
index d8a5b3d80d..0000000000
--- a/plugins/Clist_nicer/res/blank.ico
+++ /dev/null
Binary files differ
diff --git a/plugins/Clist_nicer/res/dragcopy.cur b/plugins/Clist_nicer/res/dragcopy.cur
deleted file mode 100644
index 89c7c960d5..0000000000
--- a/plugins/Clist_nicer/res/dragcopy.cur
+++ /dev/null
Binary files differ
diff --git a/plugins/Clist_nicer/res/dropuser.cur b/plugins/Clist_nicer/res/dropuser.cur
deleted file mode 100644
index a84b19e28b..0000000000
--- a/plugins/Clist_nicer/res/dropuser.cur
+++ /dev/null
Binary files differ
diff --git a/plugins/Clist_nicer/res/hyperlin.cur b/plugins/Clist_nicer/res/hyperlin.cur
deleted file mode 100644
index f0f548c828..0000000000
--- a/plugins/Clist_nicer/res/hyperlin.cur
+++ /dev/null
Binary files differ
diff --git a/plugins/Clist_nicer/res/notick.ico b/plugins/Clist_nicer/res/notick.ico
deleted file mode 100644
index 7f93490642..0000000000
--- a/plugins/Clist_nicer/res/notick.ico
+++ /dev/null
Binary files differ
diff --git a/plugins/Clist_nicer/res/notick1.ico b/plugins/Clist_nicer/res/notick1.ico
deleted file mode 100644
index 609504d614..0000000000
--- a/plugins/Clist_nicer/res/notick1.ico
+++ /dev/null
Binary files differ
diff --git a/plugins/Clist_nicer/res/resource.rc b/plugins/Clist_nicer/res/resource.rc
index 817aaed264..31eda32eba 100644
--- a/plugins/Clist_nicer/res/resource.rc
+++ b/plugins/Clist_nicer/res/resource.rc
@@ -7,7 +7,6 @@
//
// Generated from the TEXTINCLUDE 2 resource.
//
-#include <windows.h>
#include <winres.h>
#include <statusmodes.h>
@@ -15,11 +14,11 @@
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
-// English (United States) resources
+// Русский (Россия) resources
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-#pragma code_page(1252)
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
+LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
+#pragma code_page(1251)
/////////////////////////////////////////////////////////////////////////////
//
@@ -567,7 +566,6 @@ END
2 TEXTINCLUDE
BEGIN
- "#include <windows.h>\r\n"
"#include <winres.h>\r\n"
"#include <statusmodes.h>\r\0"
END
@@ -588,13 +586,13 @@ END
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
-IDI_NOTICK ICON "notick.ico"
-IDI_TICK ICON "notick1.ico"
+IDI_NOTICK ICON "..\\..\\..\\src\\res\\check_off.ico"
+IDI_TICK ICON "..\\..\\..\\src\\res\\check_on.ico"
IDI_RENAME ICON "rename.ico"
IDI_DELETE ICON "delete.ico"
IDI_CLVM_OPTIONS ICON "options_clvm.ico"
IDI_CLVM_SELECT ICON "arrow-down.ico"
-IDI_BLANK ICON "blank.ico"
+IDI_BLANK ICON "..\\..\\..\\src\\res\\_blank.ico"
IDI_OVL_OFFLINE ICON "overlay/offline.ico"
IDI_OVL_ONLINE ICON "overlay/online.ico"
IDI_OVL_AWAY ICON "overlay/away.ico"
@@ -622,9 +620,9 @@ IDI_TBACCOUNTS ICON "accounts.ico"
// Cursor
//
-IDC_HYPERLINKHAND CURSOR "hyperlin.cur"
-IDC_DROP CURSOR "DRAGCOPY.CUR"
-IDC_DROPUSER CURSOR "dropuser.cur"
+IDC_HYPERLINKHAND CURSOR "..\\..\\..\\src\\res\\cursor_hyperlink.cur"
+IDC_DROP CURSOR "..\\..\\..\\src\\res\\cursor_drag_copy.cur"
+IDC_DROPUSER CURSOR "..\\..\\..\\src\\res\\cursor_drop_user.cur"
/////////////////////////////////////////////////////////////////////////////
//
@@ -706,15 +704,7 @@ END
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
- IDD_OPT_DSPGROUPS, DIALOG
- BEGIN
- END
-
- IDD_OPT_DSPITEMS, DIALOG
- BEGIN
- END
-
- IDD_OPT_DSPADVANCED, DIALOG
+ IDD_CLNABOUT, DIALOG
BEGIN
END
@@ -734,7 +724,7 @@ BEGIN
END
#endif // APSTUDIO_INVOKED
-#endif // English (United States) resources
+#endif // Русский (Россия) resources
/////////////////////////////////////////////////////////////////////////////
diff --git a/plugins/Clist_nicer/res/version.rc b/plugins/Clist_nicer/res/version.rc
index 661991ce75..126eb53280 100644
--- a/plugins/Clist_nicer/res/version.rc
+++ b/plugins/Clist_nicer/res/version.rc
@@ -1,20 +1,15 @@
+// Microsoft Visual C++ generated resource script.
+//
#ifdef APSTUDIO_INVOKED
#error this file is not editable by Microsoft Visual C++
#endif //APSTUDIO_INVOKED
-#include "winres.h"
-
-#define VERSION_STRING "0.11.0.1"
-#define VER_MAJOR 0
-#define VER_MINOR 11
-#define VER_REVISION 0
-#define VER_BUILD 1
-
-#define RES_FILE_DESC "Clist_Nicer+"
+#include "afxres.h"
+#include "..\src\include\version.h"
VS_VERSION_INFO VERSIONINFO
- FILEVERSION VER_MAJOR,VER_MINOR,VER_REVISION,VER_BUILD
- PRODUCTVERSION VER_MAJOR,VER_MINOR,VER_REVISION,VER_BUILD
+ FILEVERSION __FILEVERSION_STRING
+ PRODUCTVERSION __FILEVERSION_STRING
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -22,22 +17,18 @@ VS_VERSION_INFO VERSIONINFO
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
- FILETYPE 0x2L
+ FILETYPE 0x0L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "000004b0"
BEGIN
- VALUE "CompanyName", "Miranda NG project"
- VALUE "FileDescription", RES_FILE_DESC
- VALUE "FileVersion", VERSION_STRING
- VALUE "InternalName", "clist_nicer"
- VALUE "LegalCopyright", "Copyright (C) 2004-2010"
- VALUE "LegalTrademarks", "Licensed under the Gnu general public license V2 or any later version."
- VALUE "OriginalFilename", "clist_nicer.dll"
- VALUE "ProductName", "Contact list plugin for Miranda NG"
- VALUE "ProductVersion", VERSION_STRING
+ VALUE "FileDescription", __DESCRIPTION
+ VALUE "InternalName", __PLUGIN_NAME
+ VALUE "LegalCopyright", __COPYRIGHT
+ VALUE "OriginalFilename", __FILENAME
+ VALUE "ProductName", __PLUGIN_NAME
END
END
BLOCK "VarFileInfo"
diff --git a/plugins/Clist_nicer/skineditor/res/Version.rc b/plugins/Clist_nicer/skineditor/res/Version.rc
new file mode 100644
index 0000000000..5bfbab4754
--- /dev/null
+++ b/plugins/Clist_nicer/skineditor/res/Version.rc
@@ -0,0 +1,38 @@
+// Microsoft Visual C++ generated resource script.
+//
+#ifdef APSTUDIO_INVOKED
+#error this file is not editable by Microsoft Visual C++
+#endif //APSTUDIO_INVOKED
+
+#include "afxres.h"
+#include "..\src\version.h"
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION __FILEVERSION_STRING
+ PRODUCTVERSION __FILEVERSION_STRING
+ FILEFLAGSMASK 0x17L
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x0L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "000004b0"
+ BEGIN
+ VALUE "FileDescription", __DESCRIPTION
+ VALUE "InternalName", __PLUGIN_NAME
+ VALUE "LegalCopyright", __COPYRIGHT
+ VALUE "OriginalFilename", __FILENAME
+ VALUE "ProductName", __PLUGIN_NAME
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x0, 1200
+ END
+END
diff --git a/plugins/Clist_nicer/skineditor/res/skinedit.rc b/plugins/Clist_nicer/skineditor/res/skinedit.rc
index c5d8875b20..a321c9e146 100644
--- a/plugins/Clist_nicer/skineditor/res/skinedit.rc
+++ b/plugins/Clist_nicer/skineditor/res/skinedit.rc
@@ -7,19 +7,17 @@
//
// Generated from the TEXTINCLUDE 2 resource.
//
-#include <windows.h>
#include <winres.h>
+
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
-// Neutral resources
+// Русский (Россия) resources
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)
-#ifdef _WIN32
-LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
-#pragma code_page(1252)
-#endif //_WIN32
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
+LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
+#pragma code_page(1251)
/////////////////////////////////////////////////////////////////////////////
//
@@ -81,61 +79,6 @@ BEGIN
END
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-#ifndef APSTUDIO_INVOKED
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION 0,0,0,1
- PRODUCTVERSION 0,0,0,1
- FILEFLAGSMASK 0x17L
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x4L
- FILETYPE 0x2L
- FILESUBTYPE 0x0L
-BEGIN
- BLOCK "StringFileInfo"
-
- BEGIN
- BLOCK "0c0704b0"
- BEGIN
- VALUE "FileDescription", "Skin Editor"
- VALUE "FileVersion", "0, 0, 0, 2"
- VALUE "InternalName", "CLN SkinEdit"
- VALUE "LegalCopyright", "Copyright (C) 2006"
- VALUE "LegalTrademarks", "GPL"
- VALUE "OriginalFilename", "cln_skinedit.dll"
- VALUE "ProductName", "Clist Nicer+ skin editor"
- VALUE "ProductVersion", "0, 0, 0, 2"
- END
- END
-
- BLOCK "VarFileInfo"
- BEGIN
- VALUE "Translation", 0xc07, 1200
- END
-END
-#endif
-
-#endif // Neutral resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-/////////////////////////////////////////////////////////////////////////////
-// English (U.S.) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-#pragma code_page(1252)
-#endif //_WIN32
-
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
@@ -144,23 +87,24 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
1 TEXTINCLUDE
BEGIN
- "..\src\skineditres.h\0"
+ "..\\src\\skineditres.h\0"
END
2 TEXTINCLUDE
BEGIN
- "#include <windows.h>\r\n"
- "#include <winres.h>\0"
+ "#include <winres.h>\r\n"
+ "\0"
END
3 TEXTINCLUDE
BEGIN
"\r\n"
+ "\0"
END
#endif // APSTUDIO_INVOKED
-#endif // English (U.S.) resources
+#endif // Русский (Россия) resources
/////////////////////////////////////////////////////////////////////////////
diff --git a/plugins/Clist_nicer/skineditor/skinedit_11.vcxproj b/plugins/Clist_nicer/skineditor/skinedit_11.vcxproj
index 1bd9df881f..efde59d372 100644
--- a/plugins/Clist_nicer/skineditor/skinedit_11.vcxproj
+++ b/plugins/Clist_nicer/skineditor/skinedit_11.vcxproj
@@ -89,7 +89,7 @@
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\..\include\msapi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\..\include\msapi</AdditionalIncludeDirectories>
</ResourceCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -116,7 +116,7 @@
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\..\include\msapi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\..\include\msapi</AdditionalIncludeDirectories>
</ResourceCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -143,7 +143,7 @@
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\..\include\msapi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\..\include\msapi</AdditionalIncludeDirectories>
</ResourceCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -169,7 +169,7 @@
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\..\include\msapi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\..\include\msapi</AdditionalIncludeDirectories>
</ResourceCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -185,10 +185,12 @@
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\skinedit.rc" />
+ <ResourceCompile Include="res\Version.rc" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\commonheaders.h" />
<ClInclude Include="src\skineditres.h" />
+ <ClInclude Include="src\Version.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/plugins/Clist_nicer/skineditor/skinedit_11.vcxproj.filters b/plugins/Clist_nicer/skineditor/skinedit_11.vcxproj.filters
index 9527aaed45..ef12ffed19 100644
--- a/plugins/Clist_nicer/skineditor/skinedit_11.vcxproj.filters
+++ b/plugins/Clist_nicer/skineditor/skinedit_11.vcxproj.filters
@@ -23,6 +23,9 @@
<ResourceCompile Include="res\skinedit.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
+ <ResourceCompile Include="res\Version.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\commonheaders.h">
@@ -31,5 +34,8 @@
<ClInclude Include="src\skineditres.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="src\Version.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
</Project> \ No newline at end of file
diff --git a/plugins/Clist_nicer/skineditor/src/Version.h b/plugins/Clist_nicer/skineditor/src/Version.h
new file mode 100644
index 0000000000..9fdf89b6a8
--- /dev/null
+++ b/plugins/Clist_nicer/skineditor/src/Version.h
@@ -0,0 +1,14 @@
+#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 0
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 4
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "Skin editor for clist nicer"
+#define __FILENAME "Cln_skinedit.dll"
+#define __DESCRIPTION "Allows inline skin item editing for clist nicer."
+#define __AUTHOR "Nightwish, Pixel"
+#define __AUTHOREMAIL ""
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "Copyright 2000-2006 Miranda-IM project"
diff --git a/plugins/Clist_nicer/skineditor/src/commonheaders.h b/plugins/Clist_nicer/skineditor/src/commonheaders.h
index 3692962393..3a7ae2e8d8 100644
--- a/plugins/Clist_nicer/skineditor/src/commonheaders.h
+++ b/plugins/Clist_nicer/skineditor/src/commonheaders.h
@@ -24,37 +24,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define _CRT_SECURE_NO_WARNINGS
#define _WIN32_WINNT 0x0501
-#include <m_stdhdr.h>
-
#include <windows.h>
#include <commctrl.h>
-#include <stdio.h>
#include <time.h>
-#include <stddef.h>
-#include <process.h>
-#include <io.h>
-#include <string.h>
-#include <direct.h>
-#include <math.h>
-#include <win2k.h>
+
#include <newpluginapi.h>
-#include <m_clist.h>
-#include <m_clc.h>
-#include <m_clui.h>
-#include <m_system.h>
#include <m_database.h>
#include <m_langpack.h>
-#include <m_button.h>
-#include <m_options.h>
#include <m_protosvc.h>
-#include <m_utils.h>
-#include <m_skin.h>
-#include <m_contacts.h>
-#include <m_file.h>
-#include <m_addcontact.h>
-#include <m_png.h>
#include "../../src/include/m_cln_skinedit.h"
-
-// shared vars
-extern HINSTANCE g_hInst;
+#include "Version.h"
+#include "skineditres.h"
diff --git a/plugins/Clist_nicer/skineditor/src/main.cpp b/plugins/Clist_nicer/skineditor/src/main.cpp
index 917597642a..9037525b23 100644
--- a/plugins/Clist_nicer/skineditor/src/main.cpp
+++ b/plugins/Clist_nicer/skineditor/src/main.cpp
@@ -13,30 +13,30 @@ of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "commonheaders.h"
-#include "skineditres.h"
-#define ID_EXTBKSEPARATOR 40200
+#define ID_EXTBKSEPARATOR 40200
PLUGININFOEX pluginInfo = {
- sizeof(PLUGININFOEX),
- "Skin editor for clist_nicer+",
- PLUGIN_MAKE_VERSION(0, 0, 0, 4),
- "Allows inline skin item editing for clist nicer+.",
- "Nightwish, Pixel",
- "",
- "Copyright 2000-2006 Miranda-IM project",
- "http://miranda-ng.org/",
- UNICODE_AWARE,
- {0x21948c89, 0xb549, 0x4c9d, { 0x8b, 0x4f, 0x3f, 0x37, 0x26, 0xec, 0x6b, 0x4b }}
+ sizeof(PLUGININFOEX),
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
+ UNICODE_AWARE,
+ // {21948C89-B549-4C9D-8B4F-3F3726EC6B4B}
+ {0x21948c89, 0xb549, 0x4c9d, {0x8b, 0x4f, 0x3f, 0x37, 0x26, 0xec, 0x6b, 0x4b}}
};
HINSTANCE g_hInst = 0;
@@ -50,8 +50,8 @@ static int last_selcount = 0;
static int last_indizes[64];
static int ID_EXTBK_LAST = 0, ID_EXTBK_FIRST = 0;
-/*
- * prototypes
+/*
+ * prototypes
*/
static void ChangeControlItems(HWND hwndDlg, int status, int except);
@@ -59,562 +59,561 @@ static BOOL CheckItem(int item, HWND hwndDlg);
static void ReActiveCombo(HWND hwndDlg)
{
- if (IsDlgButtonChecked(hwndDlg, IDC_IGNORE)) {
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_LR), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_RL), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_TB), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_BT), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
-
- EnableWindow(GetDlgItem(hwndDlg, IDC_BASECOLOUR2), !IsDlgButtonChecked(hwndDlg, IDC_COLOR2_TRANSPARENT));
- EnableWindow(GetDlgItem(hwndDlg, IDC_COLOR2LABLE), !IsDlgButtonChecked(hwndDlg, IDC_COLOR2_TRANSPARENT));
-
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TL), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TR), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BR), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BL), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
- ChangeControlItems(hwndDlg, !IsDlgButtonChecked(hwndDlg, IDC_IGNORE), IDC_IGNORE);
- } else {
- ChangeControlItems(hwndDlg, !IsDlgButtonChecked(hwndDlg, IDC_IGNORE), IDC_IGNORE);
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_LR), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_RL), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_TB), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_BT), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
-
- EnableWindow(GetDlgItem(hwndDlg, IDC_BASECOLOUR2), !IsDlgButtonChecked(hwndDlg, IDC_COLOR2_TRANSPARENT));
- EnableWindow(GetDlgItem(hwndDlg, IDC_COLOR2LABLE), !IsDlgButtonChecked(hwndDlg, IDC_COLOR2_TRANSPARENT));
-
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TL), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TR), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BR), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BL), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
- }
+ if (IsDlgButtonChecked(hwndDlg, IDC_IGNORE)) {
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_LR), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_RL), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_TB), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_BT), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
+
+ EnableWindow(GetDlgItem(hwndDlg, IDC_BASECOLOUR2), !IsDlgButtonChecked(hwndDlg, IDC_COLOR2_TRANSPARENT));
+ EnableWindow(GetDlgItem(hwndDlg, IDC_COLOR2LABLE), !IsDlgButtonChecked(hwndDlg, IDC_COLOR2_TRANSPARENT));
+
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TL), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TR), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BR), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BL), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
+ ChangeControlItems(hwndDlg, !IsDlgButtonChecked(hwndDlg, IDC_IGNORE), IDC_IGNORE);
+ } else {
+ ChangeControlItems(hwndDlg, !IsDlgButtonChecked(hwndDlg, IDC_IGNORE), IDC_IGNORE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_LR), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_RL), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_TB), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_BT), IsDlgButtonChecked(hwndDlg, IDC_GRADIENT));
+
+ EnableWindow(GetDlgItem(hwndDlg, IDC_BASECOLOUR2), !IsDlgButtonChecked(hwndDlg, IDC_COLOR2_TRANSPARENT));
+ EnableWindow(GetDlgItem(hwndDlg, IDC_COLOR2LABLE), !IsDlgButtonChecked(hwndDlg, IDC_COLOR2_TRANSPARENT));
+
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TL), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TR), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BR), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BL), IsDlgButtonChecked(hwndDlg, IDC_CORNER));
+ }
}
// enabled or disabled the whole status controlitems group (with exceptional control)
static void ChangeControlItems(HWND hwndDlg, int status, int except)
{
- if (except != IDC_GRADIENT)
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT), status);
- if (except != IDC_GRADIENT_LR)
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_LR), status);
- if (except != IDC_GRADIENT_RL)
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_RL), status);
- if (except != IDC_GRADIENT_TB)
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_TB), status);
- if (except != IDC_GRADIENT_BT)
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_BT), status);
- if (except != IDC_CORNER)
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER), status);
- if (except != IDC_CORNER_TL)
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TL), status);
- if (except != IDC_CORNER_TR)
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TR), status);
- if (except != IDC_CORNER_BR)
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BR), status);
- if (except != IDC_CORNER_BL)
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BL), status);
- if (except != IDC_CORNER_TL)
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TL), status);
- if (except != IDC_MARGINLABLE)
- EnableWindow(GetDlgItem(hwndDlg, IDC_MARGINLABLE), status);
- if (except != IDC_MRGN_TOP)
- EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_TOP), status);
- if (except != IDC_MRGN_RIGHT)
- EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_RIGHT), status);
- if (except != IDC_MRGN_BOTTOM)
- EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_BOTTOM), status);
- if (except != IDC_MRGN_LEFT)
- EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_LEFT), status);
- if (except != IDC_MRGN_TOP_SPIN)
- EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_TOP_SPIN), status);
- if (except != IDC_MRGN_RIGHT_SPIN)
- EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_RIGHT_SPIN), status);
- if (except != IDC_MRGN_BOTTOM_SPIN)
- EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_BOTTOM_SPIN), status);
- if (except != IDC_MRGN_LEFT_SPIN)
- EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_LEFT_SPIN), status);
- if (except != IDC_BASECOLOUR)
- EnableWindow(GetDlgItem(hwndDlg, IDC_BASECOLOUR), status);
- if (except != IDC_COLORLABLE)
- EnableWindow(GetDlgItem(hwndDlg, IDC_COLORLABLE), status);
- if (except != IDC_BASECOLOUR2)
- EnableWindow(GetDlgItem(hwndDlg, IDC_BASECOLOUR2), status);
- if (except != IDC_COLOR2LABLE)
- EnableWindow(GetDlgItem(hwndDlg, IDC_COLOR2LABLE), status);
- if (except != IDC_COLOR2_TRANSPARENT)
- EnableWindow(GetDlgItem(hwndDlg, IDC_COLOR2_TRANSPARENT), status);
- if (except != IDC_TEXTCOLOUR)
- EnableWindow(GetDlgItem(hwndDlg, IDC_TEXTCOLOUR), status);
- if (except != IDC_TEXTCOLOURLABLE)
- EnableWindow(GetDlgItem(hwndDlg, IDC_TEXTCOLOURLABLE), status);
-
- if (except != IDC_ALPHA)
- EnableWindow(GetDlgItem(hwndDlg, IDC_ALPHA), status);
- if (except != IDC_ALPHASPIN)
- EnableWindow(GetDlgItem(hwndDlg, IDC_ALPHASPIN), status);
- if (except != IDC_ALPHALABLE)
- EnableWindow(GetDlgItem(hwndDlg, IDC_ALPHALABLE), status);
- if (except != IDC_IGNORE)
- EnableWindow(GetDlgItem(hwndDlg, IDC_IGNORE), status);
-
- if (except != IDC_BORDERTYPE)
- EnableWindow(GetDlgItem(hwndDlg, IDC_BORDERTYPE), status);
-
+ if (except != IDC_GRADIENT)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT), status);
+ if (except != IDC_GRADIENT_LR)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_LR), status);
+ if (except != IDC_GRADIENT_RL)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_RL), status);
+ if (except != IDC_GRADIENT_TB)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_TB), status);
+ if (except != IDC_GRADIENT_BT)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_BT), status);
+ if (except != IDC_CORNER)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER), status);
+ if (except != IDC_CORNER_TL)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TL), status);
+ if (except != IDC_CORNER_TR)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TR), status);
+ if (except != IDC_CORNER_BR)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BR), status);
+ if (except != IDC_CORNER_BL)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BL), status);
+ if (except != IDC_CORNER_TL)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TL), status);
+ if (except != IDC_MARGINLABLE)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_MARGINLABLE), status);
+ if (except != IDC_MRGN_TOP)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_TOP), status);
+ if (except != IDC_MRGN_RIGHT)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_RIGHT), status);
+ if (except != IDC_MRGN_BOTTOM)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_BOTTOM), status);
+ if (except != IDC_MRGN_LEFT)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_LEFT), status);
+ if (except != IDC_MRGN_TOP_SPIN)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_TOP_SPIN), status);
+ if (except != IDC_MRGN_RIGHT_SPIN)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_RIGHT_SPIN), status);
+ if (except != IDC_MRGN_BOTTOM_SPIN)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_BOTTOM_SPIN), status);
+ if (except != IDC_MRGN_LEFT_SPIN)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_MRGN_LEFT_SPIN), status);
+ if (except != IDC_BASECOLOUR)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_BASECOLOUR), status);
+ if (except != IDC_COLORLABLE)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_COLORLABLE), status);
+ if (except != IDC_BASECOLOUR2)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_BASECOLOUR2), status);
+ if (except != IDC_COLOR2LABLE)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_COLOR2LABLE), status);
+ if (except != IDC_COLOR2_TRANSPARENT)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_COLOR2_TRANSPARENT), status);
+ if (except != IDC_TEXTCOLOUR)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_TEXTCOLOUR), status);
+ if (except != IDC_TEXTCOLOURLABLE)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_TEXTCOLOURLABLE), status);
+
+ if (except != IDC_ALPHA)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_ALPHA), status);
+ if (except != IDC_ALPHASPIN)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_ALPHASPIN), status);
+ if (except != IDC_ALPHALABLE)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_ALPHALABLE), status);
+ if (except != IDC_IGNORE)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_IGNORE), status);
+
+ if (except != IDC_BORDERTYPE)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_BORDERTYPE), status);
}
static void FillOptionDialogByStatusItem(HWND hwndDlg, StatusItems_t *item)
{
- char itoabuf[15];
- DWORD ret;
- int index;
-
- CheckDlgButton(hwndDlg, IDC_IGNORE, (item->IGNORED) ? BST_CHECKED : BST_UNCHECKED);
-
- CheckDlgButton(hwndDlg, IDC_GRADIENT, (item->GRADIENT & GRADIENT_ACTIVE) ? BST_CHECKED : BST_UNCHECKED);
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_LR), item->GRADIENT & GRADIENT_ACTIVE);
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_RL), item->GRADIENT & GRADIENT_ACTIVE);
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_TB), item->GRADIENT & GRADIENT_ACTIVE);
- EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_BT), item->GRADIENT & GRADIENT_ACTIVE);
- CheckDlgButton(hwndDlg, IDC_GRADIENT_LR, (item->GRADIENT & GRADIENT_LR) ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(hwndDlg, IDC_GRADIENT_RL, (item->GRADIENT & GRADIENT_RL) ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(hwndDlg, IDC_GRADIENT_TB, (item->GRADIENT & GRADIENT_TB) ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(hwndDlg, IDC_GRADIENT_BT, (item->GRADIENT & GRADIENT_BT) ? BST_CHECKED : BST_UNCHECKED);
-
- CheckDlgButton(hwndDlg, IDC_CORNER, (item->CORNER & CORNER_ACTIVE) ? BST_CHECKED : BST_UNCHECKED);
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TL), item->CORNER & CORNER_ACTIVE);
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TR), item->CORNER & CORNER_ACTIVE);
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BR), item->CORNER & CORNER_ACTIVE);
- EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BL), item->CORNER & CORNER_ACTIVE);
-
- CheckDlgButton(hwndDlg, IDC_CORNER_TL, (item->CORNER & CORNER_TL) ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(hwndDlg, IDC_CORNER_TR, (item->CORNER & CORNER_TR) ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(hwndDlg, IDC_CORNER_BR, (item->CORNER & CORNER_BR) ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(hwndDlg, IDC_CORNER_BL, (item->CORNER & CORNER_BL) ? BST_CHECKED : BST_UNCHECKED);
-
- ret = item->COLOR;
- SendDlgItemMessage(hwndDlg, IDC_BASECOLOUR, CPM_SETDEFAULTCOLOUR, 0, CLCDEFAULT_COLOR);
- SendDlgItemMessage(hwndDlg, IDC_BASECOLOUR, CPM_SETCOLOUR, 0, ret);
-
- ret = item->COLOR2;
- SendDlgItemMessage(hwndDlg, IDC_BASECOLOUR2, CPM_SETDEFAULTCOLOUR, 0, CLCDEFAULT_COLOR2);
- SendDlgItemMessage(hwndDlg, IDC_BASECOLOUR2, CPM_SETCOLOUR, 0, ret);
-
- CheckDlgButton(hwndDlg, IDC_COLOR2_TRANSPARENT, (item->COLOR2_TRANSPARENT) ? BST_CHECKED : BST_UNCHECKED);
-
- ret = item->TEXTCOLOR;
- SendDlgItemMessage(hwndDlg, IDC_TEXTCOLOUR, CPM_SETDEFAULTCOLOUR, 0, CLCDEFAULT_TEXTCOLOR);
- SendDlgItemMessage(hwndDlg, IDC_TEXTCOLOUR, CPM_SETCOLOUR, 0, ret);
-
- if (item->ALPHA == -1) {
- SetDlgItemTextA(hwndDlg, IDC_ALPHA, "");
- } else {
- ret = item->ALPHA;
- _itoa(ret, itoabuf, 10);
- SetDlgItemTextA(hwndDlg, IDC_ALPHA, itoabuf);
- }
-
- if (item->MARGIN_LEFT == -1)
- SetDlgItemTextA(hwndDlg, IDC_MRGN_LEFT, "");
- else {
- ret = item->MARGIN_LEFT;
- _itoa(ret, itoabuf, 10);
- SetDlgItemTextA(hwndDlg, IDC_MRGN_LEFT, itoabuf);
- }
-
- if (item->MARGIN_TOP == -1)
- SetDlgItemTextA(hwndDlg, IDC_MRGN_TOP, "");
- else {
- ret = item->MARGIN_TOP;
- _itoa(ret, itoabuf, 10);
- SetDlgItemTextA(hwndDlg, IDC_MRGN_TOP, itoabuf);
- }
-
- if (item->MARGIN_RIGHT == -1)
- SetDlgItemTextA(hwndDlg, IDC_MRGN_RIGHT, "");
- else {
- ret = item->MARGIN_RIGHT;
- _itoa(ret, itoabuf, 10);
- SetDlgItemTextA(hwndDlg, IDC_MRGN_RIGHT, itoabuf);
- }
-
- if (item->MARGIN_BOTTOM == -1)
- SetDlgItemTextA(hwndDlg, IDC_MRGN_BOTTOM, "");
- else {
- ret = item->MARGIN_BOTTOM;
- _itoa(ret, itoabuf, 10);
- SetDlgItemTextA(hwndDlg, IDC_MRGN_BOTTOM, itoabuf);
- }
- if(item->BORDERSTYLE == -1)
- SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_SETCURSEL, 0, 0);
- else {
- index = 0;
- switch(item->BORDERSTYLE) {
- case 0:
- case -1:
- index = 0;
- break;
- case BDR_RAISEDOUTER:
- index = 1;
- break;
- case BDR_SUNKENINNER:
- index = 2;
- break;
- case EDGE_BUMP:
- index = 3;
- break;
- case EDGE_ETCHED:
- index = 4;
- break;
- }
- SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_SETCURSEL, (WPARAM)index, 0);
- }
- ReActiveCombo(hwndDlg);
+ char itoabuf[15];
+ DWORD ret;
+ int index;
+
+ CheckDlgButton(hwndDlg, IDC_IGNORE, (item->IGNORED) ? BST_CHECKED : BST_UNCHECKED);
+
+ CheckDlgButton(hwndDlg, IDC_GRADIENT, (item->GRADIENT & GRADIENT_ACTIVE) ? BST_CHECKED : BST_UNCHECKED);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_LR), item->GRADIENT & GRADIENT_ACTIVE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_RL), item->GRADIENT & GRADIENT_ACTIVE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_TB), item->GRADIENT & GRADIENT_ACTIVE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_GRADIENT_BT), item->GRADIENT & GRADIENT_ACTIVE);
+ CheckDlgButton(hwndDlg, IDC_GRADIENT_LR, (item->GRADIENT & GRADIENT_LR) ? BST_CHECKED : BST_UNCHECKED);
+ CheckDlgButton(hwndDlg, IDC_GRADIENT_RL, (item->GRADIENT & GRADIENT_RL) ? BST_CHECKED : BST_UNCHECKED);
+ CheckDlgButton(hwndDlg, IDC_GRADIENT_TB, (item->GRADIENT & GRADIENT_TB) ? BST_CHECKED : BST_UNCHECKED);
+ CheckDlgButton(hwndDlg, IDC_GRADIENT_BT, (item->GRADIENT & GRADIENT_BT) ? BST_CHECKED : BST_UNCHECKED);
+
+ CheckDlgButton(hwndDlg, IDC_CORNER, (item->CORNER & CORNER_ACTIVE) ? BST_CHECKED : BST_UNCHECKED);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TL), item->CORNER & CORNER_ACTIVE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_TR), item->CORNER & CORNER_ACTIVE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BR), item->CORNER & CORNER_ACTIVE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_CORNER_BL), item->CORNER & CORNER_ACTIVE);
+
+ CheckDlgButton(hwndDlg, IDC_CORNER_TL, (item->CORNER & CORNER_TL) ? BST_CHECKED : BST_UNCHECKED);
+ CheckDlgButton(hwndDlg, IDC_CORNER_TR, (item->CORNER & CORNER_TR) ? BST_CHECKED : BST_UNCHECKED);
+ CheckDlgButton(hwndDlg, IDC_CORNER_BR, (item->CORNER & CORNER_BR) ? BST_CHECKED : BST_UNCHECKED);
+ CheckDlgButton(hwndDlg, IDC_CORNER_BL, (item->CORNER & CORNER_BL) ? BST_CHECKED : BST_UNCHECKED);
+
+ ret = item->COLOR;
+ SendDlgItemMessage(hwndDlg, IDC_BASECOLOUR, CPM_SETDEFAULTCOLOUR, 0, CLCDEFAULT_COLOR);
+ SendDlgItemMessage(hwndDlg, IDC_BASECOLOUR, CPM_SETCOLOUR, 0, ret);
+
+ ret = item->COLOR2;
+ SendDlgItemMessage(hwndDlg, IDC_BASECOLOUR2, CPM_SETDEFAULTCOLOUR, 0, CLCDEFAULT_COLOR2);
+ SendDlgItemMessage(hwndDlg, IDC_BASECOLOUR2, CPM_SETCOLOUR, 0, ret);
+
+ CheckDlgButton(hwndDlg, IDC_COLOR2_TRANSPARENT, (item->COLOR2_TRANSPARENT) ? BST_CHECKED : BST_UNCHECKED);
+
+ ret = item->TEXTCOLOR;
+ SendDlgItemMessage(hwndDlg, IDC_TEXTCOLOUR, CPM_SETDEFAULTCOLOUR, 0, CLCDEFAULT_TEXTCOLOR);
+ SendDlgItemMessage(hwndDlg, IDC_TEXTCOLOUR, CPM_SETCOLOUR, 0, ret);
+
+ if (item->ALPHA == -1) {
+ SetDlgItemTextA(hwndDlg, IDC_ALPHA, "");
+ } else {
+ ret = item->ALPHA;
+ _itoa(ret, itoabuf, 10);
+ SetDlgItemTextA(hwndDlg, IDC_ALPHA, itoabuf);
+ }
+
+ if (item->MARGIN_LEFT == -1)
+ SetDlgItemTextA(hwndDlg, IDC_MRGN_LEFT, "");
+ else {
+ ret = item->MARGIN_LEFT;
+ _itoa(ret, itoabuf, 10);
+ SetDlgItemTextA(hwndDlg, IDC_MRGN_LEFT, itoabuf);
+ }
+
+ if (item->MARGIN_TOP == -1)
+ SetDlgItemTextA(hwndDlg, IDC_MRGN_TOP, "");
+ else {
+ ret = item->MARGIN_TOP;
+ _itoa(ret, itoabuf, 10);
+ SetDlgItemTextA(hwndDlg, IDC_MRGN_TOP, itoabuf);
+ }
+
+ if (item->MARGIN_RIGHT == -1)
+ SetDlgItemTextA(hwndDlg, IDC_MRGN_RIGHT, "");
+ else {
+ ret = item->MARGIN_RIGHT;
+ _itoa(ret, itoabuf, 10);
+ SetDlgItemTextA(hwndDlg, IDC_MRGN_RIGHT, itoabuf);
+ }
+
+ if (item->MARGIN_BOTTOM == -1)
+ SetDlgItemTextA(hwndDlg, IDC_MRGN_BOTTOM, "");
+ else {
+ ret = item->MARGIN_BOTTOM;
+ _itoa(ret, itoabuf, 10);
+ SetDlgItemTextA(hwndDlg, IDC_MRGN_BOTTOM, itoabuf);
+ }
+ if(item->BORDERSTYLE == -1)
+ SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_SETCURSEL, 0, 0);
+ else {
+ index = 0;
+ switch(item->BORDERSTYLE) {
+ case 0:
+ case -1:
+ index = 0;
+ break;
+ case BDR_RAISEDOUTER:
+ index = 1;
+ break;
+ case BDR_SUNKENINNER:
+ index = 2;
+ break;
+ case EDGE_BUMP:
+ index = 3;
+ break;
+ case EDGE_ETCHED:
+ index = 4;
+ break;
+ }
+ SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_SETCURSEL, (WPARAM)index, 0);
+ }
+ ReActiveCombo(hwndDlg);
}
// update dlg with selected item
static void FillOptionDialogByCurrentSel(HWND hwndDlg)
{
- int index = SendDlgItemMessage(hwndDlg, IDC_ITEMS, LB_GETCURSEL, 0, 0);
- int itemData = SendDlgItemMessage(hwndDlg, IDC_ITEMS, LB_GETITEMDATA, index, 0);
- if(itemData != ID_EXTBKSEPARATOR) {
- LastModifiedItem = itemData - ID_EXTBK_FIRST;
-
- if (CheckItem(itemData - ID_EXTBK_FIRST, hwndDlg)) {
- FillOptionDialogByStatusItem(hwndDlg, &StatusItems[itemData - ID_EXTBK_FIRST]);
- }
- }
+ int index = SendDlgItemMessage(hwndDlg, IDC_ITEMS, LB_GETCURSEL, 0, 0);
+ int itemData = SendDlgItemMessage(hwndDlg, IDC_ITEMS, LB_GETITEMDATA, index, 0);
+ if(itemData != ID_EXTBKSEPARATOR) {
+ LastModifiedItem = itemData - ID_EXTBK_FIRST;
+
+ if (CheckItem(itemData - ID_EXTBK_FIRST, hwndDlg)) {
+ FillOptionDialogByStatusItem(hwndDlg, &StatusItems[itemData - ID_EXTBK_FIRST]);
+ }
+ }
}
// enabled all status controls if the selected item is a separator
static BOOL CheckItem(int item, HWND hwndDlg)
{
- if (StatusItems[item].statusID == ID_EXTBKSEPARATOR) {
- ChangeControlItems(hwndDlg, 0, 0);
- return FALSE;
- } else {
- ChangeControlItems(hwndDlg, 1, 0);
- return TRUE;
- }
+ if (StatusItems[item].statusID == ID_EXTBKSEPARATOR) {
+ ChangeControlItems(hwndDlg, 0, 0);
+ return FALSE;
+ } else {
+ ChangeControlItems(hwndDlg, 1, 0);
+ return TRUE;
+ }
}
static void SetChangedStatusItemFlag(WPARAM wParam, HWND hwndDlg)
{
- if (LOWORD(wParam) != IDC_ITEMS
- && (GetDlgItem(hwndDlg, LOWORD(wParam)) == GetFocus() || HIWORD(wParam) == CPN_COLOURCHANGED)
- && (HIWORD(wParam) == BN_CLICKED || HIWORD(wParam) == EN_CHANGE || HIWORD(wParam) == CPN_COLOURCHANGED)) {
- switch (LOWORD(wParam)) {
- case IDC_IGNORE:
- ChangedSItems.bIGNORED = TRUE; break;
- case IDC_GRADIENT:
- ChangedSItems.bGRADIENT = TRUE; break;
- case IDC_GRADIENT_LR:
- ChangedSItems.bGRADIENT = TRUE;break;
- case IDC_GRADIENT_RL:
- ChangedSItems.bGRADIENT = TRUE; break;
- case IDC_GRADIENT_BT:
- ChangedSItems.bGRADIENT = TRUE; break;
- case IDC_GRADIENT_TB:
- ChangedSItems.bGRADIENT = TRUE; break;
-
- case IDC_CORNER:
- ChangedSItems.bCORNER = TRUE; break;
- case IDC_CORNER_TL:
- ChangedSItems.bCORNER = TRUE; break;
- case IDC_CORNER_TR:
- ChangedSItems.bCORNER = TRUE; break;
- case IDC_CORNER_BR:
- ChangedSItems.bCORNER = TRUE; break;
- case IDC_CORNER_BL:
- ChangedSItems.bCORNER = TRUE; break;
-
- case IDC_BASECOLOUR:
- ChangedSItems.bCOLOR = TRUE; break;
- case IDC_BASECOLOUR2:
- ChangedSItems.bCOLOR2 = TRUE; break;
- case IDC_COLOR2_TRANSPARENT:
- ChangedSItems.bCOLOR2_TRANSPARENT = TRUE; break;
- case IDC_TEXTCOLOUR:
- ChangedSItems.bTEXTCOLOR = TRUE; break;
-
- case IDC_ALPHA:
- ChangedSItems.bALPHA = TRUE; break;
- case IDC_ALPHASPIN:
- ChangedSItems.bALPHA = TRUE; break;
-
- case IDC_MRGN_LEFT:
- ChangedSItems.bMARGIN_LEFT = TRUE; break;
- case IDC_MRGN_LEFT_SPIN:
- ChangedSItems.bMARGIN_LEFT = TRUE; break;
-
- case IDC_MRGN_TOP:
- ChangedSItems.bMARGIN_TOP = TRUE; break;
- case IDC_MRGN_TOP_SPIN:
- ChangedSItems.bMARGIN_TOP = TRUE; break;
-
- case IDC_MRGN_RIGHT:
- ChangedSItems.bMARGIN_RIGHT = TRUE; break;
- case IDC_MRGN_RIGHT_SPIN:
- ChangedSItems.bMARGIN_RIGHT = TRUE; break;
-
- case IDC_MRGN_BOTTOM:
- ChangedSItems.bMARGIN_BOTTOM = TRUE; break;
- case IDC_MRGN_BOTTOM_SPIN:
- ChangedSItems.bMARGIN_BOTTOM = TRUE; break;
-
- case IDC_BORDERTYPE:
- ChangedSItems.bBORDERSTYLE = TRUE; break;
- }
- }
+ if (LOWORD(wParam) != IDC_ITEMS
+ && (GetDlgItem(hwndDlg, LOWORD(wParam)) == GetFocus() || HIWORD(wParam) == CPN_COLOURCHANGED)
+ && (HIWORD(wParam) == BN_CLICKED || HIWORD(wParam) == EN_CHANGE || HIWORD(wParam) == CPN_COLOURCHANGED)) {
+ switch (LOWORD(wParam)) {
+ case IDC_IGNORE:
+ ChangedSItems.bIGNORED = TRUE; break;
+ case IDC_GRADIENT:
+ ChangedSItems.bGRADIENT = TRUE; break;
+ case IDC_GRADIENT_LR:
+ ChangedSItems.bGRADIENT = TRUE;break;
+ case IDC_GRADIENT_RL:
+ ChangedSItems.bGRADIENT = TRUE; break;
+ case IDC_GRADIENT_BT:
+ ChangedSItems.bGRADIENT = TRUE; break;
+ case IDC_GRADIENT_TB:
+ ChangedSItems.bGRADIENT = TRUE; break;
+
+ case IDC_CORNER:
+ ChangedSItems.bCORNER = TRUE; break;
+ case IDC_CORNER_TL:
+ ChangedSItems.bCORNER = TRUE; break;
+ case IDC_CORNER_TR:
+ ChangedSItems.bCORNER = TRUE; break;
+ case IDC_CORNER_BR:
+ ChangedSItems.bCORNER = TRUE; break;
+ case IDC_CORNER_BL:
+ ChangedSItems.bCORNER = TRUE; break;
+
+ case IDC_BASECOLOUR:
+ ChangedSItems.bCOLOR = TRUE; break;
+ case IDC_BASECOLOUR2:
+ ChangedSItems.bCOLOR2 = TRUE; break;
+ case IDC_COLOR2_TRANSPARENT:
+ ChangedSItems.bCOLOR2_TRANSPARENT = TRUE; break;
+ case IDC_TEXTCOLOUR:
+ ChangedSItems.bTEXTCOLOR = TRUE; break;
+
+ case IDC_ALPHA:
+ ChangedSItems.bALPHA = TRUE; break;
+ case IDC_ALPHASPIN:
+ ChangedSItems.bALPHA = TRUE; break;
+
+ case IDC_MRGN_LEFT:
+ ChangedSItems.bMARGIN_LEFT = TRUE; break;
+ case IDC_MRGN_LEFT_SPIN:
+ ChangedSItems.bMARGIN_LEFT = TRUE; break;
+
+ case IDC_MRGN_TOP:
+ ChangedSItems.bMARGIN_TOP = TRUE; break;
+ case IDC_MRGN_TOP_SPIN:
+ ChangedSItems.bMARGIN_TOP = TRUE; break;
+
+ case IDC_MRGN_RIGHT:
+ ChangedSItems.bMARGIN_RIGHT = TRUE; break;
+ case IDC_MRGN_RIGHT_SPIN:
+ ChangedSItems.bMARGIN_RIGHT = TRUE; break;
+
+ case IDC_MRGN_BOTTOM:
+ ChangedSItems.bMARGIN_BOTTOM = TRUE; break;
+ case IDC_MRGN_BOTTOM_SPIN:
+ ChangedSItems.bMARGIN_BOTTOM = TRUE; break;
+
+ case IDC_BORDERTYPE:
+ ChangedSItems.bBORDERSTYLE = TRUE; break;
+ }
+ }
}
static BOOL isValidItem(void)
{
- if (StatusItems[LastModifiedItem].statusID == ID_EXTBKSEPARATOR)
- return FALSE;
+ if (StatusItems[LastModifiedItem].statusID == ID_EXTBKSEPARATOR)
+ return FALSE;
- return TRUE;
+ return TRUE;
}
// updates the struct with the changed dlg item
static void UpdateStatusStructSettingsFromOptDlg(HWND hwndDlg, int index)
{
- char buf[15];
- ULONG bdrtype;
-
- if (ChangedSItems.bIGNORED)
- StatusItems[index]. IGNORED = IsDlgButtonChecked(hwndDlg, IDC_IGNORE);
-
- if (ChangedSItems.bGRADIENT) {
- StatusItems[index]. GRADIENT = GRADIENT_NONE;
- if (IsDlgButtonChecked(hwndDlg, IDC_GRADIENT))
- StatusItems[index].GRADIENT |= GRADIENT_ACTIVE;
- if (IsDlgButtonChecked(hwndDlg, IDC_GRADIENT_LR))
- StatusItems[index].GRADIENT |= GRADIENT_LR;
- if (IsDlgButtonChecked(hwndDlg, IDC_GRADIENT_RL))
- StatusItems[index].GRADIENT |= GRADIENT_RL;
- if (IsDlgButtonChecked(hwndDlg, IDC_GRADIENT_TB))
- StatusItems[index].GRADIENT |= GRADIENT_TB;
- if (IsDlgButtonChecked(hwndDlg, IDC_GRADIENT_BT))
- StatusItems[index].GRADIENT |= GRADIENT_BT;
- }
- if (ChangedSItems.bCORNER) {
- StatusItems[index]. CORNER = CORNER_NONE;
- if (IsDlgButtonChecked(hwndDlg, IDC_CORNER))
- StatusItems[index].CORNER |= CORNER_ACTIVE ;
- if (IsDlgButtonChecked(hwndDlg, IDC_CORNER_TL))
- StatusItems[index].CORNER |= CORNER_TL ;
- if (IsDlgButtonChecked(hwndDlg, IDC_CORNER_TR))
- StatusItems[index].CORNER |= CORNER_TR;
- if (IsDlgButtonChecked(hwndDlg, IDC_CORNER_BR))
- StatusItems[index].CORNER |= CORNER_BR;
- if (IsDlgButtonChecked(hwndDlg, IDC_CORNER_BL))
- StatusItems[index].CORNER |= CORNER_BL;
- }
-
- if (ChangedSItems.bCOLOR)
- StatusItems[index]. COLOR = SendDlgItemMessage(hwndDlg, IDC_BASECOLOUR, CPM_GETCOLOUR, 0, 0);
-
- if (ChangedSItems.bCOLOR2)
- StatusItems[index]. COLOR2 = SendDlgItemMessage(hwndDlg, IDC_BASECOLOUR2, CPM_GETCOLOUR, 0, 0);
-
- if (ChangedSItems.bCOLOR2_TRANSPARENT)
- StatusItems[index]. COLOR2_TRANSPARENT = IsDlgButtonChecked(hwndDlg, IDC_COLOR2_TRANSPARENT);
-
- if (ChangedSItems.bTEXTCOLOR)
- StatusItems[index]. TEXTCOLOR = SendDlgItemMessage(hwndDlg, IDC_TEXTCOLOUR, CPM_GETCOLOUR, 0, 0);
-
- if (ChangedSItems.bALPHA) {
- GetWindowTextA(GetDlgItem(hwndDlg, IDC_ALPHA), buf, 10); // can be removed now
- if (lstrlenA(buf) > 0)
- StatusItems[index]. ALPHA = (BYTE) SendDlgItemMessage(hwndDlg, IDC_ALPHASPIN, UDM_GETPOS, 0, 0);
- }
-
- if (ChangedSItems.bMARGIN_LEFT) {
- GetWindowTextA(GetDlgItem(hwndDlg, IDC_MRGN_LEFT), buf, 10);
- if (lstrlenA(buf) > 0)
- StatusItems[index]. MARGIN_LEFT = (BYTE) SendDlgItemMessage(hwndDlg, IDC_MRGN_LEFT_SPIN, UDM_GETPOS, 0, 0);
- }
-
- if (ChangedSItems.bMARGIN_TOP) {
- GetWindowTextA(GetDlgItem(hwndDlg, IDC_MRGN_TOP), buf, 10);
- if (lstrlenA(buf) > 0)
- StatusItems[index]. MARGIN_TOP = (BYTE) SendDlgItemMessage(hwndDlg, IDC_MRGN_TOP_SPIN, UDM_GETPOS, 0, 0);
- }
-
- if (ChangedSItems.bMARGIN_RIGHT) {
- GetWindowTextA(GetDlgItem(hwndDlg, IDC_MRGN_RIGHT), buf, 10);
- if (lstrlenA(buf) > 0)
- StatusItems[index]. MARGIN_RIGHT = (BYTE) SendDlgItemMessage(hwndDlg, IDC_MRGN_RIGHT_SPIN, UDM_GETPOS, 0, 0);
- }
-
- if (ChangedSItems.bMARGIN_BOTTOM) {
- GetWindowTextA(GetDlgItem(hwndDlg, IDC_MRGN_BOTTOM), buf, 10);
- if (lstrlenA(buf) > 0)
- StatusItems[index]. MARGIN_BOTTOM = (BYTE) SendDlgItemMessage(hwndDlg, IDC_MRGN_BOTTOM_SPIN, UDM_GETPOS, 0, 0);
- }
- if (ChangedSItems.bBORDERSTYLE) {
- bdrtype = SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_GETCURSEL, 0, 0);
- if(bdrtype == CB_ERR)
- StatusItems[index].BORDERSTYLE = 0;
- else {
- switch(bdrtype) {
- case 0:
- StatusItems[index].BORDERSTYLE = 0;
- break;
- case 1:
- StatusItems[index].BORDERSTYLE = BDR_RAISEDOUTER;
- break;
- case 2:
- StatusItems[index].BORDERSTYLE = BDR_SUNKENINNER;
- break;
- case 3:
- StatusItems[index].BORDERSTYLE = EDGE_BUMP;
- break;
- case 4:
- StatusItems[index].BORDERSTYLE = EDGE_ETCHED;
- break;
- default:
- StatusItems[index].BORDERSTYLE = 0;
- break;
- }
- }
- }
+ char buf[15];
+ ULONG bdrtype;
+
+ if (ChangedSItems.bIGNORED)
+ StatusItems[index]. IGNORED = IsDlgButtonChecked(hwndDlg, IDC_IGNORE);
+
+ if (ChangedSItems.bGRADIENT) {
+ StatusItems[index]. GRADIENT = GRADIENT_NONE;
+ if (IsDlgButtonChecked(hwndDlg, IDC_GRADIENT))
+ StatusItems[index].GRADIENT |= GRADIENT_ACTIVE;
+ if (IsDlgButtonChecked(hwndDlg, IDC_GRADIENT_LR))
+ StatusItems[index].GRADIENT |= GRADIENT_LR;
+ if (IsDlgButtonChecked(hwndDlg, IDC_GRADIENT_RL))
+ StatusItems[index].GRADIENT |= GRADIENT_RL;
+ if (IsDlgButtonChecked(hwndDlg, IDC_GRADIENT_TB))
+ StatusItems[index].GRADIENT |= GRADIENT_TB;
+ if (IsDlgButtonChecked(hwndDlg, IDC_GRADIENT_BT))
+ StatusItems[index].GRADIENT |= GRADIENT_BT;
+ }
+ if (ChangedSItems.bCORNER) {
+ StatusItems[index]. CORNER = CORNER_NONE;
+ if (IsDlgButtonChecked(hwndDlg, IDC_CORNER))
+ StatusItems[index].CORNER |= CORNER_ACTIVE ;
+ if (IsDlgButtonChecked(hwndDlg, IDC_CORNER_TL))
+ StatusItems[index].CORNER |= CORNER_TL ;
+ if (IsDlgButtonChecked(hwndDlg, IDC_CORNER_TR))
+ StatusItems[index].CORNER |= CORNER_TR;
+ if (IsDlgButtonChecked(hwndDlg, IDC_CORNER_BR))
+ StatusItems[index].CORNER |= CORNER_BR;
+ if (IsDlgButtonChecked(hwndDlg, IDC_CORNER_BL))
+ StatusItems[index].CORNER |= CORNER_BL;
+ }
+
+ if (ChangedSItems.bCOLOR)
+ StatusItems[index]. COLOR = SendDlgItemMessage(hwndDlg, IDC_BASECOLOUR, CPM_GETCOLOUR, 0, 0);
+
+ if (ChangedSItems.bCOLOR2)
+ StatusItems[index]. COLOR2 = SendDlgItemMessage(hwndDlg, IDC_BASECOLOUR2, CPM_GETCOLOUR, 0, 0);
+
+ if (ChangedSItems.bCOLOR2_TRANSPARENT)
+ StatusItems[index]. COLOR2_TRANSPARENT = IsDlgButtonChecked(hwndDlg, IDC_COLOR2_TRANSPARENT);
+
+ if (ChangedSItems.bTEXTCOLOR)
+ StatusItems[index]. TEXTCOLOR = SendDlgItemMessage(hwndDlg, IDC_TEXTCOLOUR, CPM_GETCOLOUR, 0, 0);
+
+ if (ChangedSItems.bALPHA) {
+ GetWindowTextA(GetDlgItem(hwndDlg, IDC_ALPHA), buf, 10); // can be removed now
+ if (lstrlenA(buf) > 0)
+ StatusItems[index]. ALPHA = (BYTE) SendDlgItemMessage(hwndDlg, IDC_ALPHASPIN, UDM_GETPOS, 0, 0);
+ }
+
+ if (ChangedSItems.bMARGIN_LEFT) {
+ GetWindowTextA(GetDlgItem(hwndDlg, IDC_MRGN_LEFT), buf, 10);
+ if (lstrlenA(buf) > 0)
+ StatusItems[index]. MARGIN_LEFT = (BYTE) SendDlgItemMessage(hwndDlg, IDC_MRGN_LEFT_SPIN, UDM_GETPOS, 0, 0);
+ }
+
+ if (ChangedSItems.bMARGIN_TOP) {
+ GetWindowTextA(GetDlgItem(hwndDlg, IDC_MRGN_TOP), buf, 10);
+ if (lstrlenA(buf) > 0)
+ StatusItems[index]. MARGIN_TOP = (BYTE) SendDlgItemMessage(hwndDlg, IDC_MRGN_TOP_SPIN, UDM_GETPOS, 0, 0);
+ }
+
+ if (ChangedSItems.bMARGIN_RIGHT) {
+ GetWindowTextA(GetDlgItem(hwndDlg, IDC_MRGN_RIGHT), buf, 10);
+ if (lstrlenA(buf) > 0)
+ StatusItems[index]. MARGIN_RIGHT = (BYTE) SendDlgItemMessage(hwndDlg, IDC_MRGN_RIGHT_SPIN, UDM_GETPOS, 0, 0);
+ }
+
+ if (ChangedSItems.bMARGIN_BOTTOM) {
+ GetWindowTextA(GetDlgItem(hwndDlg, IDC_MRGN_BOTTOM), buf, 10);
+ if (lstrlenA(buf) > 0)
+ StatusItems[index]. MARGIN_BOTTOM = (BYTE) SendDlgItemMessage(hwndDlg, IDC_MRGN_BOTTOM_SPIN, UDM_GETPOS, 0, 0);
+ }
+ if (ChangedSItems.bBORDERSTYLE) {
+ bdrtype = SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_GETCURSEL, 0, 0);
+ if(bdrtype == CB_ERR)
+ StatusItems[index].BORDERSTYLE = 0;
+ else {
+ switch(bdrtype) {
+ case 0:
+ StatusItems[index].BORDERSTYLE = 0;
+ break;
+ case 1:
+ StatusItems[index].BORDERSTYLE = BDR_RAISEDOUTER;
+ break;
+ case 2:
+ StatusItems[index].BORDERSTYLE = BDR_SUNKENINNER;
+ break;
+ case 3:
+ StatusItems[index].BORDERSTYLE = EDGE_BUMP;
+ break;
+ case 4:
+ StatusItems[index].BORDERSTYLE = EDGE_ETCHED;
+ break;
+ default:
+ StatusItems[index].BORDERSTYLE = 0;
+ break;
+ }
+ }
+ }
}
static void SaveLatestChanges(HWND hwndDlg)
{
- int n, itemData;
- // process old selection
- if (last_selcount > 0) {
- for (n = 0; n < last_selcount; n++) {
- itemData = SendDlgItemMessage(hwndDlg, IDC_ITEMS, LB_GETITEMDATA, last_indizes[n], 0);
- if (itemData != ID_EXTBKSEPARATOR) {
- UpdateStatusStructSettingsFromOptDlg(hwndDlg, itemData - ID_EXTBK_FIRST);
- }
- }
- }
-
- // reset bChange
- ChangedSItems.bALPHA = FALSE;
- ChangedSItems.bGRADIENT = FALSE;
- ChangedSItems.bCORNER = FALSE;
- ChangedSItems.bCOLOR = FALSE;
- ChangedSItems.bCOLOR2 = FALSE;
- ChangedSItems.bCOLOR2_TRANSPARENT = FALSE;
- ChangedSItems.bTEXTCOLOR = FALSE;
- ChangedSItems.bALPHA = FALSE;
- ChangedSItems.bMARGIN_LEFT = FALSE;
- ChangedSItems.bMARGIN_TOP = FALSE;
- ChangedSItems.bMARGIN_RIGHT = FALSE;
- ChangedSItems.bMARGIN_BOTTOM = FALSE;
- ChangedSItems.bIGNORED = FALSE;
- ChangedSItems.bBORDERSTYLE = FALSE;
+ int n, itemData;
+ // process old selection
+ if (last_selcount > 0) {
+ for (n = 0; n < last_selcount; n++) {
+ itemData = SendDlgItemMessage(hwndDlg, IDC_ITEMS, LB_GETITEMDATA, last_indizes[n], 0);
+ if (itemData != ID_EXTBKSEPARATOR) {
+ UpdateStatusStructSettingsFromOptDlg(hwndDlg, itemData - ID_EXTBK_FIRST);
+ }
+ }
+ }
+
+ // reset bChange
+ ChangedSItems.bALPHA = FALSE;
+ ChangedSItems.bGRADIENT = FALSE;
+ ChangedSItems.bCORNER = FALSE;
+ ChangedSItems.bCOLOR = FALSE;
+ ChangedSItems.bCOLOR2 = FALSE;
+ ChangedSItems.bCOLOR2_TRANSPARENT = FALSE;
+ ChangedSItems.bTEXTCOLOR = FALSE;
+ ChangedSItems.bALPHA = FALSE;
+ ChangedSItems.bMARGIN_LEFT = FALSE;
+ ChangedSItems.bMARGIN_TOP = FALSE;
+ ChangedSItems.bMARGIN_RIGHT = FALSE;
+ ChangedSItems.bMARGIN_BOTTOM = FALSE;
+ ChangedSItems.bIGNORED = FALSE;
+ ChangedSItems.bBORDERSTYLE = FALSE;
}
static UINT _controls_to_refresh[] = {
- IDC_BORDERTYPE,
- IDC_3DDARKCOLOR,
- IDC_3DLIGHTCOLOR,
- IDC_MRGN_BOTTOM,
- IDC_MRGN_LEFT,
- IDC_ALPHASPIN,
- IDC_CORNER,
- IDC_MRGN_TOP_SPIN,
- IDC_MRGN_RIGHT_SPIN,
- IDC_MRGN_BOTTOM_SPIN,
- IDC_MRGN_LEFT_SPIN,
- IDC_GRADIENT,
- IDC_GRADIENT_LR,
- IDC_GRADIENT_RL,
- IDC_GRADIENT_TB,
- IDC_BASECOLOUR,
- IDC_ALPHA,
- IDC_MRGN_TOP,
- IDC_MRGN_RIGHT,
- IDC_GRADIENT_BT,
- IDC_BASECOLOUR2,
- IDC_TEXTCOLOUR,
- IDC_CORNER_TL,
- IDC_CORNER_TR,
- IDC_CORNER_BR,
- IDC_CORNER_BL,
- IDC_IGNORE,
- IDC_ALPHALABLE,
- IDC_COLOR2LABLE,
- IDC_COLORLABLE,
- IDC_TEXTCOLOURLABLE,
- IDC_COLOR2_TRANSPARENT,
- 0
+ IDC_BORDERTYPE,
+ IDC_3DDARKCOLOR,
+ IDC_3DLIGHTCOLOR,
+ IDC_MRGN_BOTTOM,
+ IDC_MRGN_LEFT,
+ IDC_ALPHASPIN,
+ IDC_CORNER,
+ IDC_MRGN_TOP_SPIN,
+ IDC_MRGN_RIGHT_SPIN,
+ IDC_MRGN_BOTTOM_SPIN,
+ IDC_MRGN_LEFT_SPIN,
+ IDC_GRADIENT,
+ IDC_GRADIENT_LR,
+ IDC_GRADIENT_RL,
+ IDC_GRADIENT_TB,
+ IDC_BASECOLOUR,
+ IDC_ALPHA,
+ IDC_MRGN_TOP,
+ IDC_MRGN_RIGHT,
+ IDC_GRADIENT_BT,
+ IDC_BASECOLOUR2,
+ IDC_TEXTCOLOUR,
+ IDC_CORNER_TL,
+ IDC_CORNER_TR,
+ IDC_CORNER_BR,
+ IDC_CORNER_BL,
+ IDC_IGNORE,
+ IDC_ALPHALABLE,
+ IDC_COLOR2LABLE,
+ IDC_COLORLABLE,
+ IDC_TEXTCOLOURLABLE,
+ IDC_COLOR2_TRANSPARENT,
+ 0
};
static void RefreshControls(HWND hwnd)
{
- for(int i = 0; _controls_to_refresh[i]; i++)
- InvalidateRect(GetDlgItem(hwnd, _controls_to_refresh[i]), NULL, FALSE);
+ for(int i = 0; _controls_to_refresh[i]; i++)
+ InvalidateRect(GetDlgItem(hwnd, _controls_to_refresh[i]), NULL, FALSE);
}
// wenn die listbox geдndert wurde
static void OnListItemsChange(HWND hwndDlg)
{
- SendMessage(hwndDlg, WM_SETREDRAW, FALSE, 0);
- SaveLatestChanges(hwndDlg);
-
- // set new selection
- last_selcount = SendMessage(GetDlgItem(hwndDlg, IDC_ITEMS), LB_GETSELCOUNT, 0, 0);
- if (last_selcount > 0) {
- int n, real_index, itemData, first_item;
- StatusItems_t DialogSettingForMultiSel;
-
- // get selected indizes
- SendMessage(GetDlgItem(hwndDlg, IDC_ITEMS), LB_GETSELITEMS, 64, (LPARAM) last_indizes);
-
- // initialize with first items value
-
- first_item = SendDlgItemMessage(hwndDlg, IDC_ITEMS, LB_GETITEMDATA, last_indizes[0], 0) - ID_EXTBK_FIRST;
- DialogSettingForMultiSel = StatusItems[first_item];
- for (n = 0; n < last_selcount; n++) {
- itemData = SendDlgItemMessage(hwndDlg, IDC_ITEMS, LB_GETITEMDATA, last_indizes[n], 0);
- if (itemData != ID_EXTBKSEPARATOR) {
- real_index = itemData - ID_EXTBK_FIRST;
- if (StatusItems[real_index].ALPHA != StatusItems[first_item].ALPHA)
- DialogSettingForMultiSel.ALPHA = -1;
- if (StatusItems[real_index].COLOR != StatusItems[first_item].COLOR)
- DialogSettingForMultiSel.COLOR = CLCDEFAULT_COLOR;
- if (StatusItems[real_index].COLOR2 != StatusItems[first_item].COLOR2)
- DialogSettingForMultiSel.COLOR2 = CLCDEFAULT_COLOR2;
- if (StatusItems[real_index].COLOR2_TRANSPARENT != StatusItems[first_item].COLOR2_TRANSPARENT)
- DialogSettingForMultiSel.COLOR2_TRANSPARENT = CLCDEFAULT_COLOR2_TRANSPARENT;
- if (StatusItems[real_index].TEXTCOLOR != StatusItems[first_item].TEXTCOLOR)
- DialogSettingForMultiSel.TEXTCOLOR = CLCDEFAULT_TEXTCOLOR;
- if (StatusItems[real_index].CORNER != StatusItems[first_item].CORNER)
- DialogSettingForMultiSel.CORNER = CLCDEFAULT_CORNER;
- if (StatusItems[real_index].GRADIENT != StatusItems[first_item].GRADIENT)
- DialogSettingForMultiSel.GRADIENT = CLCDEFAULT_GRADIENT;
- if (StatusItems[real_index].IGNORED != StatusItems[first_item].IGNORED)
- DialogSettingForMultiSel.IGNORED = CLCDEFAULT_IGNORE;
- if (StatusItems[real_index].MARGIN_BOTTOM != StatusItems[first_item].MARGIN_BOTTOM)
- DialogSettingForMultiSel.MARGIN_BOTTOM = -1;
- if (StatusItems[real_index].MARGIN_LEFT != StatusItems[first_item].MARGIN_LEFT)
- DialogSettingForMultiSel.MARGIN_LEFT = -1;
- if (StatusItems[real_index].MARGIN_RIGHT != StatusItems[first_item].MARGIN_RIGHT)
- DialogSettingForMultiSel.MARGIN_RIGHT = -1;
- if (StatusItems[real_index].MARGIN_TOP != StatusItems[first_item].MARGIN_TOP)
- DialogSettingForMultiSel.MARGIN_TOP = -1;
- if (StatusItems[real_index].BORDERSTYLE != StatusItems[first_item].BORDERSTYLE)
- DialogSettingForMultiSel.BORDERSTYLE = -1;
- }
- }
-
- if (last_selcount == 1 && StatusItems[first_item].statusID == ID_EXTBKSEPARATOR) {
- ChangeControlItems(hwndDlg, 0, 0);
- last_selcount = 0;
- } else
- ChangeControlItems(hwndDlg, 1, 0);
- FillOptionDialogByStatusItem(hwndDlg, &DialogSettingForMultiSel);
- InvalidateRect(GetDlgItem(hwndDlg, IDC_ITEMS), NULL, FALSE);
- }
- SendMessage(hwndDlg, WM_SETREDRAW, TRUE, 0);
- RefreshControls(hwndDlg);
+ SendMessage(hwndDlg, WM_SETREDRAW, FALSE, 0);
+ SaveLatestChanges(hwndDlg);
+
+ // set new selection
+ last_selcount = SendMessage(GetDlgItem(hwndDlg, IDC_ITEMS), LB_GETSELCOUNT, 0, 0);
+ if (last_selcount > 0) {
+ int n, real_index, itemData, first_item;
+ StatusItems_t DialogSettingForMultiSel;
+
+ // get selected indizes
+ SendMessage(GetDlgItem(hwndDlg, IDC_ITEMS), LB_GETSELITEMS, 64, (LPARAM) last_indizes);
+
+ // initialize with first items value
+
+ first_item = SendDlgItemMessage(hwndDlg, IDC_ITEMS, LB_GETITEMDATA, last_indizes[0], 0) - ID_EXTBK_FIRST;
+ DialogSettingForMultiSel = StatusItems[first_item];
+ for (n = 0; n < last_selcount; n++) {
+ itemData = SendDlgItemMessage(hwndDlg, IDC_ITEMS, LB_GETITEMDATA, last_indizes[n], 0);
+ if (itemData != ID_EXTBKSEPARATOR) {
+ real_index = itemData - ID_EXTBK_FIRST;
+ if (StatusItems[real_index].ALPHA != StatusItems[first_item].ALPHA)
+ DialogSettingForMultiSel.ALPHA = -1;
+ if (StatusItems[real_index].COLOR != StatusItems[first_item].COLOR)
+ DialogSettingForMultiSel.COLOR = CLCDEFAULT_COLOR;
+ if (StatusItems[real_index].COLOR2 != StatusItems[first_item].COLOR2)
+ DialogSettingForMultiSel.COLOR2 = CLCDEFAULT_COLOR2;
+ if (StatusItems[real_index].COLOR2_TRANSPARENT != StatusItems[first_item].COLOR2_TRANSPARENT)
+ DialogSettingForMultiSel.COLOR2_TRANSPARENT = CLCDEFAULT_COLOR2_TRANSPARENT;
+ if (StatusItems[real_index].TEXTCOLOR != StatusItems[first_item].TEXTCOLOR)
+ DialogSettingForMultiSel.TEXTCOLOR = CLCDEFAULT_TEXTCOLOR;
+ if (StatusItems[real_index].CORNER != StatusItems[first_item].CORNER)
+ DialogSettingForMultiSel.CORNER = CLCDEFAULT_CORNER;
+ if (StatusItems[real_index].GRADIENT != StatusItems[first_item].GRADIENT)
+ DialogSettingForMultiSel.GRADIENT = CLCDEFAULT_GRADIENT;
+ if (StatusItems[real_index].IGNORED != StatusItems[first_item].IGNORED)
+ DialogSettingForMultiSel.IGNORED = CLCDEFAULT_IGNORE;
+ if (StatusItems[real_index].MARGIN_BOTTOM != StatusItems[first_item].MARGIN_BOTTOM)
+ DialogSettingForMultiSel.MARGIN_BOTTOM = -1;
+ if (StatusItems[real_index].MARGIN_LEFT != StatusItems[first_item].MARGIN_LEFT)
+ DialogSettingForMultiSel.MARGIN_LEFT = -1;
+ if (StatusItems[real_index].MARGIN_RIGHT != StatusItems[first_item].MARGIN_RIGHT)
+ DialogSettingForMultiSel.MARGIN_RIGHT = -1;
+ if (StatusItems[real_index].MARGIN_TOP != StatusItems[first_item].MARGIN_TOP)
+ DialogSettingForMultiSel.MARGIN_TOP = -1;
+ if (StatusItems[real_index].BORDERSTYLE != StatusItems[first_item].BORDERSTYLE)
+ DialogSettingForMultiSel.BORDERSTYLE = -1;
+ }
+ }
+
+ if (last_selcount == 1 && StatusItems[first_item].statusID == ID_EXTBKSEPARATOR) {
+ ChangeControlItems(hwndDlg, 0, 0);
+ last_selcount = 0;
+ } else
+ ChangeControlItems(hwndDlg, 1, 0);
+ FillOptionDialogByStatusItem(hwndDlg, &DialogSettingForMultiSel);
+ InvalidateRect(GetDlgItem(hwndDlg, IDC_ITEMS), NULL, FALSE);
+ }
+ SendMessage(hwndDlg, WM_SETREDRAW, TRUE, 0);
+ RefreshControls(hwndDlg);
}
// fills the combobox of the options dlg for the first time
@@ -637,35 +636,35 @@ static void FillItemList(HWND hwndDlg)
static INT_PTR CALLBACK SkinEdit_ExtBkDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
- SKINDESCRIPTION *psd = (SKINDESCRIPTION *)GetWindowLongPtr(hwndDlg, GWLP_USERDATA);
-
- if(psd) {
- ID_EXTBK_FIRST = psd->firstItem;
- ID_EXTBK_LAST = psd->lastItem;
- StatusItems = psd->StatusItems;
- }
- switch (msg) {
- case WM_INITDIALOG:
- psd = (SKINDESCRIPTION *)malloc(sizeof(SKINDESCRIPTION));
- ZeroMemory(psd, sizeof(SKINDESCRIPTION));
- CopyMemory(psd, (void *)lParam, sizeof(SKINDESCRIPTION));
- SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)psd);
-
- if(psd) {
- ID_EXTBK_FIRST = psd->firstItem;
- ID_EXTBK_LAST = psd->lastItem;
- StatusItems = psd->StatusItems;
- }
-
- TranslateDialogDefault(hwndDlg);
- FillItemList(hwndDlg);
- SendMessage(hwndDlg, WM_USER + 101, 0, 0);
-
- psd->hMenuItems = CreatePopupMenu();
- AppendMenu(psd->hMenuItems, MF_STRING | MF_DISABLED, (UINT_PTR)0, LPGENT("Copy from"));
- AppendMenuA(psd->hMenuItems, MF_SEPARATOR, (UINT_PTR)0, NULL);
-
- {
+ SKINDESCRIPTION *psd = (SKINDESCRIPTION *)GetWindowLongPtr(hwndDlg, GWLP_USERDATA);
+
+ if(psd) {
+ ID_EXTBK_FIRST = psd->firstItem;
+ ID_EXTBK_LAST = psd->lastItem;
+ StatusItems = psd->StatusItems;
+ }
+ switch (msg) {
+ case WM_INITDIALOG:
+ psd = (SKINDESCRIPTION *)malloc(sizeof(SKINDESCRIPTION));
+ ZeroMemory(psd, sizeof(SKINDESCRIPTION));
+ CopyMemory(psd, (void *)lParam, sizeof(SKINDESCRIPTION));
+ SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)psd);
+
+ if(psd) {
+ ID_EXTBK_FIRST = psd->firstItem;
+ ID_EXTBK_LAST = psd->lastItem;
+ StatusItems = psd->StatusItems;
+ }
+
+ TranslateDialogDefault(hwndDlg);
+ FillItemList(hwndDlg);
+ SendMessage(hwndDlg, WM_USER + 101, 0, 0);
+
+ psd->hMenuItems = CreatePopupMenu();
+ AppendMenu(psd->hMenuItems, MF_STRING | MF_DISABLED, (UINT_PTR)0, LPGENT("Copy from"));
+ AppendMenuA(psd->hMenuItems, MF_SEPARATOR, (UINT_PTR)0, NULL);
+
+ {
int i;
for(i = ID_EXTBK_FIRST; i <= ID_EXTBK_LAST; i++) {
@@ -675,245 +674,245 @@ static INT_PTR CALLBACK SkinEdit_ExtBkDlgProc(HWND hwndDlg, UINT msg, WPARAM wPa
AppendMenuA(psd->hMenuItems, MF_STRING, (UINT_PTR)i, &StatusItems[i - ID_EXTBK_FIRST].szName[iOff]);
}
}
- return TRUE;
- case WM_USER + 101:
- {
- DBVARIANT dbv = {0};
-
- SendDlgItemMessage(hwndDlg, IDC_MRGN_LEFT_SPIN, UDM_SETRANGE, 0, MAKELONG(100, 0));
- SendDlgItemMessage(hwndDlg, IDC_MRGN_TOP_SPIN, UDM_SETRANGE, 0, MAKELONG(100, 0));
- SendDlgItemMessage(hwndDlg, IDC_MRGN_RIGHT_SPIN, UDM_SETRANGE, 0, MAKELONG(100, 0));
- SendDlgItemMessage(hwndDlg, IDC_MRGN_BOTTOM_SPIN, UDM_SETRANGE, 0, MAKELONG(100, 0));
- SendDlgItemMessage(hwndDlg, IDC_ALPHASPIN, UDM_SETRANGE, 0, MAKELONG(100, 0));
-
- SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("<None>"));
- SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Raised"));
- SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Sunken"));
- SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Bumped"));
- SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Etched"));
-
- SendDlgItemMessage(hwndDlg, IDC_3DDARKCOLOR, CPM_SETCOLOUR, 0, DBGetContactSettingDword(NULL, "CLCExt", "3ddark", RGB(224,224,224)));
- SendDlgItemMessage(hwndDlg, IDC_3DLIGHTCOLOR, CPM_SETCOLOUR, 0, DBGetContactSettingDword(NULL, "CLCExt", "3dbright", RGB(224,224,224)));
- return 0;
- }
-
- case WM_DRAWITEM:
- {
- DRAWITEMSTRUCT *dis = (DRAWITEMSTRUCT *) lParam;
- int iItem = dis->itemData;
- StatusItems_t *item = 0;
-
- SetBkMode(dis->hDC, TRANSPARENT);
- FillRect(dis->hDC, &dis->rcItem, GetSysColorBrush(COLOR_WINDOW));
-
- if(iItem >= ID_EXTBK_FIRST && iItem <= ID_EXTBK_LAST)
- item = &StatusItems[iItem - ID_EXTBK_FIRST];
-
- if (dis->itemState & ODS_SELECTED && iItem != ID_EXTBKSEPARATOR) {
- FillRect(dis->hDC, &dis->rcItem, GetSysColorBrush(COLOR_HIGHLIGHT));
- SetTextColor(dis->hDC, GetSysColor(COLOR_HIGHLIGHTTEXT));
- }
- else {
- FillRect(dis->hDC, &dis->rcItem, GetSysColorBrush(COLOR_WINDOW));
- if(item && item->IGNORED)
- SetTextColor(dis->hDC, RGB(255, 0, 0));
- else
- SetTextColor(dis->hDC, GetSysColor(COLOR_WINDOWTEXT));
- }
- if(iItem == ID_EXTBKSEPARATOR) {
- HPEN hPen, hPenOld;
- POINT pt;
-
- hPen = CreatePen(PS_SOLID, 2, GetSysColor(COLOR_WINDOWTEXT));
- hPenOld = (HPEN)SelectObject(dis->hDC, hPen);
-
- MoveToEx(dis->hDC, dis->rcItem.left, (dis->rcItem.top + dis->rcItem.bottom) / 2, &pt);
- LineTo(dis->hDC, dis->rcItem.right, (dis->rcItem.top + dis->rcItem.bottom) / 2);
- SelectObject(dis->hDC, hPenOld);
- DeleteObject((HGDIOBJ)hPen);
- }
- else if(dis->itemID >= 0 && item) {
- char *szName = item->szName[0] == '{' ? &item->szName[3] : item->szName;
-
- TextOutA(dis->hDC, dis->rcItem.left, dis->rcItem.top, szName, lstrlenA(szName));
- }
- return TRUE;
- }
-
- case WM_CONTEXTMENU:
- {
- POINT pt;
- RECT rc;
- HWND hwndList = GetDlgItem(hwndDlg, IDC_ITEMS);
-
- GetCursorPos(&pt);
- GetWindowRect(hwndList, &rc);
- if(PtInRect(&rc, pt)) {
- int iSelection = (int)TrackPopupMenu(psd->hMenuItems, TPM_RETURNCMD, pt.x, pt.y, 0, hwndDlg, NULL);
-
- if(iSelection >= ID_EXTBK_FIRST && iSelection <= ID_EXTBK_LAST) {
- iSelection -= ID_EXTBK_FIRST;
-
- for(int i = ID_EXTBK_FIRST; i <= ID_EXTBK_LAST; i++) {
- if(SendMessage(hwndList, LB_GETSEL, i - ID_EXTBK_FIRST, 0) > 0) {
- int iIndex = SendMessage(hwndList, LB_GETITEMDATA, i - ID_EXTBK_FIRST, 0);
- iIndex -= ID_EXTBK_FIRST;
-
- if(iIndex >= 0) {
- StatusItems[iIndex].ALPHA = StatusItems[iSelection].ALPHA;
- StatusItems[iIndex].BORDERSTYLE = StatusItems[iSelection].BORDERSTYLE;
- StatusItems[iIndex].COLOR = StatusItems[iSelection].COLOR;
- StatusItems[iIndex].COLOR2 = StatusItems[iSelection].COLOR2;
- StatusItems[iIndex].COLOR2_TRANSPARENT = StatusItems[iSelection].COLOR2_TRANSPARENT;
- StatusItems[iIndex].CORNER = StatusItems[iSelection].CORNER;
- StatusItems[iIndex].GRADIENT = StatusItems[iSelection].GRADIENT;
- StatusItems[iIndex].IGNORED = StatusItems[iSelection].IGNORED;
- StatusItems[iIndex].imageItem = StatusItems[iSelection].imageItem;
- StatusItems[iIndex].MARGIN_BOTTOM = StatusItems[iSelection].MARGIN_BOTTOM;
- StatusItems[iIndex].MARGIN_LEFT = StatusItems[iSelection].MARGIN_LEFT;
- StatusItems[iIndex].MARGIN_RIGHT = StatusItems[iSelection].MARGIN_RIGHT;
- StatusItems[iIndex].MARGIN_TOP = StatusItems[iSelection].MARGIN_TOP;
- StatusItems[iIndex].TEXTCOLOR = StatusItems[iSelection].TEXTCOLOR;
- }
- }
- }
- OnListItemsChange(hwndDlg);
- }
- }
- break;
- }
- case WM_COMMAND:
- // this will check if the user changed some actual statusitems values
- // if yes the flag bChanged will be set to TRUE
- SetChangedStatusItemFlag(wParam, hwndDlg);
- switch(LOWORD(wParam)) {
- case IDC_ITEMS:
- if (HIWORD(wParam) != LBN_SELCHANGE)
- return FALSE;
- {
- int iItem = SendDlgItemMessage(hwndDlg, IDC_ITEMS, LB_GETITEMDATA, SendDlgItemMessage(hwndDlg, IDC_ITEMS, LB_GETCURSEL, 0, 0), 0);
- if(iItem == ID_EXTBKSEPARATOR)
- return FALSE;
- }
- OnListItemsChange(hwndDlg);
+ return TRUE;
+ case WM_USER + 101:
+ {
+ DBVARIANT dbv = {0};
+
+ SendDlgItemMessage(hwndDlg, IDC_MRGN_LEFT_SPIN, UDM_SETRANGE, 0, MAKELONG(100, 0));
+ SendDlgItemMessage(hwndDlg, IDC_MRGN_TOP_SPIN, UDM_SETRANGE, 0, MAKELONG(100, 0));
+ SendDlgItemMessage(hwndDlg, IDC_MRGN_RIGHT_SPIN, UDM_SETRANGE, 0, MAKELONG(100, 0));
+ SendDlgItemMessage(hwndDlg, IDC_MRGN_BOTTOM_SPIN, UDM_SETRANGE, 0, MAKELONG(100, 0));
+ SendDlgItemMessage(hwndDlg, IDC_ALPHASPIN, UDM_SETRANGE, 0, MAKELONG(100, 0));
+
+ SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("<None>"));
+ SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Raised"));
+ SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Sunken"));
+ SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Bumped"));
+ SendDlgItemMessage(hwndDlg, IDC_BORDERTYPE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Etched"));
+
+ SendDlgItemMessage(hwndDlg, IDC_3DDARKCOLOR, CPM_SETCOLOUR, 0, DBGetContactSettingDword(NULL, "CLCExt", "3ddark", RGB(224,224,224)));
+ SendDlgItemMessage(hwndDlg, IDC_3DLIGHTCOLOR, CPM_SETCOLOUR, 0, DBGetContactSettingDword(NULL, "CLCExt", "3dbright", RGB(224,224,224)));
+ return 0;
+ }
+
+ case WM_DRAWITEM:
+ {
+ DRAWITEMSTRUCT *dis = (DRAWITEMSTRUCT *) lParam;
+ int iItem = dis->itemData;
+ StatusItems_t *item = 0;
+
+ SetBkMode(dis->hDC, TRANSPARENT);
+ FillRect(dis->hDC, &dis->rcItem, GetSysColorBrush(COLOR_WINDOW));
+
+ if(iItem >= ID_EXTBK_FIRST && iItem <= ID_EXTBK_LAST)
+ item = &StatusItems[iItem - ID_EXTBK_FIRST];
+
+ if (dis->itemState & ODS_SELECTED && iItem != ID_EXTBKSEPARATOR) {
+ FillRect(dis->hDC, &dis->rcItem, GetSysColorBrush(COLOR_HIGHLIGHT));
+ SetTextColor(dis->hDC, GetSysColor(COLOR_HIGHLIGHTTEXT));
+ }
+ else {
+ FillRect(dis->hDC, &dis->rcItem, GetSysColorBrush(COLOR_WINDOW));
+ if(item && item->IGNORED)
+ SetTextColor(dis->hDC, RGB(255, 0, 0));
+ else
+ SetTextColor(dis->hDC, GetSysColor(COLOR_WINDOWTEXT));
+ }
+ if(iItem == ID_EXTBKSEPARATOR) {
+ HPEN hPen, hPenOld;
+ POINT pt;
+
+ hPen = CreatePen(PS_SOLID, 2, GetSysColor(COLOR_WINDOWTEXT));
+ hPenOld = (HPEN)SelectObject(dis->hDC, hPen);
+
+ MoveToEx(dis->hDC, dis->rcItem.left, (dis->rcItem.top + dis->rcItem.bottom) / 2, &pt);
+ LineTo(dis->hDC, dis->rcItem.right, (dis->rcItem.top + dis->rcItem.bottom) / 2);
+ SelectObject(dis->hDC, hPenOld);
+ DeleteObject((HGDIOBJ)hPen);
+ }
+ else if(dis->itemID >= 0 && item) {
+ char *szName = item->szName[0] == '{' ? &item->szName[3] : item->szName;
+
+ TextOutA(dis->hDC, dis->rcItem.left, dis->rcItem.top, szName, lstrlenA(szName));
+ }
+ return TRUE;
+ }
+
+ case WM_CONTEXTMENU:
+ {
+ POINT pt;
+ RECT rc;
+ HWND hwndList = GetDlgItem(hwndDlg, IDC_ITEMS);
+
+ GetCursorPos(&pt);
+ GetWindowRect(hwndList, &rc);
+ if(PtInRect(&rc, pt)) {
+ int iSelection = (int)TrackPopupMenu(psd->hMenuItems, TPM_RETURNCMD, pt.x, pt.y, 0, hwndDlg, NULL);
+
+ if(iSelection >= ID_EXTBK_FIRST && iSelection <= ID_EXTBK_LAST) {
+ iSelection -= ID_EXTBK_FIRST;
+
+ for(int i = ID_EXTBK_FIRST; i <= ID_EXTBK_LAST; i++) {
+ if(SendMessage(hwndList, LB_GETSEL, i - ID_EXTBK_FIRST, 0) > 0) {
+ int iIndex = SendMessage(hwndList, LB_GETITEMDATA, i - ID_EXTBK_FIRST, 0);
+ iIndex -= ID_EXTBK_FIRST;
+
+ if(iIndex >= 0) {
+ StatusItems[iIndex].ALPHA = StatusItems[iSelection].ALPHA;
+ StatusItems[iIndex].BORDERSTYLE = StatusItems[iSelection].BORDERSTYLE;
+ StatusItems[iIndex].COLOR = StatusItems[iSelection].COLOR;
+ StatusItems[iIndex].COLOR2 = StatusItems[iSelection].COLOR2;
+ StatusItems[iIndex].COLOR2_TRANSPARENT = StatusItems[iSelection].COLOR2_TRANSPARENT;
+ StatusItems[iIndex].CORNER = StatusItems[iSelection].CORNER;
+ StatusItems[iIndex].GRADIENT = StatusItems[iSelection].GRADIENT;
+ StatusItems[iIndex].IGNORED = StatusItems[iSelection].IGNORED;
+ StatusItems[iIndex].imageItem = StatusItems[iSelection].imageItem;
+ StatusItems[iIndex].MARGIN_BOTTOM = StatusItems[iSelection].MARGIN_BOTTOM;
+ StatusItems[iIndex].MARGIN_LEFT = StatusItems[iSelection].MARGIN_LEFT;
+ StatusItems[iIndex].MARGIN_RIGHT = StatusItems[iSelection].MARGIN_RIGHT;
+ StatusItems[iIndex].MARGIN_TOP = StatusItems[iSelection].MARGIN_TOP;
+ StatusItems[iIndex].TEXTCOLOR = StatusItems[iSelection].TEXTCOLOR;
+ }
+ }
+ }
+ OnListItemsChange(hwndDlg);
+ }
+ }
+ break;
+ }
+ case WM_COMMAND:
+ // this will check if the user changed some actual statusitems values
+ // if yes the flag bChanged will be set to TRUE
+ SetChangedStatusItemFlag(wParam, hwndDlg);
+ switch(LOWORD(wParam)) {
+ case IDC_ITEMS:
+ if (HIWORD(wParam) != LBN_SELCHANGE)
+ return FALSE;
+ {
+ int iItem = SendDlgItemMessage(hwndDlg, IDC_ITEMS, LB_GETITEMDATA, SendDlgItemMessage(hwndDlg, IDC_ITEMS, LB_GETCURSEL, 0, 0), 0);
+ if(iItem == ID_EXTBKSEPARATOR)
+ return FALSE;
+ }
+ OnListItemsChange(hwndDlg);
if(psd->pfnClcOptionsChanged)
psd->pfnClcOptionsChanged();
- break;
- case IDC_GRADIENT:
- ReActiveCombo(hwndDlg);
- break;
- case IDC_CORNER:
- ReActiveCombo(hwndDlg);
- break;
- case IDC_IGNORE:
- ReActiveCombo(hwndDlg);
- break;
- case IDC_COLOR2_TRANSPARENT:
- ReActiveCombo(hwndDlg);
- break;
- case IDC_BORDERTYPE:
- break;
- }
- if ((LOWORD(wParam) == IDC_ALPHA || LOWORD(wParam) == IDC_MRGN_LEFT || LOWORD(wParam) == IDC_MRGN_BOTTOM || LOWORD(wParam) == IDC_MRGN_TOP || LOWORD(wParam) == IDC_MRGN_RIGHT) && (HIWORD(wParam) != EN_CHANGE || (HWND) lParam != GetFocus()))
- return 0;
- SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
- break;
-
- case WM_NOTIFY:
- switch (((LPNMHDR) lParam)->idFrom) {
- case 0:
- switch (((LPNMHDR) lParam)->code) {
- case PSN_APPLY:
- // save user made changes
- SaveLatestChanges(hwndDlg);
- // save struct to DB
+ break;
+ case IDC_GRADIENT:
+ ReActiveCombo(hwndDlg);
+ break;
+ case IDC_CORNER:
+ ReActiveCombo(hwndDlg);
+ break;
+ case IDC_IGNORE:
+ ReActiveCombo(hwndDlg);
+ break;
+ case IDC_COLOR2_TRANSPARENT:
+ ReActiveCombo(hwndDlg);
+ break;
+ case IDC_BORDERTYPE:
+ break;
+ }
+ if ((LOWORD(wParam) == IDC_ALPHA || LOWORD(wParam) == IDC_MRGN_LEFT || LOWORD(wParam) == IDC_MRGN_BOTTOM || LOWORD(wParam) == IDC_MRGN_TOP || LOWORD(wParam) == IDC_MRGN_RIGHT) && (HIWORD(wParam) != EN_CHANGE || (HWND) lParam != GetFocus()))
+ return 0;
+ SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
+ break;
+
+ case WM_NOTIFY:
+ switch (((LPNMHDR) lParam)->idFrom) {
+ case 0:
+ switch (((LPNMHDR) lParam)->code) {
+ case PSN_APPLY:
+ // save user made changes
+ SaveLatestChanges(hwndDlg);
+ // save struct to DB
if(psd->pfnSaveCompleteStruct)
psd->pfnSaveCompleteStruct();
- db_set_dw(NULL, "CLCExt", "3dbright", SendDlgItemMessage(hwndDlg, IDC_3DLIGHTCOLOR, CPM_GETCOLOUR, 0, 0));
- db_set_dw(NULL, "CLCExt", "3ddark", SendDlgItemMessage(hwndDlg, IDC_3DDARKCOLOR, CPM_GETCOLOUR, 0, 0));
+ db_set_dw(NULL, "CLCExt", "3dbright", SendDlgItemMessage(hwndDlg, IDC_3DLIGHTCOLOR, CPM_GETCOLOUR, 0, 0));
+ db_set_dw(NULL, "CLCExt", "3ddark", SendDlgItemMessage(hwndDlg, IDC_3DDARKCOLOR, CPM_GETCOLOUR, 0, 0));
- if(psd->pfnClcOptionsChanged)
+ if(psd->pfnClcOptionsChanged)
psd->pfnClcOptionsChanged();
if(psd->hwndCLUI) {
SendMessage(psd->hwndCLUI, WM_SIZE, 0, 0);
- PostMessage(psd->hwndCLUI, WM_USER+100, 0, 0); // CLUIINTM_REDRAW
+ PostMessage(psd->hwndCLUI, WM_USER+100, 0, 0); // CLUIINTM_REDRAW
}
- break;
- }
- }
- break;
- case WM_DESTROY:
- DestroyMenu(psd->hMenuItems);
- break;
- case WM_NCDESTROY:
- free(psd);
- SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)0);
- break;
- }
- return FALSE;
+ break;
+ }
+ }
+ break;
+ case WM_DESTROY:
+ DestroyMenu(psd->hMenuItems);
+ break;
+ case WM_NCDESTROY:
+ free(psd);
+ SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)0);
+ break;
+ }
+ return FALSE;
}
-/*
- * unimplemented
+/*
+ * unimplemented
*/
static BOOL CALLBACK SkinEdit_ImageItemEditProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
- return FALSE;
+ return FALSE;
}
static INT_PTR SkinEdit_FillByCurrentSel(WPARAM wParam, LPARAM lParam)
{
- if(wParam)
- FillOptionDialogByCurrentSel((HWND)wParam);
- return 0;
+ if(wParam)
+ FillOptionDialogByCurrentSel((HWND)wParam);
+ return 0;
}
-/*
- * service function
+/*
+ * service function
* creates additional tab pages under the given parent window handle
* expects a SKINDESCRIPTON * in lParam
*/
static INT_PTR SkinEdit_Invoke(WPARAM wParam, LPARAM lParam)
{
- SKINDESCRIPTION *psd = (SKINDESCRIPTION *)lParam;
- TCITEM tci = {0};
- RECT rcClient;
- int iTabs;
-
- if(psd->cbSize != sizeof(SKINDESCRIPTION))
- return 0;
-
- iTabs = TabCtrl_GetItemCount(psd->hWndTab);
- GetClientRect(psd->hWndParent, &rcClient);
-
- tci.mask = TCIF_PARAM|TCIF_TEXT;
- tci.lParam = (LPARAM)CreateDialogParam(g_hInst, MAKEINTRESOURCE(IDD_SKINITEMEDIT), psd->hWndParent, SkinEdit_ExtBkDlgProc, (LPARAM)psd);
-
- tci.pszText = TranslateT("Skin items");
- TabCtrl_InsertItem(psd->hWndTab, iTabs++, &tci);
- MoveWindow((HWND)tci.lParam, 5, 25, rcClient.right - 9, rcClient.bottom - 60, 1);
- psd->hwndSkinEdit = (HWND)tci.lParam;
-
- /*
- tci.lParam = (LPARAM)CreateDialogParam(g_hInst, MAKEINTRESOURCE(IDD_IMAGEITEMEDIT), psd->hWndParent, SkinEdit_ImageItemEditProc, (LPARAM)psd);
- tci.pszText = TranslateT("Image items");
- TabCtrl_InsertItem(psd->hWndTab, iTabs++, &tci);
- MoveWindow((HWND)tci.lParam, 5, 25, rcClient.right - 9, rcClient.bottom - 60, 1);
- psd->hwndImageEdit = (HWND)tci.lParam;
- */
-
- return (INT_PTR)psd->hwndSkinEdit;
+ SKINDESCRIPTION *psd = (SKINDESCRIPTION *)lParam;
+ TCITEM tci = {0};
+ RECT rcClient;
+ int iTabs;
+
+ if(psd->cbSize != sizeof(SKINDESCRIPTION))
+ return 0;
+
+ iTabs = TabCtrl_GetItemCount(psd->hWndTab);
+ GetClientRect(psd->hWndParent, &rcClient);
+
+ tci.mask = TCIF_PARAM|TCIF_TEXT;
+ tci.lParam = (LPARAM)CreateDialogParam(g_hInst, MAKEINTRESOURCE(IDD_SKINITEMEDIT), psd->hWndParent, SkinEdit_ExtBkDlgProc, (LPARAM)psd);
+
+ tci.pszText = TranslateT("Skin items");
+ TabCtrl_InsertItem(psd->hWndTab, iTabs++, &tci);
+ MoveWindow((HWND)tci.lParam, 5, 25, rcClient.right - 9, rcClient.bottom - 60, 1);
+ psd->hwndSkinEdit = (HWND)tci.lParam;
+
+ /*
+ tci.lParam = (LPARAM)CreateDialogParam(g_hInst, MAKEINTRESOURCE(IDD_IMAGEITEMEDIT), psd->hWndParent, SkinEdit_ImageItemEditProc, (LPARAM)psd);
+ tci.pszText = TranslateT("Image items");
+ TabCtrl_InsertItem(psd->hWndTab, iTabs++, &tci);
+ MoveWindow((HWND)tci.lParam, 5, 25, rcClient.right - 9, rcClient.bottom - 60, 1);
+ psd->hwndImageEdit = (HWND)tci.lParam;
+ */
+
+ return (INT_PTR)psd->hwndSkinEdit;
}
static HANDLE hSvc_invoke = 0, hSvc_fillby = 0;
static int LoadModule()
{
- hSvc_invoke = CreateServiceFunction(MS_CLNSE_INVOKE, SkinEdit_Invoke);
- hSvc_fillby = CreateServiceFunction(MS_CLNSE_FILLBYCURRENTSEL, SkinEdit_FillByCurrentSel);
- return 0;
+ hSvc_invoke = CreateServiceFunction(MS_CLNSE_INVOKE, SkinEdit_Invoke);
+ hSvc_fillby = CreateServiceFunction(MS_CLNSE_FILLBYCURRENTSEL, SkinEdit_FillByCurrentSel);
+ return 0;
}
extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
@@ -928,28 +927,28 @@ static int ModulesLoaded(WPARAM wParam, LPARAM lParam)
static int systemModulesLoaded(WPARAM wParam, LPARAM lParam)
{
- ModulesLoaded(wParam, lParam);
- return 0;
+ ModulesLoaded(wParam, lParam);
+ return 0;
}
extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP(&pluginInfo);
- return(LoadModule());
+ return(LoadModule());
}
static int ShutdownProc(WPARAM wParam, LPARAM lParam)
{
- if(hSvc_invoke)
- DestroyServiceFunction(hSvc_invoke);
- if(hSvc_fillby)
- DestroyServiceFunction(hSvc_fillby);
- return 0;
+ if(hSvc_invoke)
+ DestroyServiceFunction(hSvc_invoke);
+ if(hSvc_fillby)
+ DestroyServiceFunction(hSvc_fillby);
+ return 0;
}
extern "C" int __declspec(dllexport) Unload(void)
{
- return ShutdownProc(0, 0);
+ return ShutdownProc(0, 0);
}
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserved)
@@ -958,4 +957,3 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserved)
DisableThreadLibraryCalls(g_hInst);
return TRUE;
}
-
diff --git a/plugins/Clist_nicer/skineditor/src/skineditres.h b/plugins/Clist_nicer/skineditor/src/skineditres.h
index 33183de397..ec4da1453d 100644
--- a/plugins/Clist_nicer/skineditor/src/skineditres.h
+++ b/plugins/Clist_nicer/skineditor/src/skineditres.h
@@ -1,6 +1,6 @@
//{{NO_DEPENDENCIES}}
-// Microsoft Visual C++ generated include file.
-// Used by skinedit.rc
+// Включаемый файл, созданный в Microsoft Visual C++.
+// Используется d:\MNG_orig\plugins\Clist_nicer\skineditor\res\skinedit.rc
//
#define IDD_SKINITEMEDIT 101
#define IDD_IMAGEITEMEDIT 102
diff --git a/plugins/Clist_nicer/src/Include/Version.h b/plugins/Clist_nicer/src/Include/Version.h
new file mode 100644
index 0000000000..c4f5e4caa8
--- /dev/null
+++ b/plugins/Clist_nicer/src/Include/Version.h
@@ -0,0 +1,14 @@
+#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 9
+#define __RELEASE_NUM 2
+#define __BUILD_NUM 1
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "CList nicer"
+#define __FILENAME "ClientChangeNotify.dll"
+#define __DESCRIPTION "Displays contacts, event notifications, protocol status."
+#define __AUTHOR "Pixel, egoDust, cyreve, Nightwish"
+#define __AUTHOREMAIL ""
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "Copyright 2000-2010 Miranda-IM project"
diff --git a/plugins/Clist_nicer/src/Include/commonheaders.h b/plugins/Clist_nicer/src/Include/commonheaders.h
index 5b1e4074f6..aa3d51c812 100644
--- a/plugins/Clist_nicer/src/Include/commonheaders.h
+++ b/plugins/Clist_nicer/src/Include/commonheaders.h
@@ -30,8 +30,6 @@
*
*/
-#define MIRANDA_VER 0x0A00
-
#define _WIN32_WINNT 0x0501
#define _WIN32_IE 0x0501
@@ -42,31 +40,17 @@
#define TSAPI __stdcall
#define FASTCALL __fastcall
-#include <m_stdhdr.h>
#include <windows.h>
-#include <commctrl.h>
#include <uxtheme.h>
#include <vssym32.h>
-#include <stdio.h>
#include <time.h>
-#include <stddef.h>
-#include <process.h>
-#include <io.h>
-#include <string.h>
-#include <direct.h>
-#include <math.h>
#include <shlwapi.h>
#include <Richedit.h>
-#include "resource.h"
-
+#include <m_stdhdr.h>
#include <newpluginapi.h>
#include <win2k.h>
-#include <m_clist.h>
#include <m_clistint.h>
-#include <m_clui.h>
-#include <m_system.h>
-#include <m_utils.h>
#include <m_database.h>
#include <m_langpack.h>
#include <m_avatars.h>
@@ -74,27 +58,23 @@
#include <m_options.h>
#include <m_protosvc.h>
#include <m_skin.h>
-#include <m_contacts.h>
-#include <m_file.h>
#include <m_addcontact.h>
-#include <m_message.h>
#include <m_timezones.h>
-#include <m_genmenu.h>
#include <m_cluiframes.h>
#include <m_clui.h>
#include <m_icolib.h>
-#include <m_popup.h>
#include <m_fontservice.h>
-#include <m_metacontacts.h>
-#include <m_cln_skinedit.h>
#include <m_xstatus.h>
#include <m_extraicons.h>
+#include <m_metacontacts.h>
+
+#include "m_cln_skinedit.h"
+#include "resource.h"
+#include "Version.h"
#include "extbackg.h"
#include "clc.h"
-#include <config.h>
-
-
+#include "config.h"
#include "clist.h"
#include "alphablend.h"
#include "rowheight_funcs.h"
diff --git a/plugins/Clist_nicer/src/Include/resource.h b/plugins/Clist_nicer/src/Include/resource.h
index 9f4871c62d..c8fc9dd09c 100644
--- a/plugins/Clist_nicer/src/Include/resource.h
+++ b/plugins/Clist_nicer/src/Include/resource.h
@@ -1,6 +1,6 @@
//{{NO_DEPENDENCIES}}
-// Microsoft Visual C++ generated include file.
-// Used by C:\Users\xx\Documents\Visual Studio 2010\Projects\miranda-ng\plugins\Clist_nicer\res\resource.rc
+// Включаемый файл, созданный в Microsoft Visual C++.
+// Используется d:\MNG_orig\plugins\Clist_nicer\res\resource.rc
//
#define IDD_OPT_VIEWMODES 1
#define IDD_OPT_FLOATING 3
diff --git a/plugins/Clist_nicer/src/Include/vsstyle.h b/plugins/Clist_nicer/src/Include/vsstyle.h
deleted file mode 100644
index b65e223b51..0000000000
--- a/plugins/Clist_nicer/src/Include/vsstyle.h
+++ /dev/null
@@ -1,1606 +0,0 @@
-//-------------------------------------------------------------------------//
-// VisualStyle Style Guide symbols
-//-------------------------------------------------------------------------//
-
-#ifndef __VSSTYLE_H__
-#define __VSSTYLE_H__
-
-//
-// property symbol definitions
-//
-
-#define TMTVS_RESERVEDLOW 100000
-#define TMTVS_RESERVEDHIGH 19999
-
-
-
-//
-// AEROWIZARDSTYLE class parts and states
-//
-#define VSCLASS_AEROWIZARDSTYLE L"AEROWIZARDSTYLE"
-#define VSCLASS_AEROWIZARD L"AEROWIZARD"
-
-enum AEROWIZARDPARTS {
- AW_TITLEBAR = 1,
- AW_HEADERAREA = 2,
- AW_CONTENTAREA = 3,
- AW_COMMANDAREA = 4,
- AW_BUTTON = 5,
-};
-
-#define AEROWIZARDSTYLEPARTS AEROWIZARDPARTS;
-
-enum TITLEBARSTATES {
- AW_S_TITLEBAR_ACTIVE = 1,
- AW_S_TITLEBAR_INACTIVE = 2,
-};
-
-enum HEADERAREASTATES {
- AW_S_HEADERAREA_NOMARGIN = 1,
-};
-
-enum CONTENTAREASTATES {
- AW_S_CONTENTAREA_NOMARGIN = 1,
-};
-
-
-//
-// BUTTONSTYLE class parts and states
-//
-#define VSCLASS_BUTTONSTYLE L"BUTTONSTYLE"
-#define VSCLASS_BUTTON L"BUTTON"
-
-enum BUTTONPARTS {
- BP_PUSHBUTTON = 1,
- BP_RADIOBUTTON = 2,
- BP_CHECKBOX = 3,
- BP_GROUPBOX = 4,
- BP_USERBUTTON = 5,
- BP_COMMANDLINK = 6,
- BP_COMMANDLINKGLYPH = 7,
-};
-
-#define BUTTONSTYLEPARTS BUTTONPARTS;
-
-enum PUSHBUTTONSTATES {
- PBS_NORMAL = 1,
- PBS_HOT = 2,
- PBS_PRESSED = 3,
- PBS_DISABLED = 4,
- PBS_DEFAULTED = 5,
- PBS_DEFAULTED_ANIMATING = 6,
-};
-
-enum RADIOBUTTONSTATES {
- RBS_UNCHECKEDNORMAL = 1,
- RBS_UNCHECKEDHOT = 2,
- RBS_UNCHECKEDPRESSED = 3,
- RBS_UNCHECKEDDISABLED = 4,
- RBS_CHECKEDNORMAL = 5,
- RBS_CHECKEDHOT = 6,
- RBS_CHECKEDPRESSED = 7,
- RBS_CHECKEDDISABLED = 8,
-};
-
-enum CHECKBOXSTATES {
- CBS_UNCHECKEDNORMAL = 1,
- CBS_UNCHECKEDHOT = 2,
- CBS_UNCHECKEDPRESSED = 3,
- CBS_UNCHECKEDDISABLED = 4,
- CBS_CHECKEDNORMAL = 5,
- CBS_CHECKEDHOT = 6,
- CBS_CHECKEDPRESSED = 7,
- CBS_CHECKEDDISABLED = 8,
- CBS_MIXEDNORMAL = 9,
- CBS_MIXEDHOT = 10,
- CBS_MIXEDPRESSED = 11,
- CBS_MIXEDDISABLED = 12,
- CBS_IMPLICITNORMAL = 13,
- CBS_IMPLICITHOT = 14,
- CBS_IMPLICITPRESSED = 15,
- CBS_IMPLICITDISABLED = 16,
- CBS_EXCLUDEDNORMAL = 17,
- CBS_EXCLUDEDHOT = 18,
- CBS_EXCLUDEDPRESSED = 19,
- CBS_EXCLUDEDDISABLED = 20,
-};
-
-enum GROUPBOXSTATES {
- GBS_NORMAL = 1,
- GBS_DISABLED = 2,
-};
-
-enum COMMANDLINKSTATES {
- CMDLS_NORMAL = 1,
- CMDLS_HOT = 2,
- CMDLS_PRESSED = 3,
- CMDLS_DISABLED = 4,
- CMDLS_DEFAULTED = 5,
- CMDLS_DEFAULTED_ANIMATING = 6,
-};
-
-enum COMMANDLINKGLYPHSTATES {
- CMDLGS_NORMAL = 1,
- CMDLGS_HOT = 2,
- CMDLGS_PRESSED = 3,
- CMDLGS_DISABLED = 4,
- CMDLGS_DEFAULTED = 5,
-};
-
-
-//
-// COMBOBOXSTYLE class parts and states
-//
-#define VSCLASS_COMBOBOXSTYLE L"COMBOBOXSTYLE"
-#define VSCLASS_COMBOBOX L"COMBOBOX"
-
-enum COMBOBOXPARTS {
- CP_DROPDOWNBUTTON = 1,
- CP_BACKGROUND = 2,
- CP_TRANSPARENTBACKGROUND = 3,
- CP_BORDER = 4,
- CP_READONLY = 5,
- CP_DROPDOWNBUTTONRIGHT = 6,
- CP_DROPDOWNBUTTONLEFT = 7,
- CP_CUEBANNER = 8,
-};
-
-#define COMBOBOXSTYLEPARTS COMBOBOXPARTS;
-
-enum COMBOBOXSTYLESTATES {
- CBXS_NORMAL = 1,
- CBXS_HOT = 2,
- CBXS_PRESSED = 3,
- CBXS_DISABLED = 4,
-};
-
-enum DROPDOWNBUTTONRIGHTSTATES {
- CBXSR_NORMAL = 1,
- CBXSR_HOT = 2,
- CBXSR_PRESSED = 3,
- CBXSR_DISABLED = 4,
-};
-
-enum DROPDOWNBUTTONLEFTSTATES {
- CBXSL_NORMAL = 1,
- CBXSL_HOT = 2,
- CBXSL_PRESSED = 3,
- CBXSL_DISABLED = 4,
-};
-
-enum TRANSPARENTBACKGROUNDSTATES {
- CBTBS_NORMAL = 1,
- CBTBS_HOT = 2,
- CBTBS_DISABLED = 3,
- CBTBS_FOCUSED = 4,
-};
-
-enum BORDERSTATES {
- CBB_NORMAL = 1,
- CBB_HOT = 2,
- CBB_FOCUSED = 3,
- CBB_DISABLED = 4,
-};
-
-enum READONLYSTATES {
- CBRO_NORMAL = 1,
- CBRO_HOT = 2,
- CBRO_PRESSED = 3,
- CBRO_DISABLED = 4,
-};
-
-enum CUEBANNERSTATES {
- CBCB_NORMAL = 1,
- CBCB_HOT = 2,
- CBCB_PRESSED = 3,
- CBCB_DISABLED = 4,
-};
-
-
-//
-// COMMUNICATIONSSTYLE class parts and states
-//
-#define VSCLASS_COMMUNICATIONSSTYLE L"COMMUNICATIONSSTYLE"
-#define VSCLASS_COMMUNICATIONS L"COMMUNICATIONS"
-
-enum COMMUNICATIONSPARTS {
- CSST_TAB = 1,
-};
-
-#define COMMUNICATIONSSTYLEPARTS COMMUNICATIONSPARTS;
-
-enum TABSTATES {
- CSTB_NORMAL = 1,
- CSTB_HOT = 2,
- CSTB_SELECTED = 3,
-};
-
-
-//
-// CONTROLPANELSTYLE class parts and states
-//
-#define VSCLASS_CONTROLPANELSTYLE L"CONTROLPANELSTYLE"
-#define VSCLASS_CONTROLPANEL L"CONTROLPANEL"
-
-enum CONTROLPANELPARTS {
- CPANEL_NAVIGATIONPANE = 1,
- CPANEL_CONTENTPANE = 2,
- CPANEL_NAVIGATIONPANELABEL = 3,
- CPANEL_CONTENTPANELABEL = 4,
- CPANEL_TITLE = 5,
- CPANEL_BODYTEXT = 6,
- CPANEL_HELPLINK = 7,
- CPANEL_TASKLINK = 8,
- CPANEL_GROUPTEXT = 9,
- CPANEL_CONTENTLINK = 10,
- CPANEL_SECTIONTITLELINK = 11,
- CPANEL_LARGECOMMANDAREA = 12,
- CPANEL_SMALLCOMMANDAREA = 13,
- CPANEL_BUTTON = 14,
- CPANEL_MESSAGETEXT = 15,
- CPANEL_NAVIGATIONPANELINE = 16,
- CPANEL_CONTENTPANELINE = 17,
- CPANEL_BANNERAREA = 18,
- CPANEL_BODYTITLE = 19,
-};
-
-#define CONTROLPANELSTYLEPARTS CONTROLPANELPARTS;
-
-enum HELPLINKSTATES {
- CPHL_NORMAL = 1,
- CPHL_HOT = 2,
- CPHL_PRESSED = 3,
- CPHL_DISABLED = 4,
-};
-
-enum TASKLINKSTATES {
- CPTL_NORMAL = 1,
- CPTL_HOT = 2,
- CPTL_PRESSED = 3,
- CPTL_DISABLED = 4,
- CPTL_PAGE = 5,
-};
-
-enum CONTENTLINKSTATES {
- CPCL_NORMAL = 1,
- CPCL_HOT = 2,
- CPCL_PRESSED = 3,
- CPCL_DISABLED = 4,
-};
-
-enum SECTIONTITLELINKSTATES {
- CPSTL_NORMAL = 1,
- CPSTL_HOT = 2,
-};
-
-
-//
-// DATEPICKERSTYLE class parts and states
-//
-#define VSCLASS_DATEPICKERSTYLE L"DATEPICKERSTYLE"
-#define VSCLASS_DATEPICKER L"DATEPICKER"
-
-enum DATEPICKERPARTS {
- DP_DATETEXT = 1,
- DP_DATEBORDER = 2,
- DP_SHOWCALENDARBUTTONRIGHT = 3,
-};
-
-#define DATEPICKERSTYLEPARTS DATEPICKERPARTS;
-
-enum DATETEXTSTATES {
- DPDT_NORMAL = 1,
- DPDT_DISABLED = 2,
- DPDT_SELECTED = 3,
-};
-
-enum DATEBORDERSTATES {
- DPDB_NORMAL = 1,
- DPDB_HOT = 2,
- DPDB_FOCUSED = 3,
- DPDB_DISABLED = 4,
-};
-
-enum SHOWCALENDARBUTTONRIGHTSTATES {
- DPSCBR_NORMAL = 1,
- DPSCBR_HOT = 2,
- DPSCBR_PRESSED = 3,
- DPSCBR_DISABLED = 4,
-};
-
-
-//
-// DRAGDROPSTYLE class parts and states
-//
-#define VSCLASS_DRAGDROPSTYLE L"DRAGDROPSTYLE"
-#define VSCLASS_DRAGDROP L"DRAGDROP"
-
-enum DRAGDROPPARTS {
- DD_COPY = 1,
- DD_MOVE = 2,
- DD_UPDATEMETADATA = 3,
- DD_CREATELINK = 4,
- DD_WARNING = 5,
- DD_NONE = 6,
- DD_IMAGEBG = 7,
- DD_TEXTBG = 8,
-};
-
-#define DRAGDROPSTYLEPARTS DRAGDROPPARTS;
-
-enum COPYSTATES {
- DDCOPY_HIGHLIGHT = 1,
- DDCOPY_NOHIGHLIGHT = 2,
-};
-
-enum MOVESTATES {
- DDMOVE_HIGHLIGHT = 1,
- DDMOVE_NOHIGHLIGHT = 2,
-};
-
-enum UPDATEMETADATASTATES {
- DDUPDATEMETADATA_HIGHLIGHT = 1,
- DDUPDATEMETADATA_NOHIGHLIGHT = 2,
-};
-
-enum CREATELINKSTATES {
- DDCREATELINK_HIGHLIGHT = 1,
- DDCREATELINK_NOHIGHLIGHT = 2,
-};
-
-enum WARNINGSTATES {
- DDWARNING_HIGHLIGHT = 1,
- DDWARNING_NOHIGHLIGHT = 2,
-};
-
-enum NONESTATES {
- DDNONE_HIGHLIGHT = 1,
- DDNONE_NOHIGHLIGHT = 2,
-};
-
-
-//
-// EDITSTYLE class parts and states
-//
-#define VSCLASS_EDITSTYLE L"EDITSTYLE"
-#define VSCLASS_EDIT L"EDIT"
-
-enum EDITPARTS {
- EP_EDITTEXT = 1,
- EP_CARET = 2,
- EP_BACKGROUND = 3,
- EP_PASSWORD = 4,
- EP_BACKGROUNDWITHBORDER = 5,
- EP_EDITBORDER_NOSCROLL = 6,
- EP_EDITBORDER_HSCROLL = 7,
- EP_EDITBORDER_VSCROLL = 8,
- EP_EDITBORDER_HVSCROLL = 9,
-};
-
-#define EDITSTYLEPARTS EDITPARTS;
-
-enum EDITTEXTSTATES {
- ETS_NORMAL = 1,
- ETS_HOT = 2,
- ETS_SELECTED = 3,
- ETS_DISABLED = 4,
- ETS_FOCUSED = 5,
- ETS_READONLY = 6,
- ETS_ASSIST = 7,
- ETS_CUEBANNER = 8,
-};
-
-enum BACKGROUNDSTATES {
- EBS_NORMAL = 1,
- EBS_HOT = 2,
- EBS_DISABLED = 3,
- EBS_FOCUSED = 4,
- EBS_READONLY = 5,
- EBS_ASSIST = 6,
-};
-
-enum BACKGROUNDWITHBORDERSTATES {
- EBWBS_NORMAL = 1,
- EBWBS_HOT = 2,
- EBWBS_DISABLED = 3,
- EBWBS_FOCUSED = 4,
-};
-
-enum EDITBORDER_NOSCROLLSTATES {
- EPSN_NORMAL = 1,
- EPSN_HOT = 2,
- EPSN_FOCUSED = 3,
- EPSN_DISABLED = 4,
-};
-
-enum EDITBORDER_HSCROLLSTATES {
- EPSH_NORMAL = 1,
- EPSH_HOT = 2,
- EPSH_FOCUSED = 3,
- EPSH_DISABLED = 4,
-};
-
-enum EDITBORDER_VSCROLLSTATES {
- EPSV_NORMAL = 1,
- EPSV_HOT = 2,
- EPSV_FOCUSED = 3,
- EPSV_DISABLED = 4,
-};
-
-enum EDITBORDER_HVSCROLLSTATES {
- EPSHV_NORMAL = 1,
- EPSHV_HOT = 2,
- EPSHV_FOCUSED = 3,
- EPSHV_DISABLED = 4,
-};
-
-
-//
-// EXPLORERBARSTYLE class parts and states
-//
-#define VSCLASS_EXPLORERBARSTYLE L"EXPLORERBARSTYLE"
-#define VSCLASS_EXPLORERBAR L"EXPLORERBAR"
-
-enum EXPLORERBARPARTS {
- EBP_HEADERBACKGROUND = 1,
- EBP_HEADERCLOSE = 2,
- EBP_HEADERPIN = 3,
- EBP_IEBARMENU = 4,
- EBP_NORMALGROUPBACKGROUND = 5,
- EBP_NORMALGROUPCOLLAPSE = 6,
- EBP_NORMALGROUPEXPAND = 7,
- EBP_NORMALGROUPHEAD = 8,
- EBP_SPECIALGROUPBACKGROUND = 9,
- EBP_SPECIALGROUPCOLLAPSE = 10,
- EBP_SPECIALGROUPEXPAND = 11,
- EBP_SPECIALGROUPHEAD = 12,
-};
-
-#define EXPLORERBARSTYLEPARTS EXPLORERBARPARTS;
-
-enum HEADERCLOSESTATES {
- EBHC_NORMAL = 1,
- EBHC_HOT = 2,
- EBHC_PRESSED = 3,
-};
-
-enum HEADERPINSTATES {
- EBHP_NORMAL = 1,
- EBHP_HOT = 2,
- EBHP_PRESSED = 3,
- EBHP_SELECTEDNORMAL = 4,
- EBHP_SELECTEDHOT = 5,
- EBHP_SELECTEDPRESSED = 6,
-};
-
-enum IEBARMENUSTATES {
- EBM_NORMAL = 1,
- EBM_HOT = 2,
- EBM_PRESSED = 3,
-};
-
-enum NORMALGROUPCOLLAPSESTATES {
- EBNGC_NORMAL = 1,
- EBNGC_HOT = 2,
- EBNGC_PRESSED = 3,
-};
-
-enum NORMALGROUPEXPANDSTATES {
- EBNGE_NORMAL = 1,
- EBNGE_HOT = 2,
- EBNGE_PRESSED = 3,
-};
-
-enum SPECIALGROUPCOLLAPSESTATES {
- EBSGC_NORMAL = 1,
- EBSGC_HOT = 2,
- EBSGC_PRESSED = 3,
-};
-
-enum SPECIALGROUPEXPANDSTATES {
- EBSGE_NORMAL = 1,
- EBSGE_HOT = 2,
- EBSGE_PRESSED = 3,
-};
-
-
-//
-// FLYOUTSTYLE class parts and states
-//
-#define VSCLASS_FLYOUTSTYLE L"FLYOUTSTYLE"
-#define VSCLASS_FLYOUT L"FLYOUT"
-
-enum FLYOUTPARTS {
- FLYOUT_HEADER = 1,
- FLYOUT_BODY = 2,
- FLYOUT_LABEL = 3,
- FLYOUT_LINK = 4,
- FLYOUT_DIVIDER = 5,
- FLYOUT_WINDOW = 6,
- FLYOUT_LINKAREA = 7,
- FLYOUT_LINKHEADER = 8,
-};
-
-#define FLYOUTSTYLEPARTS FLYOUTPARTS;
-
-enum LABELSTATES {
- FLS_NORMAL = 1,
- FLS_SELECTED = 2,
- FLS_EMPHASIZED = 3,
- FLS_DISABLED = 4,
-};
-
-enum LINKSTATES {
- FLYOUTLINK_NORMAL = 1,
- FLYOUTLINK_HOVER = 2,
-};
-
-enum BODYSTATES {
- FBS_NORMAL = 1,
- FBS_EMPHASIZED = 2,
-};
-
-enum LINKHEADERSTATES {
- FLH_NORMAL = 1,
- FLH_HOVER = 2,
-};
-
-
-//
-// HEADERSTYLE class parts and states
-//
-#define VSCLASS_HEADERSTYLE L"HEADERSTYLE"
-#define VSCLASS_HEADER L"HEADER"
-
-enum HEADERPARTS {
- HP_HEADERITEM = 1,
- HP_HEADERITEMLEFT = 2,
- HP_HEADERITEMRIGHT = 3,
- HP_HEADERSORTARROW = 4,
- HP_HEADERDROPDOWN = 5,
- HP_HEADERDROPDOWNFILTER = 6,
- HP_HEADEROVERFLOW = 7,
-};
-
-#define HEADERSTYLEPARTS HEADERPARTS;
-
-enum HEADERSTYLESTATES {
- HBG_DETAILS = 1,
- HBG_ICON = 2,
-};
-
-enum HEADERITEMSTATES {
- HIS_NORMAL = 1,
- HIS_HOT = 2,
- HIS_PRESSED = 3,
- HIS_SORTEDNORMAL = 4,
- HIS_SORTEDHOT = 5,
- HIS_SORTEDPRESSED = 6,
- HIS_ICONNORMAL = 7,
- HIS_ICONHOT = 8,
- HIS_ICONPRESSED = 9,
- HIS_ICONSORTEDNORMAL = 10,
- HIS_ICONSORTEDHOT = 11,
- HIS_ICONSORTEDPRESSED = 12,
-};
-
-enum HEADERITEMLEFTSTATES {
- HILS_NORMAL = 1,
- HILS_HOT = 2,
- HILS_PRESSED = 3,
-};
-
-enum HEADERITEMRIGHTSTATES {
- HIRS_NORMAL = 1,
- HIRS_HOT = 2,
- HIRS_PRESSED = 3,
-};
-
-enum HEADERSORTARROWSTATES {
- HSAS_SORTEDUP = 1,
- HSAS_SORTEDDOWN = 2,
-};
-
-enum HEADERDROPDOWNSTATES {
- HDDS_NORMAL = 1,
- HDDS_SOFTHOT = 2,
- HDDS_HOT = 3,
-};
-
-enum HEADERDROPDOWNFILTERSTATES {
- HDDFS_NORMAL = 1,
- HDDFS_SOFTHOT = 2,
- HDDFS_HOT = 3,
-};
-
-enum HEADEROVERFLOWSTATES {
- HOFS_NORMAL = 1,
- HOFS_HOT = 2,
-};
-
-
-//
-// LISTBOXSTYLE class parts and states
-//
-#define VSCLASS_LISTBOXSTYLE L"LISTBOXSTYLE"
-#define VSCLASS_LISTBOX L"LISTBOX"
-
-enum LISTBOXPARTS {
- LBCP_BORDER_HSCROLL = 1,
- LBCP_BORDER_HVSCROLL = 2,
- LBCP_BORDER_NOSCROLL = 3,
- LBCP_BORDER_VSCROLL = 4,
- LBCP_ITEM = 5,
-};
-
-#define LISTBOXSTYLEPARTS LISTBOXPARTS;
-
-enum BORDER_HSCROLLSTATES {
- LBPSH_NORMAL = 1,
- LBPSH_FOCUSED = 2,
- LBPSH_HOT = 3,
- LBPSH_DISABLED = 4,
-};
-
-enum BORDER_HVSCROLLSTATES {
- LBPSHV_NORMAL = 1,
- LBPSHV_FOCUSED = 2,
- LBPSHV_HOT = 3,
- LBPSHV_DISABLED = 4,
-};
-
-enum BORDER_NOSCROLLSTATES {
- LBPSN_NORMAL = 1,
- LBPSN_FOCUSED = 2,
- LBPSN_HOT = 3,
- LBPSN_DISABLED = 4,
-};
-
-enum BORDER_VSCROLLSTATES {
- LBPSV_NORMAL = 1,
- LBPSV_FOCUSED = 2,
- LBPSV_HOT = 3,
- LBPSV_DISABLED = 4,
-};
-
-enum ITEMSTATES {
- LBPSI_HOT = 1,
- LBPSI_HOTSELECTED = 2,
- LBPSI_SELECTED = 3,
- LBPSI_SELECTEDNOTFOCUS = 4,
-};
-
-
-//
-// LISTVIEWSTYLE class parts and states
-//
-#define VSCLASS_LISTVIEWSTYLE L"LISTVIEWSTYLE"
-#define VSCLASS_LISTVIEW L"LISTVIEW"
-
-enum LISTVIEWPARTS {
- LVP_LISTITEM = 1,
- LVP_LISTGROUP = 2,
- LVP_LISTDETAIL = 3,
- LVP_LISTSORTEDDETAIL = 4,
- LVP_EMPTYTEXT = 5,
- LVP_GROUPHEADER = 6,
- LVP_GROUPHEADERLINE = 7,
- LVP_EXPANDBUTTON = 8,
- LVP_COLLAPSEBUTTON = 9,
- LVP_COLUMNDETAIL = 10,
-};
-
-#define LISTVIEWSTYLEPARTS LISTVIEWPARTS;
-
-enum LISTITEMSTATES {
- LISS_NORMAL = 1,
- LISS_HOT = 2,
- LISS_SELECTED = 3,
- LISS_DISABLED = 4,
- LISS_SELECTEDNOTFOCUS = 5,
- LISS_HOTSELECTED = 6,
-};
-
-enum GROUPHEADERSTATES {
- LVGH_OPEN = 1,
- LVGH_OPENHOT = 2,
- LVGH_OPENSELECTED = 3,
- LVGH_OPENSELECTEDHOT = 4,
- LVGH_OPENSELECTEDNOTFOCUSED = 5,
- LVGH_OPENSELECTEDNOTFOCUSEDHOT = 6,
- LVGH_OPENMIXEDSELECTION = 7,
- LVGH_OPENMIXEDSELECTIONHOT = 8,
- LVGH_CLOSE = 9,
- LVGH_CLOSEHOT = 10,
- LVGH_CLOSESELECTED = 11,
- LVGH_CLOSESELECTEDHOT = 12,
- LVGH_CLOSESELECTEDNOTFOCUSED = 13,
- LVGH_CLOSESELECTEDNOTFOCUSEDHOT = 14,
- LVGH_CLOSEMIXEDSELECTION = 15,
- LVGH_CLOSEMIXEDSELECTIONHOT = 16,
-};
-
-enum GROUPHEADERLINESTATES {
- LVGHL_OPEN = 1,
- LVGHL_OPENHOT = 2,
- LVGHL_OPENSELECTED = 3,
- LVGHL_OPENSELECTEDHOT = 4,
- LVGHL_OPENSELECTEDNOTFOCUSED = 5,
- LVGHL_OPENSELECTEDNOTFOCUSEDHOT = 6,
- LVGHL_OPENMIXEDSELECTION = 7,
- LVGHL_OPENMIXEDSELECTIONHOT = 8,
- LVGHL_CLOSE = 9,
- LVGHL_CLOSEHOT = 10,
- LVGHL_CLOSESELECTED = 11,
- LVGHL_CLOSESELECTEDHOT = 12,
- LVGHL_CLOSESELECTEDNOTFOCUSED = 13,
- LVGHL_CLOSESELECTEDNOTFOCUSEDHOT = 14,
- LVGHL_CLOSEMIXEDSELECTION = 15,
- LVGHL_CLOSEMIXEDSELECTIONHOT = 16,
-};
-
-enum EXPANDBUTTONSTATES {
- LVEB_NORMAL = 1,
- LVEB_HOVER = 2,
- LVEB_PUSHED = 3,
-};
-
-enum COLLAPSEBUTTONSTATES {
- LVCB_NORMAL = 1,
- LVCB_HOVER = 2,
- LVCB_PUSHED = 3,
-};
-
-
-//
-// MENUSTYLE class parts and states
-//
-#define VSCLASS_MENUSTYLE L"MENUSTYLE"
-#define VSCLASS_MENU L"MENU"
-
-enum MENUPARTS {
- MENU_MENUITEM_TMSCHEMA = 1,
- MENU_MENUDROPDOWN_TMSCHEMA = 2,
- MENU_MENUBARITEM_TMSCHEMA = 3,
- MENU_MENUBARDROPDOWN_TMSCHEMA = 4,
- MENU_CHEVRON_TMSCHEMA = 5,
- MENU_SEPARATOR_TMSCHEMA = 6,
- MENU_BARBACKGROUND = 7,
- MENU_BARITEM = 8,
- MENU_POPUPBACKGROUND = 9,
- MENU_POPUPBORDERS = 10,
- MENU_POPUPCHECK = 11,
- MENU_POPUPCHECKBACKGROUND = 12,
- MENU_POPUPGUTTER = 13,
- MENU_POPUPITEM = 14,
- MENU_POPUPSEPARATOR = 15,
- MENU_POPUPSUBMENU = 16,
- MENU_SYSTEMCLOSE = 17,
- MENU_SYSTEMMAXIMIZE = 18,
- MENU_SYSTEMMINIMIZE = 19,
- MENU_SYSTEMRESTORE = 20,
-};
-
-#define MENUSTYLEPARTS MENUPARTS;
-
-enum BARBACKGROUNDSTATES {
- MB_ACTIVE = 1,
- MB_INACTIVE = 2,
-};
-
-enum BARITEMSTATES {
- MBI_NORMAL = 1,
- MBI_HOT = 2,
- MBI_PUSHED = 3,
- MBI_DISABLED = 4,
- MBI_DISABLEDHOT = 5,
- MBI_DISABLEDPUSHED = 6,
-};
-
-enum POPUPCHECKSTATES {
- MC_CHECKMARKNORMAL = 1,
- MC_CHECKMARKDISABLED = 2,
- MC_BULLETNORMAL = 3,
- MC_BULLETDISABLED = 4,
-};
-
-enum POPUPCHECKBACKGROUNDSTATES {
- MCB_DISABLED = 1,
- MCB_NORMAL = 2,
- MCB_BITMAP = 3,
-};
-
-enum POPUPITEMSTATES {
- MPI_NORMAL = 1,
- MPI_HOT = 2,
- MPI_DISABLED = 3,
- MPI_DISABLEDHOT = 4,
-};
-
-enum POPUPSUBMENUSTATES {
- MSM_NORMAL = 1,
- MSM_DISABLED = 2,
-};
-
-enum SYSTEMCLOSESTATES {
- MSYSC_NORMAL = 1,
- MSYSC_DISABLED = 2,
-};
-
-enum SYSTEMMAXIMIZESTATES {
- MSYSMX_NORMAL = 1,
- MSYSMX_DISABLED = 2,
-};
-
-enum SYSTEMMINIMIZESTATES {
- MSYSMN_NORMAL = 1,
- MSYSMN_DISABLED = 2,
-};
-
-enum SYSTEMRESTORESTATES {
- MSYSR_NORMAL = 1,
- MSYSR_DISABLED = 2,
-};
-
-
-//
-// NAVIGATION class parts and states
-//
-#define VSCLASS_NAVIGATION L"NAVIGATION"
-
-enum NAVIGATIONPARTS {
- NAV_BACKBUTTON = 1,
- NAV_FORWARDBUTTON = 2,
- NAV_MENUBUTTON = 3,
-};
-
-enum NAV_BACKBUTTONSTATES {
- NAV_BB_NORMAL = 1,
- NAV_BB_HOT = 2,
- NAV_BB_PRESSED = 3,
- NAV_BB_DISABLED = 4,
-};
-
-enum NAV_FORWARDBUTTONSTATES {
- NAV_FB_NORMAL = 1,
- NAV_FB_HOT = 2,
- NAV_FB_PRESSED = 3,
- NAV_FB_DISABLED = 4,
-};
-
-enum NAV_MENUBUTTONSTATES {
- NAV_MB_NORMAL = 1,
- NAV_MB_HOT = 2,
- NAV_MB_PRESSED = 3,
- NAV_MB_DISABLED = 4,
-};
-
-
-//
-// PROGRESSSTYLE class parts and states
-//
-#define VSCLASS_PROGRESSSTYLE L"PROGRESSSTYLE"
-#define VSCLASS_PROGRESS L"PROGRESS"
-
-enum PROGRESSPARTS {
- PP_BAR = 1,
- PP_BARVERT = 2,
- PP_CHUNK = 3,
- PP_CHUNKVERT = 4,
- PP_FILL = 5,
- PP_FILLVERT = 6,
- PP_PULSEOVERLAY = 7,
- PP_MOVEOVERLAY = 8,
- PP_PULSEOVERLAYVERT = 9,
- PP_MOVEOVERLAYVERT = 10,
- PP_TRANSPARENTBAR = 11,
- PP_TRANSPARENTBARVERT = 12,
-};
-
-#define PROGRESSSTYLEPARTS PROGRESSPARTS;
-
-enum TRANSPARENTBARSTATES {
- PBBS_NORMAL = 1,
- PBBS_PARTIAL = 2,
-};
-
-enum TRANSPARENTBARVERTSTATES {
- PBBVS_NORMAL = 1,
- PBBVS_PARTIAL = 2,
-};
-
-enum FILLSTATES {
- PBFS_NORMAL = 1,
- PBFS_ERROR = 2,
- PBFS_PAUSED = 3,
- PBFS_PARTIAL = 4,
-};
-
-enum FILLVERTSTATES {
- PBFVS_NORMAL = 1,
- PBFVS_ERROR = 2,
- PBFVS_PAUSED = 3,
- PBFVS_PARTIAL = 4,
-};
-
-
-//
-// REBARSTYLE class parts and states
-//
-#define VSCLASS_REBARSTYLE L"REBARSTYLE"
-#define VSCLASS_REBAR L"REBAR"
-
-enum REBARPARTS {
- RP_GRIPPER = 1,
- RP_GRIPPERVERT = 2,
- RP_BAND = 3,
- RP_CHEVRON = 4,
- RP_CHEVRONVERT = 5,
- RP_BACKGROUND = 6,
- RP_SPLITTER = 7,
- RP_SPLITTERVERT = 8,
-};
-
-#define REBARSTYLEPARTS REBARPARTS;
-
-enum CHEVRONSTATES {
- CHEVS_NORMAL = 1,
- CHEVS_HOT = 2,
- CHEVS_PRESSED = 3,
-};
-
-enum CHEVRONVERTSTATES {
- CHEVSV_NORMAL = 1,
- CHEVSV_HOT = 2,
- CHEVSV_PRESSED = 3,
-};
-
-enum SPLITTERSTATES {
- SPLITS_NORMAL = 1,
- SPLITS_HOT = 2,
- SPLITS_PRESSED = 3,
-};
-
-enum SPLITTERVERTSTATES {
- SPLITSV_NORMAL = 1,
- SPLITSV_HOT = 2,
- SPLITSV_PRESSED = 3,
-};
-
-
-//
-// SCROLLBARSTYLE class parts and states
-//
-#define VSCLASS_SCROLLBARSTYLE L"SCROLLBARSTYLE"
-#define VSCLASS_SCROLLBAR L"SCROLLBAR"
-
-enum SCROLLBARPARTS {
- SBP_ARROWBTN = 1,
- SBP_THUMBBTNHORZ = 2,
- SBP_THUMBBTNVERT = 3,
- SBP_LOWERTRACKHORZ = 4,
- SBP_UPPERTRACKHORZ = 5,
- SBP_LOWERTRACKVERT = 6,
- SBP_UPPERTRACKVERT = 7,
- SBP_GRIPPERHORZ = 8,
- SBP_GRIPPERVERT = 9,
- SBP_SIZEBOX = 10,
-};
-
-#define SCROLLBARSTYLEPARTS SCROLLBARPARTS;
-
-enum ARROWBTNSTATES {
- ABS_UPNORMAL = 1,
- ABS_UPHOT = 2,
- ABS_UPPRESSED = 3,
- ABS_UPDISABLED = 4,
- ABS_DOWNNORMAL = 5,
- ABS_DOWNHOT = 6,
- ABS_DOWNPRESSED = 7,
- ABS_DOWNDISABLED = 8,
- ABS_LEFTNORMAL = 9,
- ABS_LEFTHOT = 10,
- ABS_LEFTPRESSED = 11,
- ABS_LEFTDISABLED = 12,
- ABS_RIGHTNORMAL = 13,
- ABS_RIGHTHOT = 14,
- ABS_RIGHTPRESSED = 15,
- ABS_RIGHTDISABLED = 16,
- ABS_UPHOVER = 17,
- ABS_DOWNHOVER = 18,
- ABS_LEFTHOVER = 19,
- ABS_RIGHTHOVER = 20,
-};
-
-enum SCROLLBARSTYLESTATES {
- SCRBS_NORMAL = 1,
- SCRBS_HOT = 2,
- SCRBS_PRESSED = 3,
- SCRBS_DISABLED = 4,
- SCRBS_HOVER = 5,
-};
-
-enum SIZEBOXSTATES {
- SZB_RIGHTALIGN = 1,
- SZB_LEFTALIGN = 2,
- SZB_TOPRIGHTALIGN = 3,
- SZB_TOPLEFTALIGN = 4,
- SZB_HALFBOTTOMRIGHTALIGN = 5,
- SZB_HALFBOTTOMLEFTALIGN = 6,
- SZB_HALFTOPRIGHTALIGN = 7,
- SZB_HALFTOPLEFTALIGN = 8,
-};
-
-
-//
-// SPINSTYLE class parts and states
-//
-#define VSCLASS_SPINSTYLE L"SPINSTYLE"
-#define VSCLASS_SPIN L"SPIN"
-
-enum SPINPARTS {
- SPNP_UP = 1,
- SPNP_DOWN = 2,
- SPNP_UPHORZ = 3,
- SPNP_DOWNHORZ = 4,
-};
-
-#define SPINSTYLEPARTS SPINPARTS;
-
-enum UPSTATES {
- UPS_NORMAL = 1,
- UPS_HOT = 2,
- UPS_PRESSED = 3,
- UPS_DISABLED = 4,
-};
-
-enum DOWNSTATES {
- DNS_NORMAL = 1,
- DNS_HOT = 2,
- DNS_PRESSED = 3,
- DNS_DISABLED = 4,
-};
-
-enum UPHORZSTATES {
- UPHZS_NORMAL = 1,
- UPHZS_HOT = 2,
- UPHZS_PRESSED = 3,
- UPHZS_DISABLED = 4,
-};
-
-enum DOWNHORZSTATES {
- DNHZS_NORMAL = 1,
- DNHZS_HOT = 2,
- DNHZS_PRESSED = 3,
- DNHZS_DISABLED = 4,
-};
-
-
-//
-// STATUSSTYLE class parts and states
-//
-#define VSCLASS_STATUSSTYLE L"STATUSSTYLE"
-#define VSCLASS_STATUS L"STATUS"
-
-enum STATUSPARTS {
- SP_PANE = 1,
- SP_GRIPPERPANE = 2,
- SP_GRIPPER = 3,
-};
-
-#define STATUSSTYLEPARTS STATUSPARTS;
-
-
-//
-// TABSTYLE class parts and states
-//
-#define VSCLASS_TABSTYLE L"TABSTYLE"
-#define VSCLASS_TAB L"TAB"
-
-enum TABPARTS {
- TABP_TABITEM = 1,
- TABP_TABITEMLEFTEDGE = 2,
- TABP_TABITEMRIGHTEDGE = 3,
- TABP_TABITEMBOTHEDGE = 4,
- TABP_TOPTABITEM = 5,
- TABP_TOPTABITEMLEFTEDGE = 6,
- TABP_TOPTABITEMRIGHTEDGE = 7,
- TABP_TOPTABITEMBOTHEDGE = 8,
- TABP_PANE = 9,
- TABP_BODY = 10,
- TABP_AEROWIZARDBODY = 11,
-};
-
-#define TABSTYLEPARTS TABPARTS;
-
-enum TABITEMSTATES {
- TIS_NORMAL = 1,
- TIS_HOT = 2,
- TIS_SELECTED = 3,
- TIS_DISABLED = 4,
- TIS_FOCUSED = 5,
-};
-
-enum TABITEMLEFTEDGESTATES {
- TILES_NORMAL = 1,
- TILES_HOT = 2,
- TILES_SELECTED = 3,
- TILES_DISABLED = 4,
- TILES_FOCUSED = 5,
-};
-
-enum TABITEMRIGHTEDGESTATES {
- TIRES_NORMAL = 1,
- TIRES_HOT = 2,
- TIRES_SELECTED = 3,
- TIRES_DISABLED = 4,
- TIRES_FOCUSED = 5,
-};
-
-enum TABITEMBOTHEDGESTATES {
- TIBES_NORMAL = 1,
- TIBES_HOT = 2,
- TIBES_SELECTED = 3,
- TIBES_DISABLED = 4,
- TIBES_FOCUSED = 5,
-};
-
-enum TOPTABITEMSTATES {
- TTIS_NORMAL = 1,
- TTIS_HOT = 2,
- TTIS_SELECTED = 3,
- TTIS_DISABLED = 4,
- TTIS_FOCUSED = 5,
-};
-
-enum TOPTABITEMLEFTEDGESTATES {
- TTILES_NORMAL = 1,
- TTILES_HOT = 2,
- TTILES_SELECTED = 3,
- TTILES_DISABLED = 4,
- TTILES_FOCUSED = 5,
-};
-
-enum TOPTABITEMRIGHTEDGESTATES {
- TTIRES_NORMAL = 1,
- TTIRES_HOT = 2,
- TTIRES_SELECTED = 3,
- TTIRES_DISABLED = 4,
- TTIRES_FOCUSED = 5,
-};
-
-enum TOPTABITEMBOTHEDGESTATES {
- TTIBES_NORMAL = 1,
- TTIBES_HOT = 2,
- TTIBES_SELECTED = 3,
- TTIBES_DISABLED = 4,
- TTIBES_FOCUSED = 5,
-};
-
-
-//
-// TASKDIALOGSTYLE class parts and states
-//
-#define VSCLASS_TASKDIALOGSTYLE L"TASKDIALOGSTYLE"
-#define VSCLASS_TASKDIALOG L"TASKDIALOG"
-
-enum TASKDIALOGPARTS {
- TDLG_PRIMARYPANEL = 1,
- TDLG_MAININSTRUCTIONPANE = 2,
- TDLG_MAINICON = 3,
- TDLG_CONTENTPANE = 4,
- TDLG_CONTENTICON = 5,
- TDLG_EXPANDEDCONTENT = 6,
- TDLG_COMMANDLINKPANE = 7,
- TDLG_SECONDARYPANEL = 8,
- TDLG_CONTROLPANE = 9,
- TDLG_BUTTONSECTION = 10,
- TDLG_BUTTONWRAPPER = 11,
- TDLG_EXPANDOTEXT = 12,
- TDLG_EXPANDOBUTTON = 13,
- TDLG_VERIFICATIONTEXT = 14,
- TDLG_FOOTNOTEPANE = 15,
- TDLG_FOOTNOTEAREA = 16,
- TDLG_FOOTNOTESEPARATOR = 17,
- TDLG_EXPANDEDFOOTERAREA = 18,
- TDLG_PROGRESSBAR = 19,
- TDLG_IMAGEALIGNMENT = 20,
- TDLG_RADIOBUTTONPANE = 21,
-};
-
-#define TASKDIALOGSTYLEPARTS TASKDIALOGPARTS;
-
-enum CONTENTPANESTATES {
- TDLGCPS_STANDALONE = 1,
-};
-
-enum EXPANDOBUTTONSTATES {
- TDLGEBS_NORMAL = 1,
- TDLGEBS_HOVER = 2,
- TDLGEBS_PRESSED = 3,
- TDLGEBS_EXPANDEDNORMAL = 4,
- TDLGEBS_EXPANDEDHOVER = 5,
- TDLGEBS_EXPANDEDPRESSED = 6,
-};
-
-
-//
-// TEXTSTYLE class parts and states
-//
-#define VSCLASS_TEXTSTYLE L"TEXTSTYLE"
-
-enum TEXTSTYLEPARTS {
- TEXT_MAININSTRUCTION = 1,
- TEXT_INSTRUCTION = 2,
- TEXT_BODYTITLE = 3,
- TEXT_BODYTEXT = 4,
- TEXT_SECONDARYTEXT = 5,
- TEXT_HYPERLINKTEXT = 6,
- TEXT_EXPANDED = 7,
- TEXT_LABEL = 8,
- TEXT_CONTROLLABEL = 9,
-};
-
-enum HYPERLINKTEXTSTATES {
- TS_HYPERLINK_NORMAL = 1,
- TS_HYPERLINK_HOT = 2,
- TS_HYPERLINK_PRESSED = 3,
- TS_HYPERLINK_DISABLED = 4,
-};
-
-enum CONTROLLABELSTATES {
- TS_CONTROLLABEL_NORMAL = 1,
- TS_CONTROLLABEL_DISABLED = 2,
-};
-
-
-//
-// TOOLBARSTYLE class parts and states
-//
-#define VSCLASS_TOOLBARSTYLE L"TOOLBARSTYLE"
-#define VSCLASS_TOOLBAR L"TOOLBAR"
-
-enum TOOLBARPARTS {
- TP_BUTTON = 1,
- TP_DROPDOWNBUTTON = 2,
- TP_SPLITBUTTON = 3,
- TP_SPLITBUTTONDROPDOWN = 4,
- TP_SEPARATOR = 5,
- TP_SEPARATORVERT = 6,
- TP_DROPDOWNBUTTONGLYPH = 7,
-};
-
-#define TOOLBARSTYLEPARTS TOOLBARPARTS;
-
-enum TOOLBARSTYLESTATES {
- TS_NORMAL = 1,
- TS_HOT = 2,
- TS_PRESSED = 3,
- TS_DISABLED = 4,
- TS_CHECKED = 5,
- TS_HOTCHECKED = 6,
- TS_NEARHOT = 7,
- TS_OTHERSIDEHOT = 8,
-};
-
-
-//
-// TOOLTIPSTYLE class parts and states
-//
-#define VSCLASS_TOOLTIPSTYLE L"TOOLTIPSTYLE"
-#define VSCLASS_TOOLTIP L"TOOLTIP"
-
-enum TOOLTIPPARTS {
- TTP_STANDARD = 1,
- TTP_STANDARDTITLE = 2,
- TTP_BALLOON = 3,
- TTP_BALLOONTITLE = 4,
- TTP_CLOSE = 5,
- TTP_BALLOONSTEM = 6,
- TTP_WRENCH = 7,
-};
-
-#define TOOLTIPSTYLEPARTS TOOLTIPPARTS;
-
-enum CLOSESTATES {
- TTCS_NORMAL = 1,
- TTCS_HOT = 2,
- TTCS_PRESSED = 3,
-};
-
-enum STANDARDSTATES {
- TTSS_NORMAL = 1,
- TTSS_LINK = 2,
-};
-
-enum BALLOONSTATES {
- TTBS_NORMAL = 1,
- TTBS_LINK = 2,
-};
-
-enum BALLOONSTEMSTATES {
- TTBSS_POINTINGUPLEFTWALL = 1,
- TTBSS_POINTINGUPCENTERED = 2,
- TTBSS_POINTINGUPRIGHTWALL = 3,
- TTBSS_POINTINGDOWNRIGHTWALL = 4,
- TTBSS_POINTINGDOWNCENTERED = 5,
- TTBSS_POINTINGDOWNLEFTWALL = 6,
-};
-
-enum WRENCHSTATES {
- TTWS_NORMAL = 1,
- TTWS_HOT = 2,
- TTWS_PRESSED = 3,
-};
-
-
-//
-// TRACKBARSTYLE class parts and states
-//
-#define VSCLASS_TRACKBARSTYLE L"TRACKBARSTYLE"
-#define VSCLASS_TRACKBAR L"TRACKBAR"
-
-enum TRACKBARPARTS {
- TKP_TRACK = 1,
- TKP_TRACKVERT = 2,
- TKP_THUMB = 3,
- TKP_THUMBBOTTOM = 4,
- TKP_THUMBTOP = 5,
- TKP_THUMBVERT = 6,
- TKP_THUMBLEFT = 7,
- TKP_THUMBRIGHT = 8,
- TKP_TICS = 9,
- TKP_TICSVERT = 10,
-};
-
-#define TRACKBARSTYLEPARTS TRACKBARPARTS;
-
-enum TRACKBARSTYLESTATES {
- TKS_NORMAL = 1,
-};
-
-enum TRACKSTATES {
- TRS_NORMAL = 1,
-};
-
-enum TRACKVERTSTATES {
- TRVS_NORMAL = 1,
-};
-
-enum THUMBSTATES {
- TUS_NORMAL = 1,
- TUS_HOT = 2,
- TUS_PRESSED = 3,
- TUS_FOCUSED = 4,
- TUS_DISABLED = 5,
-};
-
-enum THUMBBOTTOMSTATES {
- TUBS_NORMAL = 1,
- TUBS_HOT = 2,
- TUBS_PRESSED = 3,
- TUBS_FOCUSED = 4,
- TUBS_DISABLED = 5,
-};
-
-enum THUMBTOPSTATES {
- TUTS_NORMAL = 1,
- TUTS_HOT = 2,
- TUTS_PRESSED = 3,
- TUTS_FOCUSED = 4,
- TUTS_DISABLED = 5,
-};
-
-enum THUMBVERTSTATES {
- TUVS_NORMAL = 1,
- TUVS_HOT = 2,
- TUVS_PRESSED = 3,
- TUVS_FOCUSED = 4,
- TUVS_DISABLED = 5,
-};
-
-enum THUMBLEFTSTATES {
- TUVLS_NORMAL = 1,
- TUVLS_HOT = 2,
- TUVLS_PRESSED = 3,
- TUVLS_FOCUSED = 4,
- TUVLS_DISABLED = 5,
-};
-
-enum THUMBRIGHTSTATES {
- TUVRS_NORMAL = 1,
- TUVRS_HOT = 2,
- TUVRS_PRESSED = 3,
- TUVRS_FOCUSED = 4,
- TUVRS_DISABLED = 5,
-};
-
-enum TICSSTATES {
- TSS_NORMAL = 1,
-};
-
-enum TICSVERTSTATES {
- TSVS_NORMAL = 1,
-};
-
-
-//
-// TREEVIEWSTYLE class parts and states
-//
-#define VSCLASS_TREEVIEWSTYLE L"TREEVIEWSTYLE"
-#define VSCLASS_TREEVIEW L"TREEVIEW"
-
-enum TREEVIEWPARTS {
- TVP_TREEITEM = 1,
- TVP_GLYPH = 2,
- TVP_BRANCH = 3,
- TVP_HOTGLYPH = 4,
-};
-
-#define TREEVIEWSTYLEPARTS TREEVIEWPARTS;
-
-enum TREEITEMSTATES {
- TREIS_NORMAL = 1,
- TREIS_HOT = 2,
- TREIS_SELECTED = 3,
- TREIS_DISABLED = 4,
- TREIS_SELECTEDNOTFOCUS = 5,
- TREIS_HOTSELECTED = 6,
-};
-
-enum GLYPHSTATES {
- GLPS_CLOSED = 1,
- GLPS_OPENED = 2,
-};
-
-enum HOTGLYPHSTATES {
- HGLPS_CLOSED = 1,
- HGLPS_OPENED = 2,
-};
-
-
-//
-// WINDOWSTYLE class parts and states
-//
-#define VSCLASS_WINDOWSTYLE L"WINDOWSTYLE"
-#define VSCLASS_WINDOW L"WINDOW"
-
-enum WINDOWPARTS {
- WP_CAPTION = 1,
- WP_SMALLCAPTION = 2,
- WP_MINCAPTION = 3,
- WP_SMALLMINCAPTION = 4,
- WP_MAXCAPTION = 5,
- WP_SMALLMAXCAPTION = 6,
- WP_FRAMELEFT = 7,
- WP_FRAMERIGHT = 8,
- WP_FRAMEBOTTOM = 9,
- WP_SMALLFRAMELEFT = 10,
- WP_SMALLFRAMERIGHT = 11,
- WP_SMALLFRAMEBOTTOM = 12,
- WP_SYSBUTTON = 13,
- WP_MDISYSBUTTON = 14,
- WP_MINBUTTON = 15,
- WP_MDIMINBUTTON = 16,
- WP_MAXBUTTON = 17,
- WP_CLOSEBUTTON = 18,
- WP_SMALLCLOSEBUTTON = 19,
- WP_MDICLOSEBUTTON = 20,
- WP_RESTOREBUTTON = 21,
- WP_MDIRESTOREBUTTON = 22,
- WP_HELPBUTTON = 23,
- WP_MDIHELPBUTTON = 24,
- WP_HORZSCROLL = 25,
- WP_HORZTHUMB = 26,
- WP_VERTSCROLL = 27,
- WP_VERTTHUMB = 28,
- WP_DIALOG = 29,
- WP_CAPTIONSIZINGTEMPLATE = 30,
- WP_SMALLCAPTIONSIZINGTEMPLATE = 31,
- WP_FRAMELEFTSIZINGTEMPLATE = 32,
- WP_SMALLFRAMELEFTSIZINGTEMPLATE = 33,
- WP_FRAMERIGHTSIZINGTEMPLATE = 34,
- WP_SMALLFRAMERIGHTSIZINGTEMPLATE = 35,
- WP_FRAMEBOTTOMSIZINGTEMPLATE = 36,
- WP_SMALLFRAMEBOTTOMSIZINGTEMPLATE = 37,
- WP_FRAME = 38,
-};
-
-#define WINDOWSTYLEPARTS WINDOWPARTS;
-
-enum FRAMESTATES {
- FS_ACTIVE = 1,
- FS_INACTIVE = 2,
-};
-
-enum CAPTIONSTATES {
- CS_ACTIVE = 1,
- CS_INACTIVE = 2,
- CS_DISABLED = 3,
-};
-
-enum MAXCAPTIONSTATES {
- MXCS_ACTIVE = 1,
- MXCS_INACTIVE = 2,
- MXCS_DISABLED = 3,
-};
-
-enum MINCAPTIONSTATES {
- MNCS_ACTIVE = 1,
- MNCS_INACTIVE = 2,
- MNCS_DISABLED = 3,
-};
-
-enum HORZSCROLLSTATES {
- HSS_NORMAL = 1,
- HSS_HOT = 2,
- HSS_PUSHED = 3,
- HSS_DISABLED = 4,
-};
-
-enum HORZTHUMBSTATES {
- HTS_NORMAL = 1,
- HTS_HOT = 2,
- HTS_PUSHED = 3,
- HTS_DISABLED = 4,
-};
-
-enum VERTSCROLLSTATES {
- VSS_NORMAL = 1,
- VSS_HOT = 2,
- VSS_PUSHED = 3,
- VSS_DISABLED = 4,
-};
-
-enum VERTTHUMBSTATES {
- VTS_NORMAL = 1,
- VTS_HOT = 2,
- VTS_PUSHED = 3,
- VTS_DISABLED = 4,
-};
-
-enum SYSBUTTONSTATES {
- SBS_NORMAL = 1,
- SBS_HOT = 2,
- SBS_PUSHED = 3,
- SBS_DISABLED = 4,
-};
-
-enum MINBUTTONSTATES {
- MINBS_NORMAL = 1,
- MINBS_HOT = 2,
- MINBS_PUSHED = 3,
- MINBS_DISABLED = 4,
-};
-
-enum MAXBUTTONSTATES {
- MAXBS_NORMAL = 1,
- MAXBS_HOT = 2,
- MAXBS_PUSHED = 3,
- MAXBS_DISABLED = 4,
-};
-
-enum RESTOREBUTTONSTATES {
- RBS_NORMAL = 1,
- RBS_HOT = 2,
- RBS_PUSHED = 3,
- RBS_DISABLED = 4,
-};
-
-enum HELPBUTTONSTATES {
- HBS_NORMAL = 1,
- HBS_HOT = 2,
- HBS_PUSHED = 3,
- HBS_DISABLED = 4,
-};
-
-enum CLOSEBUTTONSTATES {
- CBS_NORMAL = 1,
- CBS_HOT = 2,
- CBS_PUSHED = 3,
- CBS_DISABLED = 4,
-};
-
-
-#endif //__VSSTYLE_H__
-
diff --git a/plugins/Clist_nicer/src/Include/vssym32.h b/plugins/Clist_nicer/src/Include/vssym32.h
deleted file mode 100644
index 4d2b6fd62d..0000000000
--- a/plugins/Clist_nicer/src/Include/vssym32.h
+++ /dev/null
@@ -1,712 +0,0 @@
-//-------------------------------------------------------------------------//
-// VisualStyle Core Win32/ComCtl32 symbols
-//-------------------------------------------------------------------------//
-
-#ifndef __VSSYM32_H__
-#define __VSSYM32_H__
-
-#include "VSStyle.h"
-
-//
-// enumerated property values
-//
-
-enum BGTYPE {
- BT_IMAGEFILE = 0,
- BT_BORDERFILL = 1,
- BT_NONE = 2,
-};
-
-
-//
-// enumerated property values
-//
-
-enum IMAGELAYOUT {
- IL_VERTICAL = 0,
- IL_HORIZONTAL = 1,
-};
-
-
-//
-// enumerated property values
-//
-
-enum BORDERTYPE {
- BT_RECT = 0,
- BT_ROUNDRECT = 1,
- BT_ELLIPSE = 2,
-};
-
-
-//
-// enumerated property values
-//
-
-enum FILLTYPE {
- FT_SOLID = 0,
- FT_VERTGRADIENT = 1,
- FT_HORZGRADIENT = 2,
- FT_RADIALGRADIENT = 3,
- FT_TILEIMAGE = 4,
-};
-
-
-//
-// enumerated property values
-//
-
-enum SIZINGTYPE {
- ST_TRUESIZE = 0,
- ST_STRETCH = 1,
- ST_TILE = 2,
-};
-
-
-//
-// enumerated property values
-//
-
-enum HALIGN {
- HA_LEFT = 0,
- HA_CENTER = 1,
- HA_RIGHT = 2,
-};
-
-
-//
-// enumerated property values
-//
-
-enum CONTENTALIGNMENT {
- CA_LEFT = 0,
- CA_CENTER = 1,
- CA_RIGHT = 2,
-};
-
-
-//
-// enumerated property values
-//
-
-enum VALIGN {
- VA_TOP = 0,
- VA_CENTER = 1,
- VA_BOTTOM = 2,
-};
-
-
-//
-// enumerated property values
-//
-
-enum OFFSETTYPE {
- OT_TOPLEFT = 0,
- OT_TOPRIGHT = 1,
- OT_TOPMIDDLE = 2,
- OT_BOTTOMLEFT = 3,
- OT_BOTTOMRIGHT = 4,
- OT_BOTTOMMIDDLE = 5,
- OT_MIDDLELEFT = 6,
- OT_MIDDLERIGHT = 7,
- OT_LEFTOFCAPTION = 8,
- OT_RIGHTOFCAPTION = 9,
- OT_LEFTOFLASTBUTTON = 10,
- OT_RIGHTOFLASTBUTTON = 11,
- OT_ABOVELASTBUTTON = 12,
- OT_BELOWLASTBUTTON = 13,
-};
-
-
-//
-// enumerated property values
-//
-
-enum ICONEFFECT {
- ICE_NONE = 0,
- ICE_GLOW = 1,
- ICE_SHADOW = 2,
- ICE_PULSE = 3,
- ICE_ALPHA = 4,
-};
-
-
-//
-// enumerated property values
-//
-
-enum TEXTSHADOWTYPE {
- TST_NONE = 0,
- TST_SINGLE = 1,
- TST_CONTINUOUS = 2,
-};
-
-
-//
-// enumerated property values
-//
-
-enum GLYPHTYPE {
- GT_NONE = 0,
- GT_IMAGEGLYPH = 1,
- GT_FONTGLYPH = 2,
-};
-
-
-//
-// enumerated property values
-//
-
-enum IMAGESELECTTYPE {
- IST_NONE = 0,
- IST_SIZE = 1,
- IST_DPI = 2,
-};
-
-
-//
-// enumerated property values
-//
-
-enum TRUESIZESCALINGTYPE {
- TSST_NONE = 0,
- TSST_SIZE = 1,
- TSST_DPI = 2,
-};
-
-
-//
-// enumerated property values
-//
-
-enum GLYPHFONTSIZINGTYPE {
- GFST_NONE = 0,
- GFST_SIZE = 1,
- GFST_DPI = 2,
-};
-
-//
-// property symbol definitions
-//
-
-#define TMT_RESERVEDLOW 0
-#define TMT_RESERVEDHIGH 7999
-
-#define TMT_DIBDATA 2
-#define TMT_GLYPHDIBDATA 8
-#define TMT_ENUM 200
-#define TMT_STRING 201
-#define TMT_INT 202
-#define TMT_BOOL 203
-#define TMT_COLOR 204
-#define TMT_MARGINS 205
-#define TMT_FILENAME 206
-#define TMT_SIZE 207
-#define TMT_POSITION 208
-#define TMT_RECT 209
-#define TMT_FONT 210
-#define TMT_INTLIST 211
-#define TMT_HBITMAP 212
-#define TMT_DISKSTREAM 213
-#define TMT_STREAM 214
-#define TMT_BITMAPREF 215
-#define TMT_COLORSCHEMES 401
-#define TMT_SIZES 402
-#define TMT_CHARSET 403
-#define TMT_NAME 600
-#define TMT_DISPLAYNAME 601
-#define TMT_TOOLTIP 602
-#define TMT_COMPANY 603
-#define TMT_AUTHOR 604
-#define TMT_COPYRIGHT 605
-#define TMT_URL 606
-#define TMT_VERSION 607
-#define TMT_DESCRIPTION 608
-#define TMT_FIRST_RCSTRING_NAME TMT_DISPLAYNAME
-#define TMT_LAST_RCSTRING_NAME TMT_DESCRIPTION
-#define TMT_CAPTIONFONT 801
-#define TMT_SMALLCAPTIONFONT 802
-#define TMT_MENUFONT 803
-#define TMT_STATUSFONT 804
-#define TMT_MSGBOXFONT 805
-#define TMT_ICONTITLEFONT 806
-#define TMT_HEADING1FONT 807
-#define TMT_HEADING2FONT 808
-#define TMT_BODYFONT 809
-#define TMT_FIRSTFONT TMT_CAPTIONFONT
-#define TMT_LASTFONT TMT_BODYFONT
-#define TMT_FLATMENUS 1001
-#define TMT_FIRSTBOOL TMT_FLATMENUS
-#define TMT_LASTBOOL TMT_FLATMENUS
-#define TMT_SIZINGBORDERWIDTH 1201
-#define TMT_SCROLLBARWIDTH 1202
-#define TMT_SCROLLBARHEIGHT 1203
-#define TMT_CAPTIONBARWIDTH 1204
-#define TMT_CAPTIONBARHEIGHT 1205
-#define TMT_SMCAPTIONBARWIDTH 1206
-#define TMT_SMCAPTIONBARHEIGHT 1207
-#define TMT_MENUBARWIDTH 1208
-#define TMT_MENUBARHEIGHT 1209
-#define TMT_PADDEDBORDERWIDTH 1210
-#define TMT_FIRSTSIZE TMT_SIZINGBORDERWIDTH
-#define TMT_LASTSIZE TMT_PADDEDBORDERWIDTH
-#define TMT_MINCOLORDEPTH 1301
-#define TMT_FIRSTINT TMT_MINCOLORDEPTH
-#define TMT_LASTINT TMT_MINCOLORDEPTH
-#define TMT_CSSNAME 1401
-#define TMT_XMLNAME 1402
-#define TMT_LASTUPDATED 1403
-#define TMT_ALIAS 1404
-#define TMT_FIRSTSTRING TMT_CSSNAME
-#define TMT_LASTSTRING TMT_ALIAS
-#define TMT_SCROLLBAR 1601
-#define TMT_BACKGROUND 1602
-#define TMT_ACTIVECAPTION 1603
-#define TMT_INACTIVECAPTION 1604
-#define TMT_MENU 1605
-#define TMT_WINDOW 1606
-#define TMT_WINDOWFRAME 1607
-#define TMT_MENUTEXT 1608
-#define TMT_WINDOWTEXT 1609
-#define TMT_CAPTIONTEXT 1610
-#define TMT_ACTIVEBORDER 1611
-#define TMT_INACTIVEBORDER 1612
-#define TMT_APPWORKSPACE 1613
-#define TMT_HIGHLIGHT 1614
-#define TMT_HIGHLIGHTTEXT 1615
-#define TMT_BTNFACE 1616
-#define TMT_BTNSHADOW 1617
-#define TMT_GRAYTEXT 1618
-#define TMT_BTNTEXT 1619
-#define TMT_INACTIVECAPTIONTEXT 1620
-#define TMT_BTNHIGHLIGHT 1621
-#define TMT_DKSHADOW3D 1622
-#define TMT_LIGHT3D 1623
-#define TMT_INFOTEXT 1624
-#define TMT_INFOBK 1625
-#define TMT_BUTTONALTERNATEFACE 1626
-#define TMT_HOTTRACKING 1627
-#define TMT_GRADIENTACTIVECAPTION 1628
-#define TMT_GRADIENTINACTIVECAPTION 1629
-#define TMT_MENUHILIGHT 1630
-#define TMT_MENUBAR 1631
-#define TMT_FIRSTCOLOR TMT_SCROLLBAR
-#define TMT_LASTCOLOR TMT_MENUBAR
-#define TMT_FROMHUE1 1801
-#define TMT_FROMHUE2 1802
-#define TMT_FROMHUE3 1803
-#define TMT_FROMHUE4 1804
-#define TMT_FROMHUE5 1805
-#define TMT_TOHUE1 1806
-#define TMT_TOHUE2 1807
-#define TMT_TOHUE3 1808
-#define TMT_TOHUE4 1809
-#define TMT_TOHUE5 1810
-#define TMT_FROMCOLOR1 2001
-#define TMT_FROMCOLOR2 2002
-#define TMT_FROMCOLOR3 2003
-#define TMT_FROMCOLOR4 2004
-#define TMT_FROMCOLOR5 2005
-#define TMT_TOCOLOR1 2006
-#define TMT_TOCOLOR2 2007
-#define TMT_TOCOLOR3 2008
-#define TMT_TOCOLOR4 2009
-#define TMT_TOCOLOR5 2010
-#define TMT_TRANSPARENT 2201
-#define TMT_AUTOSIZE 2202
-#define TMT_BORDERONLY 2203
-#define TMT_COMPOSITED 2204
-#define TMT_BGFILL 2205
-#define TMT_GLYPHTRANSPARENT 2206
-#define TMT_GLYPHONLY 2207
-#define TMT_ALWAYSSHOWSIZINGBAR 2208
-#define TMT_MIRRORIMAGE 2209
-#define TMT_UNIFORMSIZING 2210
-#define TMT_INTEGRALSIZING 2211
-#define TMT_SOURCEGROW 2212
-#define TMT_SOURCESHRINK 2213
-#define TMT_DRAWBORDERS 2214
-#define TMT_NOETCHEDEFFECT 2215
-#define TMT_TEXTAPPLYOVERLAY 2216
-#define TMT_TEXTGLOW 2217
-#define TMT_TEXTITALIC 2218
-#define TMT_COMPOSITEDOPAQUE 2219
-#define TMT_LOCALIZEDMIRRORIMAGE 2220
-#define TMT_IMAGECOUNT 2401
-#define TMT_ALPHALEVEL 2402
-#define TMT_BORDERSIZE 2403
-#define TMT_ROUNDCORNERWIDTH 2404
-#define TMT_ROUNDCORNERHEIGHT 2405
-#define TMT_GRADIENTRATIO1 2406
-#define TMT_GRADIENTRATIO2 2407
-#define TMT_GRADIENTRATIO3 2408
-#define TMT_GRADIENTRATIO4 2409
-#define TMT_GRADIENTRATIO5 2410
-#define TMT_PROGRESSCHUNKSIZE 2411
-#define TMT_PROGRESSSPACESIZE 2412
-#define TMT_SATURATION 2413
-#define TMT_TEXTBORDERSIZE 2414
-#define TMT_ALPHATHRESHOLD 2415
-#define TMT_WIDTH 2416
-#define TMT_HEIGHT 2417
-#define TMT_GLYPHINDEX 2418
-#define TMT_TRUESIZESTRETCHMARK 2419
-#define TMT_MINDPI1 2420
-#define TMT_MINDPI2 2421
-#define TMT_MINDPI3 2422
-#define TMT_MINDPI4 2423
-#define TMT_MINDPI5 2424
-#define TMT_TEXTGLOWSIZE 2425
-#define TMT_FRAMESPERSECOND 2426
-#define TMT_PIXELSPERFRAME 2427
-#define TMT_ANIMATIONDELAY 2428
-#define TMT_GLOWINTENSITY 2429
-#define TMT_OPACITY 2430
-#define TMT_COLORIZATIONCOLOR 2431
-#define TMT_COLORIZATIONOPACITY 2432
-#define TMT_GLYPHFONT 2601
-#define TMT_IMAGEFILE 3001
-#define TMT_IMAGEFILE1 3002
-#define TMT_IMAGEFILE2 3003
-#define TMT_IMAGEFILE3 3004
-#define TMT_IMAGEFILE4 3005
-#define TMT_IMAGEFILE5 3006
-#define TMT_GLYPHIMAGEFILE 3008
-#define TMT_TEXT 3201
-#define TMT_CLASSICVALUE 3202
-#define TMT_OFFSET 3401
-#define TMT_TEXTSHADOWOFFSET 3402
-#define TMT_MINSIZE 3403
-#define TMT_MINSIZE1 3404
-#define TMT_MINSIZE2 3405
-#define TMT_MINSIZE3 3406
-#define TMT_MINSIZE4 3407
-#define TMT_MINSIZE5 3408
-#define TMT_NORMALSIZE 3409
-#define TMT_SIZINGMARGINS 3601
-#define TMT_CONTENTMARGINS 3602
-#define TMT_CAPTIONMARGINS 3603
-#define TMT_BORDERCOLOR 3801
-#define TMT_FILLCOLOR 3802
-#define TMT_TEXTCOLOR 3803
-#define TMT_EDGELIGHTCOLOR 3804
-#define TMT_EDGEHIGHLIGHTCOLOR 3805
-#define TMT_EDGESHADOWCOLOR 3806
-#define TMT_EDGEDKSHADOWCOLOR 3807
-#define TMT_EDGEFILLCOLOR 3808
-#define TMT_TRANSPARENTCOLOR 3809
-#define TMT_GRADIENTCOLOR1 3810
-#define TMT_GRADIENTCOLOR2 3811
-#define TMT_GRADIENTCOLOR3 3812
-#define TMT_GRADIENTCOLOR4 3813
-#define TMT_GRADIENTCOLOR5 3814
-#define TMT_SHADOWCOLOR 3815
-#define TMT_GLOWCOLOR 3816
-#define TMT_TEXTBORDERCOLOR 3817
-#define TMT_TEXTSHADOWCOLOR 3818
-#define TMT_GLYPHTEXTCOLOR 3819
-#define TMT_GLYPHTRANSPARENTCOLOR 3820
-#define TMT_FILLCOLORHINT 3821
-#define TMT_BORDERCOLORHINT 3822
-#define TMT_ACCENTCOLORHINT 3823
-#define TMT_TEXTCOLORHINT 3824
-#define TMT_HEADING1TEXTCOLOR 3825
-#define TMT_HEADING2TEXTCOLOR 3826
-#define TMT_BODYTEXTCOLOR 3827
-#define TMT_BGTYPE 4001
-#define TMT_BORDERTYPE 4002
-#define TMT_FILLTYPE 4003
-#define TMT_SIZINGTYPE 4004
-#define TMT_HALIGN 4005
-#define TMT_CONTENTALIGNMENT 4006
-#define TMT_VALIGN 4007
-#define TMT_OFFSETTYPE 4008
-#define TMT_ICONEFFECT 4009
-#define TMT_TEXTSHADOWTYPE 4010
-#define TMT_IMAGELAYOUT 4011
-#define TMT_GLYPHTYPE 4012
-#define TMT_IMAGESELECTTYPE 4013
-#define TMT_GLYPHFONTSIZINGTYPE 4014
-#define TMT_TRUESIZESCALINGTYPE 4015
-#define TMT_USERPICTURE 5001
-#define TMT_DEFAULTPANESIZE 5002
-#define TMT_BLENDCOLOR 5003
-#define TMT_CUSTOMSPLITRECT 5004
-#define TMT_ANIMATIONBUTTONRECT 5005
-#define TMT_ANIMATIONDURATION 5006
-#define TMT_TRANSITIONDURATIONS 6000
-#define TMT_SCALEDBACKGROUND 7001
-#define TMT_ATLASIMAGE 8000
-#define TMT_ATLASINPUTIMAGE 8001
-#define TMT_ATLASRECT 8002
-
-
-//
-// LINK class parts and states
-//
-#define VSCLASS_LINK L"LINK"
-
-enum LINKPARTS {
- LP_HYPERLINK = 1,
-};
-
-enum HYPERLINKSTATES {
- HLS_NORMALTEXT = 1,
- HLS_LINKTEXT = 2,
-};
-
-
-//
-// EMPTYMARKUP class parts and states
-//
-#define VSCLASS_EMPTYMARKUP L"EMPTYMARKUP"
-
-enum EMPTYMARKUPPARTS {
- EMP_MARKUPTEXT = 1,
-};
-
-enum MARKUPTEXTSTATES {
- EMT_NORMALTEXT = 1,
- EMT_LINKTEXT = 2,
-};
-
-
-//
-// STATIC class parts and states
-//
-#define VSCLASS_STATIC L"STATIC"
-
-enum STATICPARTS {
- STAT_TEXT = 1,
-};
-
-
-//
-// PAGE class parts and states
-//
-#define VSCLASS_PAGE L"PAGE"
-
-enum PAGEPARTS {
- PGRP_UP = 1,
- PGRP_DOWN = 2,
- PGRP_UPHORZ = 3,
- PGRP_DOWNHORZ = 4,
-};
-
-
-//
-// MONTHCAL class parts and states
-//
-#define VSCLASS_MONTHCAL L"MONTHCAL"
-
-enum MONTHCALPARTS {
- MC_BACKGROUND = 1,
- MC_BORDERS = 2,
- MC_GRIDBACKGROUND = 3,
- MC_COLHEADERSPLITTER = 4,
- MC_GRIDCELLBACKGROUND = 5,
- MC_GRIDCELL = 6,
- MC_GRIDCELLUPPER = 7,
- MC_TRAILINGGRIDCELL = 8,
- MC_TRAILINGGRIDCELLUPPER = 9,
- MC_NAVNEXT = 10,
- MC_NAVPREV = 11,
-};
-
-enum GRIDCELLBACKGROUNDSTATES {
- MCGCB_SELECTED = 1,
- MCGCB_HOT = 2,
- MCGCB_SELECTEDHOT = 3,
- MCGCB_SELECTEDNOTFOCUSED = 4,
- MCGCB_TODAY = 5,
-};
-
-enum GRIDCELLSTATES {
- MCGC_HOT = 1,
- MCGC_HASSTATE = 2,
- MCGC_HASSTATEHOT = 3,
- MCGC_TODAY = 4,
-};
-
-enum GRIDCELLUPPERSTATES {
- MCGCU_HOT = 1,
- MCGCU_HASSTATE = 2,
- MCGCU_HASSTATEHOT = 3,
-};
-
-enum TRAILINGGRIDCELLSTATES {
- MCTGC_HOT = 1,
- MCTGC_HASSTATE = 2,
- MCTGC_HASSTATEHOT = 3,
- MCTGC_TODAY = 4,
-};
-
-enum TRAILINGGRIDCELLUPPERSTATES {
- MCTGCU_HOT = 1,
- MCTGCU_HASSTATE = 2,
- MCTGCU_HASSTATEHOT = 3,
-};
-
-enum NAVNEXTSTATES {
- MCNN_NORMAL = 1,
- MCNN_HOT = 2,
- MCNN_PRESSED = 3,
- MCNN_DISABLED = 4,
-};
-
-enum NAVPREVSTATES {
- MCNP_NORMAL = 1,
- MCNP_HOT = 2,
- MCNP_PRESSED = 3,
- MCNP_DISABLED = 4,
-};
-
-
-//
-// CLOCK class parts and states
-//
-#define VSCLASS_CLOCK L"CLOCK"
-
-enum CLOCKPARTS {
- CLP_TIME = 1,
-};
-
-enum CLOCKSTATES {
- CLS_NORMAL = 1,
- CLS_HOT = 2,
- CLS_PRESSED = 3,
-};
-
-
-//
-// TRAYNOTIFY class parts and states
-//
-#define VSCLASS_TRAYNOTIFY L"TRAYNOTIFY"
-
-enum TRAYNOTIFYPARTS {
- TNP_BACKGROUND = 1,
- TNP_ANIMBACKGROUND = 2,
-};
-
-
-//
-// TASKBAR class parts and states
-//
-#define VSCLASS_TASKBAR L"TASKBAR"
-
-enum TASKBARPARTS {
- TBP_BACKGROUNDBOTTOM = 1,
- TBP_BACKGROUNDRIGHT = 2,
- TBP_BACKGROUNDTOP = 3,
- TBP_BACKGROUNDLEFT = 4,
- TBP_SIZINGBARBOTTOM = 5,
- TBP_SIZINGBARRIGHT = 6,
- TBP_SIZINGBARTOP = 7,
- TBP_SIZINGBARLEFT = 8,
-};
-
-
-//
-// TASKBAND class parts and states
-//
-#define VSCLASS_TASKBAND L"TASKBAND"
-
-enum TASKBANDPARTS {
- TDP_GROUPCOUNT = 1,
- TDP_FLASHBUTTON = 2,
- TDP_FLASHBUTTONGROUPMENU = 3,
-};
-
-
-//
-// STARTPANEL class parts and states
-//
-#define VSCLASS_STARTPANEL L"STARTPANEL"
-
-enum STARTPANELPARTS {
- SPP_USERPANE = 1,
- SPP_MOREPROGRAMS = 2,
- SPP_MOREPROGRAMSARROW = 3,
- SPP_PROGLIST = 4,
- SPP_PROGLISTSEPARATOR = 5,
- SPP_PLACESLIST = 6,
- SPP_PLACESLISTSEPARATOR = 7,
- SPP_LOGOFF = 8,
- SPP_LOGOFFBUTTONS = 9,
- SPP_USERPICTURE = 10,
- SPP_PREVIEW = 11,
- SPP_MOREPROGRAMSTAB = 12,
- SPP_NSCHOST = 13,
- SPP_SOFTWAREEXPLORER = 14,
- SPP_OPENBOX = 15,
- SPP_SEARCHVIEW = 16,
- SPP_MOREPROGRAMSARROWBACK = 17,
- SPP_TOPMATCH = 18,
- SPP_LOGOFFSPLITBUTTONDROPDOWN = 19,
-};
-
-enum MOREPROGRAMSTABSTATES {
- SPMPT_NORMAL = 1,
- SPMPT_HOT = 2,
- SPMPT_SELECTED = 3,
- SPMPT_DISABLED = 4,
- SPMPT_FOCUSED = 5,
-};
-
-enum SOFTWAREEXPLORERSTATES {
- SPSE_NORMAL = 1,
- SPSE_HOT = 2,
- SPSE_SELECTED = 3,
- SPSE_DISABLED = 4,
- SPSE_FOCUSED = 5,
-};
-
-enum OPENBOXSTATES {
- SPOB_NORMAL = 1,
- SPOB_HOT = 2,
- SPOB_SELECTED = 3,
- SPOB_DISABLED = 4,
- SPOB_FOCUSED = 5,
-};
-
-enum MOREPROGRAMSARROWSTATES {
- SPS_NORMAL = 1,
- SPS_HOT = 2,
- SPS_PRESSED = 3,
-};
-
-enum MOREPROGRAMSARROWBACKSTATES {
- SPSB_NORMAL = 1,
- SPSB_HOT = 2,
- SPSB_PRESSED = 3,
-};
-
-enum LOGOFFBUTTONSSTATES {
- SPLS_NORMAL = 1,
- SPLS_HOT = 2,
- SPLS_PRESSED = 3,
-};
-
-
-//
-// MENUBAND class parts and states
-//
-#define VSCLASS_MENUBAND L"MENUBAND"
-
-enum MENUBANDPARTS {
- MDP_NEWAPPBUTTON = 1,
- MDP_SEPERATOR = 2,
-};
-
-enum MENUBANDSTATES {
- MDS_NORMAL = 1,
- MDS_HOT = 2,
- MDS_PRESSED = 3,
- MDS_DISABLED = 4,
- MDS_CHECKED = 5,
- MDS_HOTCHECKED = 6,
-};
-
-
-#endif //__VSSYM32_H__
-
diff --git a/plugins/Clist_nicer/src/init.cpp b/plugins/Clist_nicer/src/init.cpp
index 9283d85c17..661dbfb617 100644
--- a/plugins/Clist_nicer/src/init.cpp
+++ b/plugins/Clist_nicer/src/init.cpp
@@ -103,16 +103,16 @@ void RecalcScrollBar(HWND hwnd, struct ClcData *dat);
PLUGININFOEX pluginInfo =
{
sizeof(PLUGININFOEX),
- "CList Nicer+",
- PLUGIN_MAKE_VERSION(0, 9, 2, 1),
- "Displays contacts, event notifications, protocol status.",
- "Pixel, egoDust, cyreve, Nightwish",
- "",
- "Copyright 2000-2010 Miranda-IM project",
- "http://miranda-ng.org/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
- // {8F79B4EE-EB48-4a03-873E-27BE6B7E9A25}
- {0x8f79b4ee, 0xeb48, 0x4a03, { 0x87, 0x3e, 0x27, 0xbe, 0x6b, 0x7e, 0x9a, 0x25 }}
+ // {8F79B4EE-EB48-4A03-873E-27BE6B7E9A25}
+ {0x8f79b4ee, 0xeb48, 0x4a03, {0x87, 0x3e, 0x27, 0xbe, 0x6b, 0x7e, 0x9a, 0x25}}
};