Alexandre Julliard : winecfg: Set the program name and version at dialog init time.
Alexandre Julliard
julliard at winehq.org
Fri Nov 18 10:19:04 CST 2011
Module: wine
Branch: master
Commit: 27966d7ce45990384f79319306f502298fee4d21
URL: http://source.winehq.org/git/wine.git/?a=commit;h=27966d7ce45990384f79319306f502298fee4d21
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Nov 18 13:16:07 2011 +0100
winecfg: Set the program name and version at dialog init time.
---
programs/winecfg/En.rc | 4 ++--
programs/winecfg/about.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/programs/winecfg/En.rc b/programs/winecfg/En.rc
index d1f4706..d9b944e 100644
--- a/programs/winecfg/En.rc
+++ b/programs/winecfg/En.rc
@@ -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
diff --git a/programs/winecfg/about.c b/programs/winecfg/about.c
index 9b32582..e25d50a 100644
--- a/programs/winecfg/about.c
+++ b/programs/winecfg/about.c
@@ -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);
More information about the wine-cvs
mailing list