From 8637deddea05e810e57de5157dbcac3b30d7cc40 Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Thu, 22 Nov 2018 10:20:41 +0800 Subject: [PATCH] src/Dialogs.c: Don't bother to set caption of command line help dialog. The dialog template already has a caption, which, as all other dialogs, matches the menu item; so don't bother to set it upon initialization. Signed-off-by: Liu Hao --- src/Dialogs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Dialogs.c b/src/Dialogs.c index 1205ac530..615c48e4c 100644 --- a/src/Dialogs.c +++ b/src/Dialogs.c @@ -286,11 +286,11 @@ INT_PTR CALLBACK CmdLineHelpProc(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lPa switch (umsg) { case WM_INITDIALOG: { - WCHAR szTitle[80] = { L'\0' }; + //WCHAR szTitle[80] = { L'\0' }; WCHAR szText[4096] = { L'\0' }; - GetLngString(IDS_MUI_APPTITLE, szTitle, COUNTOF(szTitle)); + //GetLngString(IDS_MUI_APPTITLE, szTitle, COUNTOF(szTitle)); GetLngString(IDS_MUI_CMDLINEHELP, szText, COUNTOF(szText)); - SetWindowText(hwnd, szTitle); + //SetWindowText(hwnd, szTitle); SetDlgItemText(hwnd, IDC_CMDLINEHELP, szText); //SendMessage(hwnd, WM_NEXTDLGCTL, (WPARAM)IDC_CMDLINEHELP, TRUE); CenterDlgInParent(hwnd);