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 habe eine CListCtrl in meinem Dialog. Die membercontrolvariable heißt m_Liste.

wenn ich jetzt mit

m_Liste.InsertColumn(0,"TEXT",LVCFMT_LEFT,30,-1);

mehrere Spalten erstelle, ist alles OK.

Sobald ich aber mit

m_Liste.InsertItem(0,"erstes Item",0);

m_Liste.SetItemText(0,1,"erstes item 2 Spalte");

was in die Liste einfügen will, kriege ich ein Debug Assertion Failed! Error, aber nicht auf den Insert-Zeilen, sondern in der WinCtrl2.cpp, Linie 547.

Dort steht folgendes :

void CListCtrl: :DrawItem(LPDRAWITEMSTRUCT)

{

ASSERT(FALSE); //Hier bleibt er stehen

}

Wo ist das Problem? Muss ich irgendwie speicher reservieren oder sowas??

THX

Und wie muß ich es dann machen? irgendein beißpiel?

Super, das war das richtige, danke!!

Nur habe ich jetzt ein problem, das er nur die erste spalte markiert, wenn ich einen eintrag selektiere... wie mache ich, das er die ganze zeile markiert?

Jo, Danke für die Hife.

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.