Skip to content

Commit

Permalink
improve view settings dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Apr 2, 2024
1 parent f694f96 commit 7152426
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions GUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5832,11 +5832,15 @@ ViewSettingsDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)

// コンボボックスの設定を適用する。
WCHAR szText[128];
GetDlgItemTextW(hwnd, cmb1, szText, _countof(szText));
::GetDlgItemTextW(hwnd, cmb1, szText, _countof(szText));
if (s_strFit == szText) {
SendMessage(xg_hMainWnd, WM_COMMAND, ID_FITZOOM, 0);
::SendMessageW(xg_hMainWnd, WM_COMMAND, ID_FITZOOM, 0);
} else {
INT nRate = _wtoi(szText);
WCHAR szText2[128];
::LCMapStringW(::GetUserDefaultLCID(), LCMAP_HALFWIDTH, szText, _countof(szText),
szText2, _countof(szText2));
StrTrimW(szText2, L" \t\r\n\x3000");
INT nRate = _wtoi(szText2);
if (nRate == 0)
nRate = 100;
if (nRate < 10)
Expand Down
4 changes: 2 additions & 2 deletions HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
- Now able to zoom the "Candidates" window.
- Renamed "Candidates" as "Input Candidates".
- 2024-XX-YY ver.5.2.0
- Improved menus.
- Revamped menu.
- Enabled to correctly undo input using "Input Candidates".
- Changed the default save location from "My Documents" to "My Documents\XWordGiver".
- Added "General settings" item to "Edit" menu.
Expand Down Expand Up @@ -900,7 +900,7 @@
- 「候補」ウィンドウのズームが可能に。
- 「候補」を「入力候補」に改名。
- 2024年XX月YY日 ver.5.2.0
- メニューを改良
- メニューを刷新
- 「入力候補」による入力を正しく元に戻せるようにした。
- デフォルトの保存先を「マイ ドキュメント」から「マイ ドキュメント\XWordGiver」に変更。
- 「編集」メニューに「全般設定」項目を追加。
Expand Down

0 comments on commit 7152426

Please sign in to comment.