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.

ListCtrl alle Einträge markieren

Empfohlene Antworten

Weiß nicht sicher obs so geht, aber es müsste genügen eine LVITEM-Struktur

auszufüllen und eine LVM_SETITEMSTATE-Nachricht an das Ctrl zu schicken.

eigentlich müssen nur mask, state und stateMask versorgt werden, in etwa so:


x.mask = LVIF_STATE

x.state = LVIS_SELECTED

x.stateMask = LVIS_SELECTED 

als WParam gibst du -1 an --> alle Items sollen selektiert werden

als LParam gibst du deine ausgefüllte Struktur an

Kannst ja nochmal schreiben obs so geht...

Diablo999

Ich muss übrigens dazu sagen, ich programmiere normalerweise

kein MFC sondern WinAPI.

So sollte es allerdings gehen, weiß aber net ob alles 100% ok ist...


void AlleSelektieren(CListCtrl* lp)

{

  LVITEM x;


  x.mask = LVIF_STATE;

  x.state = LVIS_SELECTED;

  x.stateMask = LVIS_SELECTED ;


  SendMessage(lp->m_hWnd, LVM_SETITEMSTATE, (WPARAM)-1, (LPARAM) &x);

}

Viel Glück damit

Diablo999

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.