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

Servus erstmal,

hab ne kurze, knappe frage. ich möchte bei einem MDI-projekt darauf reagieren,

dass das fenster wiederhergestellt wird , bzw. ind den fordergrund geholt wird.

wo muss ich mich da reinhängen?

ciao TinTin

OK, ich gebe zu die frage war zu kurz angebunden.

ich hab jetzt folgendes gemacht. in der MainForm.cpp habe ich ein

OnSysCommand und das reagiert auch auf SC_RESTORE, wenn das fenster

vorher minimiert worden ist und ich in der taskleite auf wiederherstellen klicke.

void CMainFrame::OnSysCommand(UINT uID, LPARAM lParam)

{

	if ((uID & 0xFFF0) == SC_RESTORE) AfxMessageBox("sc_restore");

	CWnd::OnSysCommand(uID, lParam);

}

so far, so good!

was ich aber erreichen möchte, ist, dass die anwendung reagiert, wenn das

fenster einfach nur in den vordergrund geholt wird. egal, ob minimiert oder nur

von einer anderen anwendung verdeckt war. bin ich da mit OnSysCommand

überhaupt auf dem richtigen weg? oder sollte ich einen anderen wählen?

und welchen?

ciao TinTin

@klotzkopp:

ich habs mir doch gedacht, das eine antwort von dir kommt. Danke!!!!

genau die funktion hab ich auch grade entdeckt. nur sollte man sich das

aktivieren nicht mit 'ner messagebox anzeigen lassen, da man sonnst in eine

endlosschleife gerät. bein wegdrücken der messagebox, die auf WA_ACTIVE

reagiert wird die anwendung wieder ativiert und wieder kommt ne messagebox ...

nochmal danke für den tipp und ein grosses RESPEKT an dich!

:uli

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.