mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Update to VirtualDesktops plugin from Patrick at Dexpot
This commit is contained in:
parent
a55016bf31
commit
5882f12c49
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user