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

Kannst du nicht einfach mit SendMessage eine WM_SYSCOMMAND mit SC_MINIMIZE an alle TopLevelfenster schicken??

In etwa so


SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MINIMIZE, 0);

Diablo999

hi,

hab das mal in einem dialogprojekt probiert.

void CTCdloadDlg::OnTest()

{

SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MINIMIZE, 0);

}

und bekomme folgenden fehler:

error C2660: 'SendMessageA' : Funktion akzeptiert keine 4 Parameter

laut MSDN brauch das aber 4 parameter.

MSDN:

LRESULT SendMessage(

HWND hWnd, // handle of destination window

UINT Msg, // message to send

WPARAM wParam, // first message parameter

LPARAM lParam // second message parameter

);

die entsprechende header datei hab ich auch eingebunden

Header: Declared in winuser.h

ist bestimmt ein blöder fehler, aber wo?

cioa TinTin

Original geschrieben von TinTin

ist bestimmt ein blöder fehler, aber wo?

CWnd hat eine Methode SendMessage mit drei Parametern. Da deine Klasse von CWnd abgeleitet ist (über CDialog), verdeckt diese Methode die globale Funktion SendMessage. Setz einfach zwei Doppelpunkte davor, dann sollte es gehen.

@klotzkopp: ich sollte die augen besser mal auf machen, danke!

@Alle: vorsicht, so wie das da geschtrieben steht, haut es alle

anwendungen, auch die im hintergrund laufen in die taskleiste.

ich musste neustarten.

ciao TinTin

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.