From b6954bcdd0ae0e559bea988f676e66a3a86ca944 Mon Sep 17 00:00:00 2001 From: Kimmo Pekkola Date: Sat, 1 Aug 2009 15:38:03 +0000 Subject: [PATCH] Added #WORKAREAX# and #WORKAREAY# build-in variables. --- Library/ConfigParser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/ConfigParser.cpp b/Library/ConfigParser.cpp index b19e374f..80d227d6 100644 --- a/Library/ConfigParser.cpp +++ b/Library/ConfigParser.cpp @@ -75,6 +75,10 @@ void CConfigParser::Initialize(LPCTSTR filename, CRainmeter* pRainmeter) SystemParametersInfo(SPI_GETWORKAREA, 0, &workArea, 0); 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); m_Variables[L"WORKAREAWIDTH"] = buffer; swprintf(buffer, L"%i", workArea.bottom - workArea.top);