mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 17:03:39 +00:00
winecfg: Set the program name and version at dialog init time.
This commit is contained in:
parent
3fcca200a8
commit
27966d7ce4
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue