Skip to content

Commit

Permalink
display area of board
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Dec 28, 2023
1 parent 74ec167 commit fd9d0a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4536,7 +4536,7 @@ void __fastcall XgUpdateStatusBar(HWND hwnd)
SendMessageW(xg_hStatusBar, SB_SETTEXT, 1, reinterpret_cast<LPARAM>(szText));

// 盤のサイズ。
StringCchPrintf(szText, _countof(szText), L"%d x %d", xg_nCols, xg_nRows);
StringCchPrintf(szText, _countof(szText), L"%d x %d = %d", xg_nCols, xg_nRows, xg_nCols * xg_nRows);
SendMessageW(xg_hStatusBar, SB_SETTEXT, 2, reinterpret_cast<LPARAM>(szText));
}

Expand Down
2 changes: 2 additions & 0 deletions HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
- 2023-12-25 ver.5.1.3
- In "Initialize application", we decided to erase the block information.
- 20XX-YY-ZZ ver.5.1.4
- Displayed the area of the board.

# 開発履歴 (Japanese)

Expand Down Expand Up @@ -833,3 +834,4 @@
- 2023年12月25日 ver.5.1.3
- 「アプリの初期化」において黒マスの情報も消す。
- 20XX年YY月ZZ日 ver.5.1.4
- 盤面の面積を表示。
4 changes: 3 additions & 1 deletion XG_PatternDialog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,9 @@ class XG_PatternDialog : public XG_Dialog

// サイズを表すテキスト。
WCHAR szText[64];
StringCchPrintfW(szText, _countof(szText), L"%d x %d", static_cast<int>(pat.num_columns), static_cast<int>(pat.num_rows));
StringCchPrintfW(szText, _countof(szText), L"%d x %d = %d",
static_cast<int>(pat.num_columns), static_cast<int>(pat.num_rows),
static_cast<int>(pat.num_columns * pat.num_rows));

// 背景とテキストを描画する。
SelectObject(hDC, GetStockFont(DEFAULT_GUI_FONT));
Expand Down

0 comments on commit fd9d0a7

Please sign in to comment.