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 hab schon wieder ein Problem mit 2 Dialogen. Ich will wenn ich auf einen Button in einem Dialog klicke im anderen Dialog einen Button wieder aktivieren. Wie mache ich das ???

(MFC)

Danke für eure Hilfe !!!

Hm, sieht ziemlich nach VB Code aus!

Sieh dir meine Erklärung an, wie man eine intvariable ändert:

Wert einer int-Variable in anderem Dialog

Anstatt die intvariable zu ändern,

schreibst du halt einfach:


GetDlgItem(IDC_BUTTON_TEST)->EnableWindow(TRUE);

für's aktivieren bzw.

GetDlgItem(IDC_BUTTON_TEST)->EnableWindow(FALSE);

für's deaktivieren...

Mit GetDlgItem holst du dir einen Pointer auf dein Steuerelement, statt IDC_BUTTON_TEST musst du halt noch die IDC des Buttons angeben.

Aber pass auf das der Dialog geöffnet ist, denn wenn wenn nicht kann es derb krachen!

ich hoff das hilft weiter!

bye

JO;)

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.