I solved it.
When I added the cs.cy and cs.cx codes as below, the change due to the size limitation disappeared when I restarted.
Thank you.
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if(!Cls_DrMfcDockMainFrm::PreCreateWindow(cs))
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.dwExStyle &= ~WS_EX_CLIENTEDGE;
cs.lpszClass = AfxRegisterWndClass(0);
cs.cx = GetSystemMetrics(SM_CXSCREEN);
cs.cy = GetSystemMetrics(SM_CYSCREEN);
if (cs.hMenu != NULL)
{
::DestroyMenu(cs.hMenu);
cs.hMenu = NULL;
}
}