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);



}


你可能感兴趣的:(VC)