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.

Listenfeld - Klicken und Taste drücken

Empfohlene Antworten

Hallo,

wie kann ich auf folgendes Ereignis reagieren:

"Benutzer wählt Eintrag im Listenfeld und drückt dann die Entfernen-Taste"

Gruß,

Technician

Also ich hab das so gemacht:


void Editor::OnTvnKeydownStructree(NMHDR *pNMHDR, LRESULT *pResult)

{

	LPNMTVKEYDOWN pTVKeyDown = reinterpret_cast<LPNMTVKEYDOWN>(pNMHDR);

	if (pTVKeyDown->wVKey==VK_DELETE)

	{

		HTREEITEM hti;

		hti = m_Structree.GetDropHilightItem();

		if (hti) m_Structree.DeleteItem(hti);

		else	m_Structree.DeleteItem(m_Structree.GetSelectedItem());

	}

	if (pTVKeyDown->wVKey==VK_INSERT) TRACE("halt was anderes tun");

	*pResult = 0;

}

CTreeCtrl m_Structree; // über eine CTreeView würde das glaub etwas gehen und eine Listbox dürfte ähnlich funktionieren, z.B. so: m_Editfiles.DeleteString(GetSel()); hier noch die Konstruktion: CListBox m_Editfiles;

Hallo,

wie ich ein Element löschen kann, wenn ich es anklicke, weiß ich. Nur mir geht es um das zusätzliche Abfangen der Entf-Taste.

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.