Red de conocimiento informático - Problemas con los teléfonos móviles - Tecnología de salvapantallas de Windows

Tecnología de salvapantallas de Windows

CRect m_FullScreenRect;

GetWindowPlacement(y m_OldWndPlacement);

CRect WindowRect;

GetWindowRect(y WindowRect);

p>

CRect ClientRect

RepositionBars(0, 0xffff, AFX_IDW_PANE_FIRST, reposQuery, y; ClientRect;

ClientToScreen(y; ClientRect); /p>

//Obtener la resolución de la pantalla

int nFullWidth=GetSystemMetrics(SM_CXSCREEN);

int nFullHeight=GetSystemMetrics(SM_CYSCREEN);

/*Eliminará el control El área del cliente fuera de la barra se muestra en pantalla completa en el área desde (0, 0) hasta

(nFullWidth, nFullHeight), y (0, 0) y (nFullWidth, nFullHeight)

expanden la diferencia entre la posición de la ventana original y el área del cliente, excepto la barra de control,

para obtener la posición de la ventana en pantalla completa*/

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;

//Establece el indicador de visualización de pantalla completa en TRUE

m_bFullScreen =TRUE;

//Ingrese el estado de visualización de pantalla completa

WINDOWPLACEMENT wndpl;

wndpl.length=sizeof(WINDOWPLACEMENT);

wndpl.flags=0;

wndpl .showCmd=SW_SHOWNORMAL;

wndpl.rcNormalPosition=m_FullScreenRect;

SetWindowPlacement(amp; wndpl);