VC实现全屏功能

void FullScreen()
{
	//以下3行代码实现全屏
	HWND hwnd = GetHWnd();
	SetWindowLong(hwnd , GWL_STYLE , GetWindowLong(hwnd, GWL_STYLE) - WS_CAPTION);
	SetWindowPos(hwnd , HWND_TOP , 0 , 0 , GetSystemMetrics(SM_CXSCREEN) ,
                     GetSystemMetrics(SM_CYSCREEN) , SWP_SHOWWINDOW);

}


posted @ 2013-05-30 20:47  javawebsoa  Views(156)  Comments(0Edit  收藏  举报