728x90
CRect rcWindowRef, rcWindowTarget;
CWnd* pWnd = ((CTistoryApp*)AfxGetApp())->FindMainView();
if (pWnd != NULL)
{
pWnd->MoveWindow(&rcWindowRef);
pWnd->SendMessage(
WM_SIZE,
(WPARAM)SIZE_RESTORED,
MAKELPARAM(rcWindowRef.Width(), rcWindowRef.Height()));
}
728x90
'MFC(Window Programming)' 카테고리의 다른 글
| ifstream, ostream, stringstream, std::getline (1) | 2024.09.25 |
|---|---|
| C++ 정규식과 Raw String Literal: 매칭과 사용법 (1) | 2024.09.24 |
| timespan, ctime 사용법 C/C++ MFC (0) | 2021.01.05 |
| % 기호 출력하기 printf C/C++ (0) | 2021.01.05 |
| 문자열, 숫자 변환 변경 C/C++ MFC (0) | 2021.01.05 |