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.

MFC Menüpunkte umbenennen

Empfohlene Antworten

Hallo,

ich hab hier ein Problem mit dem Umbenennen von Menüpunkten. Im Hauptmenü der SDI-Anwendung habe ich einen Menüpunkt eingefügt, der auch wunderbar funktioniert. Da der Menüpunkt aber als Schalter (an/aus) funktioniert, wäre es schön, wenn er auch anders heißen würde, wenn die Funktion läuft. Nur leider funktioniert das Ändern des Textes irgendwie nicht:

Code des UPDATE_COMMAND-Handlers:


void CFileStatsDoc::OnUpdateStatistik(CCmdUI* pCmdUI) 

{

  if (_bSearching) {

    pCmdUI->SetText("&Suche stoppen");

  }

  else {

    pCmdUI->SetText("&Suche starten");

  }

  //DrawMenuBar(AfxGetApp()->GetMainWnd()->m_hWnd);

}

Wenn ich den gleichen Code beim Standard-Menüpunkt ID_APP_EXIT (Programm|Beenden) einfüge, funktioniert er problemlos.

Irgendwelche Ratschläge, was ich da nun nicht verstanden habe?

[Edit] Der Menüpunkt ist auf gleicher Ebene wie Datei|Ansicht|?|MeinMenüpunkt.

Er hat also keine Untermenüpunkte. Mit Untermenüpunkten klappt das umbenennen problemlos hab ich grad festgestellt. Wie funktioniert es also mit Hauptmenüpunkten?[/EDIT]

Danke im Voraus...

Graste

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.