Skip to content

Commit

Permalink
検索ボックスの表示位置を調整する
Browse files Browse the repository at this point in the history
  • Loading branch information
berryzplus committed Jul 11, 2020
1 parent 5e9dd8f commit 61c5cf8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sakura_core/window/CMainToolBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 61c5cf8

Please sign in to comment.