방법 1) ShowWindow(SW_MAXIMIZE);
==============================================================================================
방법 2)
==============================================================================================
방법 2)
//OnInitDialog() 부분에 추가하면 된다.
LONG style = ::GetWindowLong( m_hWnd, GWL_STYLE );
style &= ~WS_CAPTION;
style &= ~WS_SYSMENU;
::SetWindowLong( m_hWnd, GWL_STYLE, style );
int screenx = GetSystemMetrics( SM_CXSCREEN );
int screeny = GetSystemMetrics( SM_CYSCREEN );
// resize:
SetWindowPos( NULL, -4, -4, screenx+8, screeny+4, SWP_NOZORDER );
=============================================================================================LONG style = ::GetWindowLong( m_hWnd, GWL_STYLE );
style &= ~WS_CAPTION;
style &= ~WS_SYSMENU;
::SetWindowLong( m_hWnd, GWL_STYLE, style );
int screenx = GetSystemMetrics( SM_CXSCREEN );
int screeny = GetSystemMetrics( SM_CYSCREEN );
// resize:
SetWindowPos( NULL, -4, -4, screenx+8, screeny+4, SWP_NOZORDER );
'MFC' 카테고리의 다른 글
릴리즈 모드로 디버깅 하기 (0) | 2011.08.26 |
---|---|
더블 버퍼링 (0) | 2011.08.26 |
버튼의 활성화 및 비활성화 (0) | 2011.08.26 |
타이틀 제목 바꾸기 (0) | 2011.08.26 |
시스템 커서 바꾸기 (0) | 2011.08.26 |