mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added #WORKAREAX# and #WORKAREAY# build-in variables.
This commit is contained in:
parent
e789639773
commit
b6954bcdd0
@ -75,6 +75,10 @@ void CConfigParser::Initialize(LPCTSTR filename, CRainmeter* pRainmeter)
|
|||||||
SystemParametersInfo(SPI_GETWORKAREA, 0, &workArea, 0);
|
SystemParametersInfo(SPI_GETWORKAREA, 0, &workArea, 0);
|
||||||
|
|
||||||
TCHAR buffer[256];
|
TCHAR buffer[256];
|
||||||
|
swprintf(buffer, L"%i", workArea.left);
|
||||||
|
m_Variables[L"WORKAREAX"] = buffer;
|
||||||
|
swprintf(buffer, L"%i", workArea.top);
|
||||||
|
m_Variables[L"WORKAREAY"] = buffer;
|
||||||
swprintf(buffer, L"%i", workArea.right - workArea.left);
|
swprintf(buffer, L"%i", workArea.right - workArea.left);
|
||||||
m_Variables[L"WORKAREAWIDTH"] = buffer;
|
m_Variables[L"WORKAREAWIDTH"] = buffer;
|
||||||
swprintf(buffer, L"%i", workArea.bottom - workArea.top);
|
swprintf(buffer, L"%i", workArea.bottom - workArea.top);
|
||||||
|
Loading…
Reference in New Issue
Block a user