From 98511e9be9f7944ec12df1bb55439e299c1a2619 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Mon, 3 Oct 2011 12:26:49 +0000 Subject: [PATCH] Minor changes. --- Library/DialogAbout.cpp | 20 +++++++++++++++++--- Library/resource.h | 11 ++++++----- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/Library/DialogAbout.cpp b/Library/DialogAbout.cpp index 99f2acc3..c22cc766 100644 --- a/Library/DialogAbout.cpp +++ b/Library/DialogAbout.cpp @@ -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); SetWindowText(item, tmpSz); - item = GetDlgItem(m_Window, IDC_ABOUTVERSION_PATHS_TEXT); - std::wstring text = GetFormattedString(ID_STR_PATHDETAILS, Rainmeter->GetPath().c_str(), Rainmeter->GetSettingsPath().c_str(), Rainmeter->GetSkinPath().c_str()); + item = GetDlgItem(m_Window, IDC_ABOUTVERSION_PATH_TEXT); + 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()); } @@ -1052,7 +1060,13 @@ INT_PTR CDialogAbout::CTabVersion::OnCommand(WPARAM wParam, LPARAM lParam) { WCHAR tmpSz[64]; _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); } break; diff --git a/Library/resource.h b/Library/resource.h index 618b78c8..cc2eed23 100644 --- a/Library/resource.h +++ b/Library/resource.h @@ -29,9 +29,11 @@ #define IDC_ABOUTMEASURES_ITEMS_LISTVIEW 1008 #define IDC_ABOUTPLUGINS_ITEMS_LISTVIEW 1009 #define IDC_ABOUTVERSION_VERSION_TEXT 1010 -#define IDC_ABOUTVERSION_PATHS_TEXT 1011 -#define IDC_ABOUTVERSION_COPY_BUTTON 1012 -#define IDC_ABOUTVERSION_RAINMETER_ICON 1013 +#define IDC_ABOUTVERSION_PATH_TEXT 1011 +#define IDC_ABOUTVERSION_INIFILE_TEXT 1012 +#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_REFRESHALL_BUTTON 1018 @@ -93,7 +95,7 @@ #define ID_STR_RANGE 2010 #define ID_STR_VALUE 2011 #define ID_STR_AUTHOR 2012 -#define ID_STR_PATHDETAILS 2013 +#define ID_STR_MANAGERAINMETER 2013 #define ID_STR_SKINS 2014 #define ID_STR_THEMES 2015 #define ID_STR_SETTINGS 2016 @@ -127,7 +129,6 @@ #define ID_STR_NOMETERSINSKIN 2044 #define ID_STR_INCLUDEINFINITELOOP 2045 #define ID_STR_ABOUTRAINMETER 2046 -#define ID_STR_MANAGERAINMETER 2047 #define ID_CONTEXT_REFRESH 4001 #define ID_CONTEXT_QUIT 4002