From 61c5cf849f2cde638cbe4bd33f452fc798af5f94 Mon Sep 17 00:00:00 2001 From: berryzplus Date: Sat, 11 Jul 2020 23:36:04 +0900 Subject: [PATCH] =?UTF-8?q?=E6=A4=9C=E7=B4=A2=E3=83=9C=E3=83=83=E3=82=AF?= =?UTF-8?q?=E3=82=B9=E3=81=AE=E8=A1=A8=E7=A4=BA=E4=BD=8D=E7=BD=AE=E3=82=92?= =?UTF-8?q?=E8=AA=BF=E6=95=B4=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sakura_core/window/CMainToolBar.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sakura_core/window/CMainToolBar.cpp b/sakura_core/window/CMainToolBar.cpp index bde9c7bb55..eec79d5b93 100644 --- a/sakura_core/window/CMainToolBar.cpp +++ b/sakura_core/window/CMainToolBar.cpp @@ -335,11 +335,11 @@ void CMainToolBar::CreateToolBar( void ) CMyRect rcCombo; ::GetWindowRect( m_hwndSearchBox, &rcCombo ); ::SetWindowPos( m_hwndSearchBox, NULL, - rc.left, //作ったときと同じ値を指定 - (rc.bottom - rc.top - rcCombo.Height()) / 2, //上下中央に配置する - 0, //rcCombo.Width()のまま変えない - 0, //rcCombo.Height()のまま変えない - SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOSENDCHANGING ); + rc.left + cxBorder, + rc.top + (rc.bottom - rc.top - rcCombo.Height()) / 2, + rcCombo.Width() - cxBorder * 2, + rcCombo.Height(), + SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOSENDCHANGING ); } break;