Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo,

Ich habe ein Windows das ich Transparent werden lasse. Das funktioniert soweit ganz gut. Leider aber nur solange, solange ich das Programm aus VStudio starte. Die Debug Version tut immer wunderbar. Ich habe auch schon alle Optionen vom Debug auf das Release übernommen. Aber es tut sich nichts.

Der Fehler tritt so auf das das Windows gar nicht erst sichtbar wird.

Habe ich vielleicht etwas wichtiges vergessen. Ich stehe etwas auf dem Schlauch.

So wird es aufgerufen



//das hier funktioniert
HMODULE hUser32 = GetModuleHandle(TEXT("USER32.DLL"));

g_pSetLayeredWindowAttributes = (lpfnSetLayeredWindowAttributes)
GetProcAddress(hUser32, "SetLayeredWindowAttributes");
//...

SetWindowLongPtr(GetSafeHwnd(), GWL_EXSTYLE , GetWindowLongPtr(GetSafeHwnd(), GWL_EXSTYLE) | WS_EX_LAYERED);
SetTransparent(GetSafeHwnd(), m_colTrans, 255 * TRANSPARENTPROZENT/100, LWA_COLORKEY | LWA_ALPHA);


BOOL CMyWindow::SetTransparent(HWND hWnd, COLORREF crKey, BYTE bAlpha, DWORD dwFlags)
{
BOOL bRet = TRUE;
typedef BOOL (WINAPI* lpfnSetTransparent)(HWND hWnd, COLORREF crKey, BYTE bAlpha, DWORD dwFlags);

if ( hUser32 )
{
lpfnSetTransparent pFnSetTransparent = NULL;

if (g_pSetLayeredWindowAttributes )
bRet = g_pSetLayeredWindowAttributes(hWnd, crKey, bAlpha, dwFlags);

else
bRet = FALSE;
}

return bRet;
}

[/PHP]

Release nur aus dem Studio richtig.

Debug immer richtig.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.