@@ -41,6 +41,7 @@ | ||
41 | 41 | |
42 | 42 | <li>Bug fixes |
43 | 43 | <ul> |
44 | + <li>MACRO: the <a href="../macro/command/yesnobox.html">yesnobox</a> command shows "OK" instead of "yes" without language file. This bug was introduced in 4.103.</li> | |
44 | 45 | <li>Fixed memory leak when tooltip show. This bug was introduced in 4.103.</li> |
45 | 46 | <li>Fixed support for IME feedback back and forth function. This bug was introduced in 4.103.</li> |
46 | 47 | <li>Fixed desktop images can not be displayed on background other than main display. This bug was introduced in 4.103.</li> |
@@ -41,6 +41,7 @@ | ||
41 | 41 | |
42 | 42 | <li>バグ修正 |
43 | 43 | <ul> |
44 | + <li><a href="../macro/command/yesnobox.html">yesnobox</a> マクロコマンドで、言語ファイルを読み込まないとき "OK" が表示されていた。"yes" に修正。4.103でエンバグ。</li> | |
44 | 45 | <li>ツールチップ表示時のメモリリークを修正。4.103でのエンバグ。</li> |
45 | 46 | <li><a href="../usage/tips/ime.html#feedback">IMEの前後参照変換機能</a>が動作するよう修正。4.103でのエンバグ。</li> |
46 | 47 | <li>メインディスプレイ以外でデスクトップ画像を背景に表示できなかったのを修正。4.101でのエンバグ。</li> |
@@ -1,6 +1,6 @@ | ||
1 | 1 | /* |
2 | 2 | * Copyright (C) 1994-1998 T. Teranishi |
3 | - * (C) 2006-2019 TeraTerm Project | |
3 | + * (C) 2006-2020 TeraTerm Project | |
4 | 4 | * All rights reserved. |
5 | 5 | * |
6 | 6 | * Redistribution and use in source and binary forms, with or without |
@@ -61,19 +61,22 @@ | ||
61 | 61 | |
62 | 62 | BOOL CMsgDlg::OnInitDialog() |
63 | 63 | { |
64 | - static const DlgTextInfo TextInfosOk[] = { | |
65 | - { IDOK, "BTN_OK" }, | |
66 | - }; | |
67 | - static const DlgTextInfo TextInfosYesNo[] = { | |
68 | - { IDOK, "BTN_YES" }, | |
69 | - { IDCANCEL, "BTN_NO" }, | |
70 | - }; | |
71 | 64 | RECT R; |
72 | 65 | HWND HOk; |
73 | 66 | |
67 | + // IDOK のデフォルト "OK", 表示 | |
68 | + // IDCANCEL のデフォルト "No", 非表示 | |
74 | 69 | if (YesNoFlag) { |
70 | + static const DlgTextInfo TextInfosYesNo[] = { | |
71 | + { IDOK, "BTN_YES" }, | |
72 | + { IDCANCEL, "BTN_NO" }, | |
73 | + }; | |
74 | + SetDlgItemTextA(IDOK, "Yes"); // lng ファイルなし対策 | |
75 | 75 | SetDlgTexts(m_hWnd, TextInfosYesNo, _countof(TextInfosYesNo), UILanguageFile); |
76 | 76 | } else { |
77 | + static const DlgTextInfo TextInfosOk[] = { | |
78 | + { IDOK, "BTN_OK" }, | |
79 | + }; | |
77 | 80 | SetDlgTexts(m_hWnd, TextInfosOk, _countof(TextInfosOk), UILanguageFile); |
78 | 81 | } |
79 | 82 |