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.

Edit im Nachhinein als Passwortfeld

Empfohlene Antworten

Veröffentlicht

Hallo leute

Ist es möglich ein CEdit feld, im Nachhinein als Passwortfeld zu machen?

Ich hätte es mit

ModifyStyle(0,ES_PASSWORD);

Probiert, hat aber leider nciht funktioniert?

Geht sowas überhaupt? wenn ja wie dann?

Wär echt super!

Danke SwordMaster

ModifyStyle und ModifyStyleEx sind Funktionen der Basisklasse, die CEdit zwar erbt, aber nicht überschreibt. Ich könnte mir gut vorstellen, daß man diese Funktionen daher nicht mit ES_PASSWORD nutzen kann ... denke ich mir so ...

Helfen wird dir: SetPasswordChar(char)

  [COLOR=Green]// einschalten der PW-Funktion[/COLOR]

  m_editNoPW.SetPasswordChar([COLOR=Red]'*'[/COLOR]);

  [COLOR=Green]// ausschalten der PW-Funktion[/COLOR]

  m_editPW.SetPasswordChar(0);


  [COLOR=Green]// abtesten[/COLOR]

  ASSERT(!(m_editPW.GetStyle() & ES_PASSWORD));

  ASSERT((m_editNoPW.GetStyle() & ES_PASSWORD));


  [COLOR=Green]// Darstellung aktualisieren[/COLOR]

  Invalidate();


gefunden hier:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cedit.3a3a.setpasswordchar.asp

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.