Windows屏保技术

来源:百度知道 编辑:UC知道 时间:2024/05/29 05:42:45
我指从编程的角度看,

1、屏保的全屏技术是怎么实现的?
2、Windows Media Player的全屏技术是怎么实现的?
3、PPT的全屏技术是怎么实现的?
4、IE的全屏技术是怎么实现 的?

CRect m_FullScreenRect;
GetWindowPlacement(&m_OldWndPlacement);
CRect WindowRect;
GetWindowRect(&WindowRect);
CRect ClientRect;
RepositionBars(0, 0xffff, AFX_IDW_PANE_FIRST, reposQuery,&ClientRect);
ClientToScreen(&ClientRect);

//获取屏幕的分辨率
int nFullWidth=GetSystemMetrics(SM_CXSCREEN);
int nFullHeight=GetSystemMetrics(SM_CYSCREEN);

/*将除控制条外的客户区全屏显示到从(0,0)到
(nFullWidth, nFullHeight)区域,将(0,0)和(nFullWidth, nFullHeight)
两个点外扩充原窗口和除控制条之外的客户区位置间的差值,
就得到全屏显示的窗口位置*/
m_FullScreenRect.left=WindowRect.left-ClientRect.left;
m_FullScreenRect.top=WindowRect.top-ClientRect.top;
m_FullScreenRect.right=WindowRect.right - ClientRect.right+nFullWidth;
m_FullScreenRect.bottom=WindowRect.bottom - ClientRect.bottom+nFullHeight;
//设置全屏显示标志为 TRUE
m_bFullScreen=TRUE;
//进入全屏显示状态
WINDOWPLACEMENT wndpl;
wndpl.length=sizeof(WINDOWPLACEMENT);
wndpl.flags=0;
wn