Cosmetic changes to About dialog.

This commit is contained in:
Birunthan Mohanathas 2010-08-05 16:38:28 +00:00
parent afd7de5a8c
commit 0feda085e6
2 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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