diff --git a/Plugins/PluginVirtualDesktops/DexpotMeasure.cpp b/Plugins/PluginVirtualDesktops/DexpotMeasure.cpp index d685ca6c..c736a78e 100644 --- a/Plugins/PluginVirtualDesktops/DexpotMeasure.cpp +++ b/Plugins/PluginVirtualDesktops/DexpotMeasure.cpp @@ -1,5 +1,5 @@ /* - Copyright (C) 2010 Patrick Dubbert + Copyright (C) 2010-2011 Patrick Dubbert This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -513,12 +513,12 @@ void DexpotDesktopNameMeasure::InitializeData() { for(int i = 1; i <= DesktopCount; i++) { - PostMessage(hWndDexpot, DEX_GETDESKTOPTITLE, i, (LPARAM) hWndMessageWindow); + SendMessage(hWndDexpot, DEX_GETDESKTOPTITLE, i, (LPARAM) hWndMessageWindow); } } else if(DesktopNumber > 0 && DesktopNumber <= DesktopCount) { - PostMessage(hWndDexpot, DEX_GETDESKTOPTITLE, DesktopNumber, (LPARAM) hWndMessageWindow); + SendMessage(hWndDexpot, DEX_GETDESKTOPTITLE, DesktopNumber, (LPARAM) hWndMessageWindow); } } } @@ -528,6 +528,11 @@ void DexpotDesktopNameMeasure::OnDesktopConfigurationChanged() InitializeData(); } +void DexpotDesktopNameMeasure::OnDesktopCountChanged(int NewCount) +{ + InitializeData(); +} + void DexpotDesktopNameMeasure::SetDesktopName(UINT Desktop, std::wstring &Name) { if(--Desktop >= DesktopNames.size()) DesktopNames.resize(Desktop + 1); @@ -573,18 +578,18 @@ void DexpotDesktopWallpaperMeasure::InitializeData() { for(int i = 1; i <= DesktopCount; i++) { - PostMessage(hWndDexpot, DEX_GETDESKTOPWALLPAPER, i, (LPARAM) hWndMessageWindow); + SendMessage(hWndDexpot, DEX_GETDESKTOPWALLPAPER, i, (LPARAM) hWndMessageWindow); } } else if(DesktopNumber > 0 && DesktopNumber <= DesktopCount) { - PostMessage(hWndDexpot, DEX_GETDESKTOPWALLPAPER, DesktopNumber, (LPARAM) hWndMessageWindow); + SendMessage(hWndDexpot, DEX_GETDESKTOPWALLPAPER, DesktopNumber, (LPARAM) hWndMessageWindow); } } } void DexpotDesktopWallpaperMeasure::OnSwitched(int FromDesktop, int ToDesktop, WORD Flags, WORD Trigger) { - PostMessage(hWndDexpot, DEX_GETDESKTOPWALLPAPER, FromDesktop, (LPARAM) hWndMessageWindow); + SendMessage(hWndDexpot, DEX_GETDESKTOPWALLPAPER, FromDesktop, (LPARAM) hWndMessageWindow); } void DexpotDesktopWallpaperMeasure::OnDesktopConfigurationChanged() @@ -592,6 +597,11 @@ void DexpotDesktopWallpaperMeasure::OnDesktopConfigurationChanged() InitializeData(); } +void DexpotDesktopWallpaperMeasure::OnDesktopCountChanged(int NewCount) +{ + InitializeData(); +} + void DexpotDesktopWallpaperMeasure::SetDesktopWallpaper(UINT Desktop, std::wstring &Wallpaper) { if(--Desktop >= DesktopWallpapers.size()) DesktopWallpapers.resize(Desktop + 1); diff --git a/Plugins/PluginVirtualDesktops/DexpotMeasure.h b/Plugins/PluginVirtualDesktops/DexpotMeasure.h index 129aeabe..fab56500 100644 --- a/Plugins/PluginVirtualDesktops/DexpotMeasure.h +++ b/Plugins/PluginVirtualDesktops/DexpotMeasure.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2010 Patrick Dubbert + Copyright (C) 2010-2011 Patrick Dubbert This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -169,6 +169,7 @@ public: virtual LPCTSTR GetString(UINT flags); virtual void InitializeData(); virtual void OnDesktopConfigurationChanged(); + virtual void OnDesktopCountChanged(int NewCount); static void SetDesktopName(UINT Desktop, std::wstring &Name); @@ -189,6 +190,7 @@ public: virtual void InitializeData(); virtual void OnSwitched(int FromDesktop, int ToDesktop, WORD Flags, WORD Trigger); virtual void OnDesktopConfigurationChanged(); + virtual void OnDesktopCountChanged(int NewCount); static void SetDesktopWallpaper(UINT Desktop, std::wstring &Wallpaper); diff --git a/Plugins/PluginVirtualDesktops/VirtualDesktops.cpp b/Plugins/PluginVirtualDesktops/VirtualDesktops.cpp index b24aaf98..53b0a523 100644 --- a/Plugins/PluginVirtualDesktops/VirtualDesktops.cpp +++ b/Plugins/PluginVirtualDesktops/VirtualDesktops.cpp @@ -1,5 +1,5 @@ /* - Copyright (C) 2010 Patrick Dubbert + Copyright (C) 2010-2011 Patrick Dubbert This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -155,7 +155,7 @@ void Finalize(HMODULE instance, UINT id) UINT GetPluginVersion() { - return 1000; + return 1001; } LPCTSTR GetPluginAuthor()