Minor changes.

This commit is contained in:
Birunthan Mohanathas 2011-10-03 12:26:49 +00:00
parent 2431321a6b
commit 98511e9be9
2 changed files with 23 additions and 8 deletions

View File

@ -1008,8 +1008,16 @@ void CDialogAbout::CTabVersion::Initialize()
_snwprintf_s(tmpSz, _TRUNCATE, L"%s%s r%i %s (%s)", APPVERSION, revision_beta ? L" beta" : L"", revision_number, APPBITS, APPDATE); _snwprintf_s(tmpSz, _TRUNCATE, L"%s%s r%i %s (%s)", APPVERSION, revision_beta ? L" beta" : L"", revision_number, APPBITS, APPDATE);
SetWindowText(item, tmpSz); SetWindowText(item, tmpSz);
item = GetDlgItem(m_Window, IDC_ABOUTVERSION_PATHS_TEXT); item = GetDlgItem(m_Window, IDC_ABOUTVERSION_PATH_TEXT);
std::wstring text = GetFormattedString(ID_STR_PATHDETAILS, Rainmeter->GetPath().c_str(), Rainmeter->GetSettingsPath().c_str(), Rainmeter->GetSkinPath().c_str()); std::wstring text = L"Path: " + Rainmeter->GetPath();
SetWindowText(item, text.c_str());
item = GetDlgItem(m_Window, IDC_ABOUTVERSION_INIFILE_TEXT);
text = L"IniFile: " + Rainmeter->GetIniFile();
SetWindowText(item, text.c_str());
item = GetDlgItem(m_Window, IDC_ABOUTVERSION_SKINPATH_TEXT);
text = L"SkinPath: " + Rainmeter->GetSkinPath();
SetWindowText(item, text.c_str()); SetWindowText(item, text.c_str());
} }
@ -1052,7 +1060,13 @@ INT_PTR CDialogAbout::CTabVersion::OnCommand(WPARAM wParam, LPARAM lParam)
{ {
WCHAR tmpSz[64]; WCHAR tmpSz[64];
_snwprintf_s(tmpSz, _TRUNCATE, L"%s%s r%i %s (%s)", APPVERSION, revision_beta ? L" beta" : L"", revision_number, APPBITS, APPDATE); _snwprintf_s(tmpSz, _TRUNCATE, L"%s%s r%i %s (%s)", APPVERSION, revision_beta ? L" beta" : L"", revision_number, APPBITS, APPDATE);
std::wstring text = GetFormattedString(ID_STR_PATHDETAILS, Rainmeter->GetPath().c_str(), Rainmeter->GetSettingsPath().c_str(), Rainmeter->GetSkinPath().c_str()); std::wstring text = tmpSz;
text += L"\nPath: ";
text += Rainmeter->GetPath();
text += L"\nIniFile: ";
text += Rainmeter->GetIniFile();
text += L"\nSkinPath: ";
text += Rainmeter->GetSkinPath();
CSystem::SetClipboardText(text); CSystem::SetClipboardText(text);
} }
break; break;

View File

@ -29,9 +29,11 @@
#define IDC_ABOUTMEASURES_ITEMS_LISTVIEW 1008 #define IDC_ABOUTMEASURES_ITEMS_LISTVIEW 1008
#define IDC_ABOUTPLUGINS_ITEMS_LISTVIEW 1009 #define IDC_ABOUTPLUGINS_ITEMS_LISTVIEW 1009
#define IDC_ABOUTVERSION_VERSION_TEXT 1010 #define IDC_ABOUTVERSION_VERSION_TEXT 1010
#define IDC_ABOUTVERSION_PATHS_TEXT 1011 #define IDC_ABOUTVERSION_PATH_TEXT 1011
#define IDC_ABOUTVERSION_COPY_BUTTON 1012 #define IDC_ABOUTVERSION_INIFILE_TEXT 1012
#define IDC_ABOUTVERSION_RAINMETER_ICON 1013 #define IDC_ABOUTVERSION_SKINPATH_TEXT 1013
#define IDC_ABOUTVERSION_COPY_BUTTON 1014
#define IDC_ABOUTVERSION_RAINMETER_ICON 1015
#define IDC_MANAGE_TAB 1017 #define IDC_MANAGE_TAB 1017
#define IDC_REFRESHALL_BUTTON 1018 #define IDC_REFRESHALL_BUTTON 1018
@ -93,7 +95,7 @@
#define ID_STR_RANGE 2010 #define ID_STR_RANGE 2010
#define ID_STR_VALUE 2011 #define ID_STR_VALUE 2011
#define ID_STR_AUTHOR 2012 #define ID_STR_AUTHOR 2012
#define ID_STR_PATHDETAILS 2013 #define ID_STR_MANAGERAINMETER 2013
#define ID_STR_SKINS 2014 #define ID_STR_SKINS 2014
#define ID_STR_THEMES 2015 #define ID_STR_THEMES 2015
#define ID_STR_SETTINGS 2016 #define ID_STR_SETTINGS 2016
@ -127,7 +129,6 @@
#define ID_STR_NOMETERSINSKIN 2044 #define ID_STR_NOMETERSINSKIN 2044
#define ID_STR_INCLUDEINFINITELOOP 2045 #define ID_STR_INCLUDEINFINITELOOP 2045
#define ID_STR_ABOUTRAINMETER 2046 #define ID_STR_ABOUTRAINMETER 2046
#define ID_STR_MANAGERAINMETER 2047
#define ID_CONTEXT_REFRESH 4001 #define ID_CONTEXT_REFRESH 4001
#define ID_CONTEXT_QUIT 4002 #define ID_CONTEXT_QUIT 4002