2010/03/24
[MFC] 메인창 크기 고정
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
<
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
cs.x = ::GetSystemMetrics(SM_CXSCREEN) / 2 ; // WIndow 위치
cs.y = ::GetSystemMetrics(SM_CYSCREEN) * 1 / 5; // Window 위치
cs.cx = 500; // Window 크기
cs.cy = 400; // Window 크기
cs.style = WS_OVERLAPPED | WS_SYSMENU | WS_MINIMIZEBOX; // Window 속성 - 최대화 Button Disable
return TRUE;
}
Original Post : http://neodreamer-dev.tistory.com/390
Labels:
C++
,
MFC
,
TistoryOldPost
,
Visual C++
,
창 크기 고정
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment