mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Starting point for 1.3 beta:
Changes to multiple files to change version number Changes by JamesAC / spx to improve management of Windows Mssages, mostly to support working with the DexPot folks Addition of the Win7AudioPlugin plugin by reiswaffle. This includes plugin code and changes to the Rainmeter.sln project file.
This commit is contained in:
@ -32,13 +32,13 @@
|
||||
#define MAKE_VER(major, minor1, minor2) major * 1000000 + minor1 * 1000 + minor2
|
||||
|
||||
#define APPNAME L"Rainmeter"
|
||||
#define APPVERSION L"1.2"
|
||||
#define APPVERSION L"1.3"
|
||||
#ifdef _WIN64
|
||||
#define APPBITS L"(64-bit)"
|
||||
#else
|
||||
#define APPBITS L"(32-bit)"
|
||||
#endif
|
||||
#define RAINMETER_VERSION MAKE_VER(1, 2, 0)
|
||||
#define RAINMETER_VERSION MAKE_VER(1, 3, 0)
|
||||
|
||||
enum PLATFORM
|
||||
{
|
||||
|
@ -615,6 +615,55 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_QUERY_RAINMETER:
|
||||
|
||||
if (Rainmeter && IsWindow((HWND)lParam))
|
||||
{
|
||||
if(wParam == RAINMETER_QUERY_ID_SKINS_PATH)
|
||||
{
|
||||
std::wstring path = Rainmeter->GetSkinPath();
|
||||
|
||||
COPYDATASTRUCT cds;
|
||||
|
||||
cds.dwData = RAINMETER_QUERY_ID_SKINS_PATH;
|
||||
cds.cbData = (path.size() + 1) * 2;
|
||||
cds.lpData = (LPVOID) path.c_str();
|
||||
|
||||
SendMessage((HWND)lParam, WM_COPYDATA, (WPARAM)hWnd, (LPARAM)&cds);
|
||||
|
||||
return 0;
|
||||
}
|
||||
else if(wParam == RAINMETER_QUERY_ID_SETTINGS_PATH)
|
||||
{
|
||||
std::wstring path = Rainmeter->GetSettingsPath();
|
||||
|
||||
COPYDATASTRUCT cds;
|
||||
|
||||
cds.dwData = RAINMETER_QUERY_ID_SKINS_PATH;
|
||||
cds.cbData = (path.size() + 1) * 2;
|
||||
cds.lpData = (LPVOID) path.c_str();
|
||||
|
||||
SendMessage((HWND)lParam, WM_COPYDATA, (WPARAM)hWnd, (LPARAM)&cds);
|
||||
|
||||
return 0;
|
||||
}
|
||||
else if(wParam == RAINMETER_QUERY_ID_PLUGINS_PATH)
|
||||
{
|
||||
std::wstring path = Rainmeter->GetPluginPath();
|
||||
|
||||
COPYDATASTRUCT cds;
|
||||
|
||||
cds.dwData = RAINMETER_QUERY_ID_SKINS_PATH;
|
||||
cds.cbData = (path.size() + 1) * 2;
|
||||
cds.lpData = (LPVOID) path.c_str();
|
||||
|
||||
SendMessage((HWND)lParam, WM_COPYDATA, (WPARAM)hWnd, (LPARAM)&cds);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
|
||||
case WM_TIMER:
|
||||
if (tray && tray->m_Measure)
|
||||
{
|
||||
|
@ -59,6 +59,13 @@
|
||||
#define ID_CONTEXT_SKINMENU_MONITOR_PRIMARY 4048
|
||||
#define ID_CONTEXT_SKINMENU_MONITOR_AUTOSELECT 4049
|
||||
|
||||
#define WM_QUERY_RAINMETER WM_APP + 1000
|
||||
|
||||
#define RAINMETER_QUERY_ID_SKINS_PATH 4101
|
||||
#define RAINMETER_QUERY_ID_SETTINGS_PATH 4102
|
||||
#define RAINMETER_QUERY_ID_PLUGINS_PATH 4103
|
||||
|
||||
|
||||
#define ID_CONFIG_EDIT 30000
|
||||
#define ID_CONFIG_FIRST 30001
|
||||
#define ID_CONFIG_LAST 33000
|
||||
|
Reference in New Issue
Block a user