From 0feda085e69b1f8aea9875732772b8d2e8496fee Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Thu, 5 Aug 2010 16:38:28 +0000 Subject: [PATCH] Cosmetic changes to About dialog. --- Library/AboutDialog.cpp | 6 +++--- Library/Library.rc | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Library/AboutDialog.cpp b/Library/AboutDialog.cpp index eadc209a..b2348bb8 100644 --- a/Library/AboutDialog.cpp +++ b/Library/AboutDialog.cpp @@ -276,7 +276,7 @@ void RepositionControls(HWND hwndDlg) widget = GetDlgItem(hwndDlg, IDC_DISABLE_VERSION_CHECK); GetClientRect(widget, &wr); MapWindowPoints(widget, hwndDlg, (LPPOINT)&wr, 2); - SetWindowPos(widget, NULL, (r.right - (wr.right - wr.left)) / 2, wr.top, 0, 0, SWP_NOSIZE | SWP_NOZORDER); + SetWindowPos(widget, NULL, ((r.right - (wr.right - wr.left)) / 2) + 9, wr.top, 0, 0, SWP_NOSIZE | SWP_NOZORDER); widget = GetDlgItem(hwndDlg, IDC_CONFIG_TAB); SetWindowPos(widget, NULL, 0, 0, r.right - 22, r.bottom - 175, SWP_NOMOVE | SWP_NOZORDER); @@ -292,11 +292,11 @@ BOOL OnInitAboutDialog(HWND window) HWND widget; widget = GetDlgItem(window, IDC_VERSION_STRING); - swprintf(tmpSz, L"%s version %s rev %i %s", APPNAME, APPVERSION, revision_number, APPBITS); + swprintf(tmpSz, L"%s %s rev %i %s", APPNAME, APPVERSION, revision_number, APPBITS); SetWindowText(widget, tmpSz); widget = GetDlgItem(window, IDC_BUILD_STRING); - swprintf(tmpSz, L"Build on %s", ConvertToWide(__DATE__).c_str()); + swprintf(tmpSz, L"Built on %s", ConvertToWide(__DATE__).c_str()); SetWindowText(widget, tmpSz); // Add tabs for each config diff --git a/Library/Library.rc b/Library/Library.rc index 619e6ad0..7225afd7 100644 --- a/Library/Library.rc +++ b/Library/Library.rc @@ -143,20 +143,20 @@ END // Dialog // -IDD_ABOUT_DIALOG DIALOG DISCARDABLE 0, 0, 234, 225 +IDD_ABOUT_DIALOG DIALOG DISCARDABLE 0, 0, 351, 225 STYLE DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME -CAPTION "Rainmeter" +CAPTION "About Rainmeter" FONT 8, "MS Shell Dlg 2" BEGIN CONTROL "List1",IDC_STATISTICS,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_NOSORTHEADER | WS_BORDER | - WS_TABSTOP,14,98,206,98 + WS_TABSTOP,14,98,309,98 CTEXT "Get the latest version at: http://www.rainmeter.net", - IDC_URL_STRING,19,43,201,8 - CTEXT "Rainmeter version 0.0",IDC_VERSION_STRING,19,17,201,8 + IDC_URL_STRING,15,43,300,8 + CTEXT "Rainmeter version 0.0",IDC_VERSION_STRING,15,17,300,8 CONTROL "Tab1",IDC_CONFIG_TAB,"SysTabControl32",0x0,7,81,220,120 GROUPBOX "About",IDC_STATIC_ABOUT,7,7,220,69 - CTEXT "(build on ??? ?? ????)",IDC_BUILD_STRING,19,30,201,8 + CTEXT "(Built on ??? ?? ????)",IDC_BUILD_STRING,15,30,300,8 DEFPUSHBUTTON "OK",IDOK,91,204,50,14 CONTROL "Disable check for updates",IDC_DISABLE_VERSION_CHECK, "Button",BS_AUTOCHECKBOX | WS_TABSTOP,67,56,104,10