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.

Dialogtitel ändern

Empfohlene Antworten

Veröffentlicht

Hi,

ich hoffe jemand kann mir Helfen!

Ich möchte gerne einen erstelltenDialog für mehrere Sachen nutzen.

Im Titel Steht Dialog1, so jetzt meine Frage wie kann ich den ändern?

Habe es so versucht aber klappt nicht, gibt mir ne Fehlermeldung Debug Assertion Faild. :confused:

Als Umgebung habe ich VS 2003 und will eine MFC Anwendung erstellen.


void CmDlg::OnBnClickedButton1()
{

mMaskDlg mMaskAnlegen;
mMaskAnlegen.SetWindowText ("test");

int ret = mMaskAnlegen.DoModal ();
// 1 OK 2 Abbrechen


}
[/PHP]

Der Dialog wid erst durch den DoModal Aufruf wirklich erzeugt. Du wirst die Debug Assertion wohl bei dieser Zeile bekommen:

ASSERT(::IsWindow(m_hWnd));

Entweder machst du dir einen eigenen string Member in der Klasse und in der OnInitDialog Methode kannst du dann SetWindowText aufrufen,

oder du arbeitest mit Vererbung und einer Class Factory.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.