BOOL PlayGameForm::OnInitDialog()
{
CDialog::OnInitDialog();
HWND m_hwnd = this->m_hWnd;
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 );
return TRUE;
}
'About Programing > 03. Tip' 카테고리의 다른 글
| 일의 자리에서 반올림 , 올림 , 버림 (2) | 2010.04.05 |
|---|---|
| int main(void)는 이제 그만! (1) | 2010.04.05 |
| MFC Dialog 에서 Enter 와 ESC Key 종료 방지 (0) | 2010.02.20 |
| MFC에서 Client 중복 실행 방지하는 방법 (1) | 2010.02.19 |
| API Hooking (0) | 2010.01.30 |