Commit 27966d7c authored by Alexandre Julliard's avatar Alexandre Julliard

winecfg: Set the program name and version at dialog init time.

parent 3fcca200
......@@ -32,8 +32,8 @@ STYLE WS_CHILD
FONT 8, "MS Shell Dlg"
BEGIN
CONTROL "", IDC_ABT_PANEL, "STATIC", SS_OWNERDRAW, 0, 0, 260, 140
LTEXT PACKAGE_NAME,IDC_ABT_TITLE_TEXT,105,30,55,30
LTEXT PACKAGE_VERSION,IDC_ABT_PANEL_TEXT,160,43,140,8
LTEXT "",IDC_ABT_TITLE_TEXT,105,30,55,30
LTEXT "",IDC_ABT_PANEL_TEXT,160,43,140,8
CONTROL "",IDC_ABT_WEB_LINK,"SysLink", LWS_TRANSPARENT, 105,53,106,8
LTEXT "This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.",
IDC_ABT_LICENSE_TEXT,105,64,145,60
......
......@@ -116,12 +116,12 @@ AboutDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
0, 0, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0,
"Tahoma");
SendMessage(hWnd, WM_SETFONT, (WPARAM)titleFont, TRUE);
SetWindowTextA(hWnd, PACKAGE_NAME);
}
SetDlgItemTextA(hDlg, IDC_ABT_PANEL_TEXT, PACKAGE_VERSION);
/* prepare the web link */
hWnd = GetDlgItem(hDlg, IDC_ABT_WEB_LINK);
if(hWnd)
SetWindowTextA(hWnd, "<a href=\"" PACKAGE_URL "\">" PACKAGE_URL "</a>");
SetDlgItemTextA(hDlg, IDC_ABT_WEB_LINK, "<a href=\"" PACKAGE_URL "\">" PACKAGE_URL "</a>");
ReleaseDC(hDlg, hDC);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment