Skip to content

Commit

Permalink
不要コード削除:DlgCallBack_LockBox(), IDC_LOCKBOX_MESSAGEセンタリング TeraTermProj…
Browse files Browse the repository at this point in the history
  • Loading branch information
hkanou committed Jul 20, 2024
1 parent 413e2d2 commit d0d2176
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
7 changes: 0 additions & 7 deletions ttpmenu/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,6 @@
#define IDC_LOCKBOX_LABEL 1064
#define IDC_LOCKBOX_EDIT 1065
#define IDC_LOCKBOX_MESSAGE 1066
#define IDS_LOCKBOX_SHOW 1067
#define IDS_LOCKBOX_WRONG 1068
#define IDS_LOCKBOX_STRTOOLONG 1069
#define IDS_LOCKBOX_NOSTR 1070
#define IDS_LOCKBOX_VALID 1071
#define IDS_TOOLTIP_CHECK_LOCKBOX 1072
#define IDS_TOOLTIP_BUTTON_LOCKBOX 1073
#define ID_TMENU_ADD 40020
#define ID_TMENU_CLOSE 40021
#define ID_VERSION 40031
Expand Down
12 changes: 1 addition & 11 deletions ttpmenu/ttpmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,10 +530,6 @@ LRESULT CALLBACK GetMsgProc(int nCode, WPARAM wParam, LPARAM lParam)
BOOL CreateTooltip(HWND hWnd)
{
wchar_t uimsg[MAX_UIMSG];
static const DlgTextInfo text_info[] = {
{ IDS_TOOLTIP_CHECK_LOCKBOX, "MSG_TOOLTIP_CHECK_LOCKBOX" },
{ IDS_TOOLTIP_BUTTON_LOCKBOX, "MSG_TOOLTIP_BUTTON_LOCKBOX" }
};

::InitCommonControls();

Expand All @@ -558,7 +554,6 @@ BOOL CreateTooltip(HWND hWnd)
AddTooltip(g_hWndMenu, BUTTON_ETC, L"Configure");
AddTooltip(g_hWndMenu, CHECK_TTSSH, L"use SSH");

SetI18nDlgStrsW(hWnd, "TTMenu", text_info, _countof(text_info), UILanguageFileW);
UTIL_get_lang_msgW("MSG_TOOLTIP_CHECK_LOCKBOX", uimsg, _countof(uimsg),
L"If LockBox is enabled, login passwords are stored in LockBox encrypted.",
UILanguageFileW);
Expand Down Expand Up @@ -2537,12 +2532,7 @@ INT_PTR CALLBACK DlgCallBack_LockBox(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM
{ 0, "DLG_LOCKBOX_TITLE" },
{ IDC_LOCKBOX_LABEL, "DLG_LOCKBOX_LABEL" },
{ IDOK, "BTN_OK" },
{ IDCANCEL, "BTN_CANCEL" },
{ IDS_LOCKBOX_SHOW, "DLG_LOCKBOX_SHOW" },
{ IDS_LOCKBOX_WRONG, "DLG_LOCKBOX_WRONG" },
{ IDS_LOCKBOX_STRTOOLONG, "DLG_LOCKBOX_STRTOOLONG" },
{ IDS_LOCKBOX_NOSTR, "DLG_LOCKBOX_NOSTR" },
{ IDS_LOCKBOX_VALID, "DLG_LOCKBOX_VALID" }
{ IDCANCEL, "BTN_CANCEL" }
};

switch(uMsg) {
Expand Down
2 changes: 1 addition & 1 deletion ttpmenu/ttpmenu.rc
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ BEGIN
EDITTEXT IDC_LOCKBOX_EDIT,7,20,126,14,ES_PASSWORD | ES_AUTOHSCROLL
DEFPUSHBUTTON "OK",IDOK,137,20,40,14
PUSHBUTTON "Cancel",IDCANCEL,179,20,40,14
CTEXT "",IDC_LOCKBOX_MESSAGE,7,40,219,12,SS_NOPREFIX
CTEXT "",IDC_LOCKBOX_MESSAGE,3,40,220,12,SS_NOPREFIX
END


Expand Down

0 comments on commit d0d2176

Please sign in to comment.