Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
// Auflösung ermitteln
int nBreite, nHoehe;
CString strBreite, strHoehe;
nBreite = GetSystemMetrics(SM_CXSCREEN);
nHoehe = GetSystemMetrics(SM_CYSCREEN);
// Ausgelesene Auflösung ausgeben
strBreite.Format("%d", nBreite);
strHoehe.Format("%d", nHoehe);
MessageBox("Die Breite: " + strBreite + "\nDie Höhe: "+ strHoehe);
DEVMODE dmAufloesung;
memset(&dmAufloesung, 0 , sizeof(dmAufloesung));
dmAufloesung.dmSize = sizeof(dmAufloesung);
dmAufloesung.dmPelsWidth = 1024; // Breite der Auflösung
dmAufloesung.dmPelsHeight = 768; // Höhe der Auflösung
dmAufloesung.dmBitsPerPel = 32; // Farbtiefe
dmAufloesung.dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT;
if (ChangeDisplaySettings(&dmAufloesung , CDS_FULLSCREEN) != DISP_CHANGE_SUCCESSFUL)
{
MessageBox("FEHLER!", "FEHLER",MB_OK);
return;
}
ChangeDisplaySettings(NULL,CDS_RESET);
if (ChangeDisplaySettings(&dmAufloesung , CDS_FULLSCREEN | CDS_UPDATEREGISTRY) != DISP_CHANGE_SUCCESSFUL)
{
MessageBox("FEHLER!", "FEHLER",MB_OK);
return;
}