Permalink
Browse files

Minor changes.

  • Loading branch information...
poiru committed Oct 3, 2011
1 parent 2431321 commit 98511e9be9f7944ec12df1bb55439e299c1a2619
Showing with 23 additions and 8 deletions.
  1. +17 −3 Library/DialogAbout.cpp
  2. +6 −5 Library/resource.h
View
@@ -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;
View
@@ -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

0 comments on commit 98511e9

Please sign in to comment.