From bb88f142d7d41f0d6e6a4d1919fe6d6ace03fbe2 Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Sun, 24 Apr 2011 17:39:28 +0000 Subject: popup: typo fixed fixed errors with ansi plugins fixed destroying all of popups windows before unloading added destroing functions on exit git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@24 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- popup/PopUp_10.sln | 38 ++ popup/PopUp_10.vcxproj | 813 +++++++++++++++++++++++++++++++++++++++++ popup/PopUp_10.vcxproj.filters | 391 ++++++++++++++++++++ popup/resource.rc | 18 +- popup/src/effects.cpp | 3 +- popup/src/headers.h | 1 + popup/src/history.cpp | 2 +- popup/src/main.cpp | 38 +- popup/src/notifications.cpp | 2 +- popup/src/popup_wnd2.cpp | 2 +- 10 files changed, 1281 insertions(+), 27 deletions(-) create mode 100644 popup/PopUp_10.sln create mode 100644 popup/PopUp_10.vcxproj create mode 100644 popup/PopUp_10.vcxproj.filters diff --git a/popup/PopUp_10.sln b/popup/PopUp_10.sln new file mode 100644 index 0000000..896b278 --- /dev/null +++ b/popup/PopUp_10.sln @@ -0,0 +1,38 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PopUp", "PopUp_10.vcxproj", "{726460C7-E1F1-4C37-B64F-DA8A8DD26D70}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug 2in1|Win32 = Debug 2in1|Win32 + Debug 2in1|x64 = Debug 2in1|x64 + Debug Unicode|Win32 = Debug Unicode|Win32 + Debug Unicode|x64 = Debug Unicode|x64 + Release 2in1|Win32 = Release 2in1|Win32 + Release 2in1|x64 = Release 2in1|x64 + Release Unicode|Win32 = Release Unicode|Win32 + Release Unicode|x64 = Release Unicode|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Debug 2in1|Win32.ActiveCfg = Debug 2in1|Win32 + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Debug 2in1|Win32.Build.0 = Debug 2in1|Win32 + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Debug 2in1|x64.ActiveCfg = Debug 2in1|x64 + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Debug 2in1|x64.Build.0 = Debug 2in1|x64 + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Debug Unicode|Win32.ActiveCfg = Debug Unicode|Win32 + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Debug Unicode|Win32.Build.0 = Debug Unicode|Win32 + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Debug Unicode|x64.ActiveCfg = Debug Unicode|x64 + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Debug Unicode|x64.Build.0 = Debug Unicode|x64 + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Release 2in1|Win32.ActiveCfg = Release 2in1|Win32 + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Release 2in1|Win32.Build.0 = Release 2in1|Win32 + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Release 2in1|x64.ActiveCfg = Release 2in1|x64 + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Release 2in1|x64.Build.0 = Release 2in1|x64 + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Release Unicode|Win32.ActiveCfg = Release Unicode|Win32 + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Release Unicode|Win32.Build.0 = Release Unicode|Win32 + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Release Unicode|x64.ActiveCfg = Release Unicode|x64 + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70}.Release Unicode|x64.Build.0 = Release Unicode|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/popup/PopUp_10.vcxproj b/popup/PopUp_10.vcxproj new file mode 100644 index 0000000..603ddeb --- /dev/null +++ b/popup/PopUp_10.vcxproj @@ -0,0 +1,813 @@ + + + + + Debug 2in1 + Win32 + + + Debug 2in1 + x64 + + + Debug Unicode + Win32 + + + Debug Unicode + x64 + + + Release 2in1 + Win32 + + + Release 2in1 + x64 + + + Release Unicode + Win32 + + + Release Unicode + x64 + + + + PopUp + {726460C7-E1F1-4C37-B64F-DA8A8DD26D70} + PopUp + + + + DynamicLibrary + false + Unicode + true + + + DynamicLibrary + false + Unicode + + + DynamicLibrary + false + MultiByte + + + DynamicLibrary + false + MultiByte + + + DynamicLibrary + false + Unicode + + + DynamicLibrary + false + Unicode + + + DynamicLibrary + false + MultiByte + + + DynamicLibrary + false + MultiByte + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>10.0.40219.1 + $(SolutionDir)$(Configuration)/Plugins\ + $(SolutionDir)$(Configuration)/Obj/$(ProjectName)\ + *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pch%3b*.pgc%3b*.pgd%3b*.meta%3b$(TargetPath)%3b$(TargetDir)$(ProjectName).*%3b$(TargetDir)$(RootNamespace).* + true + false + $(SolutionDir)$(Configuration)64/Plugins\ + $(SolutionDir)$(Configuration)64/Obj/$(ProjectName)\ + *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pch%3b*.pgc%3b*.pgd%3b*.meta%3b$(TargetPath)%3b$(TargetDir)$(ProjectName).*%3b$(TargetDir)$(RootNamespace).* + true + false + $(SolutionDir)$(Configuration)/Plugins\ + $(SolutionDir)$(Configuration)/Obj/$(ProjectName)\ + *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pch%3b*.pgc%3b*.pgd%3b*.meta%3b$(TargetPath)%3b$(TargetDir)$(ProjectName).*%3b$(TargetDir)$(RootNamespace).* + true + true + $(SolutionDir)$(Configuration)64/Plugins\ + $(SolutionDir)$(Configuration)64/Obj/$(ProjectName)\ + *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pch%3b*.pgc%3b*.pgd%3b*.meta%3b$(TargetPath)%3b$(TargetDir)$(ProjectName).*%3b$(TargetDir)$(RootNamespace).* + true + true + $(SolutionDir)$(Configuration)/Plugins\ + $(SolutionDir)$(Configuration)/Obj/$(ProjectName)\ + true + $(SolutionDir)$(Configuration)64/Plugins\ + $(SolutionDir)$(Configuration)64/Obj/$(ProjectName)\ + *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pch%3b*.pgc%3b*.pgd%3b*.meta%3b$(TargetPath)%3b$(TargetDir)$(ProjectName).*%3b$(TargetDir)$(RootNamespace).* + true + true + $(SolutionDir)$(Configuration)/Plugins\ + $(SolutionDir)$(Configuration)/Obj/$(ProjectName)\ + true + $(SolutionDir)$(Configuration)64/Plugins\ + $(SolutionDir)$(Configuration)64/Obj/$(ProjectName)\ + *.obj%3b*.ilk%3b*.tlb%3b*.tli%3b*.tlh%3b*.tmp%3b*.rsp%3b*.pch%3b*.pgc%3b*.pgd%3b*.meta%3b$(TargetPath)%3b$(TargetDir)$(ProjectName).*%3b$(TargetDir)$(RootNamespace).* + true + false + AllRules.ruleset + + + AllRules.ruleset + + + AllRules.ruleset + + + AllRules.ruleset + + + AllRules.ruleset + + + AllRules.ruleset + + + AllRules.ruleset + + + AllRules.ruleset + + + $(ProjectName)W + + + + NDEBUG;%(PreprocessorDefinitions) + true + Win32 + .\Release/PopUp.tlb + + + + + MaxSpeed + OnlyExplicitInline + ../../include;../../include_API;./include_API;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_WINDOWS;_USRDLL;POPUP_EXPORTS;MTEXT_NOHELPERS;%(PreprocessorDefinitions) + true + MultiThreaded + true + Use + headers.h + $(IntDir) + $(IntDir) + $(IntDir) + Level3 + true + ProgramDatabase + + + NDEBUG;%(PreprocessorDefinitions) + 0x0409 + + + msimg32.lib;gdiplus.lib;comctl32.lib;%(AdditionalDependencies) + $(OutDir)$(RootNamespace).dll + LIBC;%(IgnoreSpecificDefaultLibraries) + true + $(TargetDir)$(TargetName).map + 0x55550000 + false + + + $(IntDir)$(TargetName).lib + MachineX86 + + + + + MaxSpeed + OnlyExplicitInline + ../../include;../../include_API;./include_API;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_WINDOWS;_USRDLL;POPUP_EXPORTS;MTEXT_NOHELPERS;%(PreprocessorDefinitions) + true + MultiThreaded + true + Use + headers.h + $(IntDir) + $(IntDir) + $(IntDir) + Level3 + true + ProgramDatabase + + + NDEBUG;%(PreprocessorDefinitions) + 0x0409 + + + msimg32.lib;gdiplus.lib;comctl32.lib;%(AdditionalDependencies) + $(OutDir)$(RootNamespace).dll + LIBC;%(IgnoreSpecificDefaultLibraries) + true + $(TargetDir)$(TargetName).map + 0x55550000 + false + + + $(IntDir)$(TargetName).lib + MachineX64 + + + + + Disabled + ../../include;../../include_API;./include_API;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_WINDOWS;_USRDLL;POPUP_EXPORTS;MTEXT_NOHELPERS;%(PreprocessorDefinitions) + MultiThreadedDebugDLL + Use + headers.h + $(IntDir) + $(IntDir) + $(IntDir) + $(IntDir) + Level3 + true + EditAndContinue + + + _DEBUG;%(PreprocessorDefinitions) + 0x0410 + + + msimg32.lib;gdiplus.lib;comctl32.lib;%(AdditionalDependencies) + $(OutDir)$(RootNamespace).dll + true + true + $(TargetDir)$(TargetName).map + 0x55550000 + false + + + $(IntDir)$(TargetName).lib + MachineX86 + + + + + Disabled + ../../include;../../include_API;./include_API;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_WINDOWS;_USRDLL;POPUP_EXPORTS;MTEXT_NOHELPERS;%(PreprocessorDefinitions) + MultiThreadedDebugDLL + Use + headers.h + $(IntDir) + $(IntDir) + $(IntDir) + $(IntDir) + Level3 + true + ProgramDatabase + + + _DEBUG;%(PreprocessorDefinitions) + 0x0410 + + + msimg32.lib;gdiplus.lib;comctl32.lib;%(AdditionalDependencies) + $(OutDir)$(RootNamespace).dll + true + true + $(TargetDir)$(TargetName).map + 0x55550000 + false + + + $(IntDir)$(TargetName).lib + MachineX64 + + + + + Disabled + ../../include;../../include_API;./include_API;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_WINDOWS;_USRDLL;POPUP_EXPORTS;MTEXT_NOHELPERS;_UNICODE;UNICODE;%(PreprocessorDefinitions) + MultiThreadedDebug + Use + headers.h + Level3 + EditAndContinue + + + _DEBUG;_UNICODE;UNICODE;%(PreprocessorDefinitions) + + + + + msimg32.lib;gdiplus.lib;comctl32.lib;%(AdditionalDependencies) + true + 0x55550000 + false + + + $(IntDir)$(TargetName).lib + MachineX86 + + + + + Disabled + ../../include;../../include_API;./include_API;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_WINDOWS;_USRDLL;POPUP_EXPORTS;MTEXT_NOHELPERS;_UNICODE;UNICODE;%(PreprocessorDefinitions) + MultiThreadedDebugDLL + Use + headers.h + $(IntDir) + $(IntDir) + $(IntDir) + $(IntDir) + Level3 + true + ProgramDatabase + + + _DEBUG;_UNICODE;UNICODE;%(PreprocessorDefinitions) + 0x0410 + %(AdditionalIncludeDirectories) + + + msimg32.lib;gdiplus.lib;comctl32.lib;%(AdditionalDependencies) + $(OutDir)$(RootNamespace)W.dll + true + true + $(TargetDir)$(TargetName).map + 0x55550000 + false + + + $(IntDir)$(TargetName).lib + MachineX64 + + + + + Full + OnlyExplicitInline + ../../include;../../include_API;./include_API;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_WINDOWS;_USRDLL;POPUP_EXPORTS;MTEXT_NOHELPERS;_UNICODE;UNICODE;%(PreprocessorDefinitions) + true + MultiThreaded + true + Use + headers.h + Level3 + ProgramDatabase + Size + + + NDEBUG;_UNICODE;UNICODE;%(PreprocessorDefinitions) + + + msimg32.lib;gdiplus.lib;comctl32.lib;%(AdditionalDependencies) + LIBC;%(IgnoreSpecificDefaultLibraries) + true + 0x55550000 + false + + + $(IntDir)$(TargetName).lib + MachineX86 + + + + + NDEBUG;%(PreprocessorDefinitions) + true + X64 + .\Release/PopUp.tlb + + + + + MaxSpeed + OnlyExplicitInline + ../../include;../../include_API;./include_API;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_WINDOWS;_USRDLL;POPUP_EXPORTS;MTEXT_NOHELPERS;_UNICODE;UNICODE;%(PreprocessorDefinitions) + true + MultiThreadedDLL + true + Use + headers.h + $(IntDir) + $(IntDir) + $(IntDir) + Level3 + true + ProgramDatabase + + + NDEBUG;_UNICODE;UNICODE;%(PreprocessorDefinitions) + 0x0409 + + + msimg32.lib;gdiplus.lib;comctl32.lib;%(AdditionalDependencies) + $(OutDir)$(RootNamespace)W.dll + LIBC;%(IgnoreSpecificDefaultLibraries) + true + $(TargetDir)$(TargetName).map + 0x55550000 + false + + + $(IntDir)$(TargetName).lib + MachineX64 + + + + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + Create + Create + Create + Create + Create + Create + Create + Create + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + + true + true + true + true + true + true + true + true + + + true + true + true + true + true + true + true + true + + + + + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + true + true + true + true + true + true + true + + + true + true + true + true + true + true + true + true + + + true + true + true + true + true + true + true + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + %(PreprocessorDefinitions) + + + + + + + \ No newline at end of file diff --git a/popup/PopUp_10.vcxproj.filters b/popup/PopUp_10.vcxproj.filters new file mode 100644 index 0000000..85c60ce --- /dev/null +++ b/popup/PopUp_10.vcxproj.filters @@ -0,0 +1,391 @@ + + + + + {61f0630d-a9c2-4602-8ca0-6a2efe952820} + cpp;c;cxx;rc;def;r;odl;idl;hpj;bat + + + {58b87470-6530-4485-8a11-2b34996c3d54} + h;hpp;hxx;hm;inl + + + {0fd67b29-f530-424d-a3c6-9cff1c322fe9} + + + {19999220-077c-4521-b4e8-e28baf26ea12} + ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe + + + {2c54b55f-1f99-474e-99ef-34c8f4210772} + txt + + + {1316908b-5179-4ca2-abc4-3ba591f6489c} + + + {529f787f-6a3b-402b-8451-73ab712c2fd5} + + + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Deprecatet + + + Deprecatet + + + Option Pages + + + Option Pages + + + Option Pages + + + Option Pages + + + Option Pages + + + Option Pages + + + Option Pages + + + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + defs + + + defs + + + defs + + + defs + + + defs + + + defs + + + defs + + + defs + + + defs + + + defs + + + defs + + + defs + + + defs + + + defs + + + defs + + + defs + + + defs + + + defs + + + defs + + + Option Pages + + + Option Pages + + + Option Pages + + + Option Pages + + + Option Pages + + + Option Pages + + + Option Pages + + + Header Files + + + Header Files + + + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + docs + + + docs + + + docs + + + + + Resource Files + + + Resource Files + + + + + Deprecatet + + + Deprecatet + + + Deprecatet + + + \ No newline at end of file diff --git a/popup/resource.rc b/popup/resource.rc index bb521fc..7aaa283 100644 --- a/popup/resource.rc +++ b/popup/resource.rc @@ -13,13 +13,11 @@ #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 +#pragma code_page(1251) ///////////////////////////////////////////////////////////////////////////// // @@ -146,7 +144,7 @@ BEGIN PUSHBUTTON "Live Preview",IDC_PREVIEW,219,203,73,14 END -IDD_HISTORY DIALOG 0, 0, 293, 236 +IDD_HISTORY DIALOG 0, 0, 293, 236 STYLE DS_SETFONT | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME CAPTION "Popup History" FONT 8, "MS Shell Dlg" @@ -383,7 +381,7 @@ IDR_WHATSNEW TEXT "res\\whatsnew.txt" // #ifdef APSTUDIO_INVOKED -GUIDELINES DESIGNINFO +GUIDELINES DESIGNINFO BEGIN IDD_OPT_POPUP_PAGE1, DIALOG BEGIN @@ -392,18 +390,16 @@ BEGIN END #endif // APSTUDIO_INVOKED -#endif // Neutral resources +#endif // Íåéòðàëüíûé resources ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// -// Italienisch (Italien) resources +// Èòàëüÿíñêèé (Èòàëèÿ) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ITA) -#ifdef _WIN32 LANGUAGE LANG_ITALIAN, SUBLANG_ITALIAN #pragma code_page(1252) -#endif //_WIN32 #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// @@ -430,7 +426,7 @@ END #endif // APSTUDIO_INVOKED -#endif // Italienisch (Italien) resources +#endif // Èòàëüÿíñêèé (Èòàëèÿ) resources ///////////////////////////////////////////////////////////////////////////// diff --git a/popup/src/effects.cpp b/popup/src/effects.cpp index f19fd93..64ac46b 100644 --- a/popup/src/effects.cpp +++ b/popup/src/effects.cpp @@ -33,6 +33,7 @@ Last change by : $Author: Merlin_de $ #include "headers.h" class MyTestEffect; +HANDLE hSquareFad; class MyTestEffect: public IPopupPlusEffect { @@ -88,6 +89,6 @@ static INT_PTR svcCreateEffect_MyTestEffect(WPARAM, LPARAM) { return (INT_PTR)(n void PopupEfectsInitialize() { - CreateServiceFunction(MS_POPUP_CREATEVFX "Square fading", svcCreateEffect_MyTestEffect); + hSquareFad = CreateServiceFunction(MS_POPUP_CREATEVFX "Square fading", svcCreateEffect_MyTestEffect); CallService(MS_POPUP_REGISTERVFX, 0, (LPARAM)"Square fading"); } diff --git a/popup/src/headers.h b/popup/src/headers.h index 2aa428c..6b5f489 100644 --- a/popup/src/headers.h +++ b/popup/src/headers.h @@ -184,5 +184,6 @@ Last change by : $Author: Merlin_de $ #include "popup_gdiplus.h" INT_PTR svcEnableDisableMenuCommand(WPARAM, LPARAM); +extern HANDLE hSquareFad; #endif //HEADERS_H diff --git a/popup/src/history.cpp b/popup/src/history.cpp index 57b269e..baf5e17 100644 --- a/popup/src/history.cpp +++ b/popup/src/history.cpp @@ -169,7 +169,7 @@ void PopupHistoryAdd(POPUPDATA2 *ppdNew) void PopupHistoryShow() { if (!PopUpOptions.EnableHistory){ - MessageBox(NULL, TranslateT("Popup History is disabeled"), TranslateT("Popup History message"), MB_OK); + MessageBox(NULL, TranslateT("Popup History is disabled"), TranslateT("Popup History message"), MB_OK); return; } diff --git a/popup/src/main.cpp b/popup/src/main.cpp index 94d8b6f..486c597 100644 --- a/popup/src/main.cpp +++ b/popup/src/main.cpp @@ -72,6 +72,12 @@ HANDLE hMenuRoot = NULL; HANDLE hMenuItem = NULL; HANDLE hMenuItemHistory = NULL; +//==== ServiceFunctions Handles ==== +HANDLE hShowHistory = NULL; +HANDLE hTogglePopup = NULL; +HANDLE hGetStatus = NULL; +HANDLE hGetVersion = NULL; + //===== Event Handles ===== HANDLE hOptionsInitialize; //HANDLE hNotifyOptionsInitialize; deprecatet @@ -319,13 +325,13 @@ void InitMenuItems(void) { // Add item to main menu mi.hParentMenu = (HGENMENU)hMenuRoot; - CreateServiceFunction(MENUCOMMAND_SVC, svcEnableDisableMenuCommand); + hTogglePopup = CreateServiceFunction(MENUCOMMAND_SVC, svcEnableDisableMenuCommand); mi.ptszName = PopUpOptions.ModuleIsEnabled ? LPGENT("Disable &popup module") : LPGENT("Enable &popup module"); mi.pszService = MENUCOMMAND_SVC; hMenuItem = (HANDLE)CallService(MS_CLIST_ADDMAINMENUITEM, (WPARAM)0, (LPARAM)&mi); // Popup History - CreateServiceFunction(MENUCOMMAND_HISTORY, svcShowHistory); + hShowHistory = CreateServiceFunction(MENUCOMMAND_HISTORY, svcShowHistory); mi.position = 1000000000; mi.popupPosition = 1999990000; mi.ptszName = LPGENT("Popup History"); @@ -368,14 +374,14 @@ void registerUpdate(){ //register Hotkey void LoadHotkey(){ - HOTKEYDESC * hk = new HOTKEYDESC; - ZeroMemory(hk, sizeof(HOTKEYDESC)); - hk->cbSize = sizeof(hk); - hk->pszName = Translate("Toggle Popups"); - hk->pszDescription = Translate("Toggle Popups"); - hk->pszSection = Translate(MODULNAME_PLU); - hk->pszService = MENUCOMMAND_SVC; - CallService(MS_HOTKEY_REGISTER, 0, (LPARAM) hk); + HOTKEYDESC hk = {0}; + hk.cbSize = sizeof(hk); + hk.dwFlags = HKD_TCHAR; + hk.pszName = "Toggle Popups"; + hk.ptszDescription = LPGENT("Toggle Popups"); + hk.ptszSection = LPGENT(MODULNAME_PLU); + hk.pszService = MENUCOMMAND_SVC; + CallService(MS_HOTKEY_REGISTER, 0, (LPARAM) &hk); } //menu @@ -544,8 +550,8 @@ MIRAPI int Load(PLUGINLINK *link) CallService(MS_SYSTEM_GETVERSIONTEXT, (WPARAM) sizeof(ver), (LPARAM) ver); g_popup.isMirUnicode = strstr(ver, "Unicode") != NULL; - CreateServiceFunction("PopupPlus/GetVersion", svcGetVersion); - CreateServiceFunction(MS_POPUP_GETSTATUS, GetStatus); + hGetVersion = CreateServiceFunction("PopupPlus/GetVersion", svcGetVersion); + hGetStatus = CreateServiceFunction(MS_POPUP_GETSTATUS, GetStatus); DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &hMainThread, THREAD_SET_CONTEXT, FALSE, 0); @@ -708,6 +714,13 @@ MIRAPI int Unload(void) UnhookEvent(hEventStatusChanged); UnhookEvent(hIconsChanged); UnhookEvent(hFontsChanged); + UnhookEvent(hTBLoaded); + + DestroyServiceFunction(hShowHistory); + DestroyServiceFunction(hTogglePopup); + DestroyServiceFunction(hGetStatus); + DestroyServiceFunction(hGetVersion); + DestroyServiceFunction(hSquareFad); DeleteObject(fonts.title); DeleteObject(fonts.clock); @@ -728,6 +741,7 @@ MIRAPI int Unload(void) OptAdv_UnregisterVfx(); UnloadPopupThread(); + UnloadPopupWnd2(); PopupHistoryUnload(); UnregisterClass (MAKEINTATOM(g_wndClass.cPopupWnd2),hInst); diff --git a/popup/src/notifications.cpp b/popup/src/notifications.cpp index 03f8c24..89cf7d8 100644 --- a/popup/src/notifications.cpp +++ b/popup/src/notifications.cpp @@ -167,7 +167,7 @@ void LoadNotificationSettings(POPUPTREEDATA *ptd, char* szModul) mir_snprintf(setting, sizeof(setting), "{%s/%s}TimeoutVal", ptd->notification.lpzGroup, ptd->notification.lpzName); ptd->timeoutValue = (signed char)DBGetContactSettingWord(NULL, szModul, setting, - ptd->notification.iSeconds ? ptd->notification.iSeconds : PopUpOptions.Seconds); + ptd->notification.iSeconds ? ptd->notification.iSeconds : 0); mir_snprintf(setting, sizeof(setting), "{%s/%s}disableWhen", ptd->notification.lpzGroup, ptd->notification.lpzName); ptd->disableWhen = diff --git a/popup/src/popup_wnd2.cpp b/popup/src/popup_wnd2.cpp index 4ba2181..1e680c3 100644 --- a/popup/src/popup_wnd2.cpp +++ b/popup/src/popup_wnd2.cpp @@ -606,7 +606,7 @@ bool __forceinline isTextEmpty(char *text) if (!text) return true; while (*text) - if (!isspace(*text++)) + if (!isspace(BYTE(*text++))) return false; return true; } -- cgit v1.2.3