Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
ID_BITMAP1 BITMAP "schloss.bmp"
CONTROL "Picture0",IDM_LOCK,"STATIC",SS_BITMAP |WS_CHILD |WS_VISIBLE ,7,9,48,48
case WM_PAINT:
hbit = GetDlgItem(hDlg,IDM_LOCK);
HDC hDC, MemDCExercising,hdia;
PAINTSTRUCT Ps;
HBITMAP bmpExercising;
hDC = BeginPaint(hbit, &Ps);
// Load the bitmap from the resource
bmpExercising = LoadBitmap( MyInstance, MAKEINTRESOURCE(1000));
// Create a memory device compatible with the above DC variable
MemDCExercising = CreateCompatibleDC(hDC);
// Select the new bitmap
SelectObject(MemDCExercising, bmpExercising);
// Copy the bits from the memory DC into the current dc
BitBlt(hDC, 10, 10, 450, 400, MemDCExercising, 0, 0, SRCCOPY);
// Restore the old bitmap
DeleteDC(MemDCExercising);
DeleteObject(bmpExercising);
EndPaint(hbit, &Ps);