Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SDIフレームワークのメインフレームのサイズに合わせてビューのサイズを設定したい。つまり、メインフレームのサイズを変更すると、それに応じてビューのサイズも変更され、クライアント領域も変更されます。これどうやってするの?
ありがとうございました
ビューのサイズ変更を処理するOnSizeメソッドを追加するだけです。
void CMyFrame::OnSize(UINT nType, int cx, int cy) { m_MyView.SetWindowPos(NULL, 0, 0, cx, cy, SWP_NOMOVE|SWP_NOACTIVATE|SWP_NOZORDER); }