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 <lh_mouse@126.com>
This commit is contained in:
Liu Hao 2018-11-22 10:20:41 +08:00
parent cd3444b15c
commit 8637deddea

View File

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