--- nono/wx/wxaccstatmonitor.cpp 2026/04/29 17:05:31 1.1.1.2 +++ nono/wx/wxaccstatmonitor.cpp 2026/04/29 17:05:57 1.1.1.4 @@ -11,7 +11,6 @@ // パネルには WXTextScreen 同様に四辺に DefaultPadding を手動で入れてある。 #include "wxaccstatmonitor.h" -#include "wxcolor.h" #include "wxtextscreen.h" #include "bankram.h" #include "mainapp.h" @@ -26,6 +25,8 @@ WXAccStatPanel::WXAccStatPanel(wxWindow *parent, Monitor *monitor_) : inherited(parent, monitor_) { + SetName("AccStatPanel"); + // デバイスを取得 mainbus = GetMainbusDevice(); @@ -56,8 +57,11 @@ WXAccStatPanel::FontChanged() WXTextScreen::DefaultPadding * 2 + monsz.width * font_width, WXTextScreen::DefaultPadding * 2 + monsz.height * font_height); - SetClientSize(size); - SetMinClientSize(size); + // バックバッファのサイズを固定。 + SetMinBitmapSize(size); + + SetSize(size); + SetMinSize(size); redraw_header = true; } @@ -216,7 +220,7 @@ WXAccStatWindow::WXAccStatWindow(wxWindo : inherited(parent, wxID_ANY, _("Access Status")) { new WXAccStatPanel(this, monitor_); - DoSize(); + Fit(); } // デストラクタ