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

kann mir jemand sagen wie ich die Beschriftung der Spalten in einem CListCtrl bekomme?

habs folgendermaßen probiert

for (int j=0;j<list->GetHeaderCtrl()->GetItemCount();j++)

{

HDITEM item;

item.mask =HDI_TEXT;

list->GetHeaderCtrl()->GetItem(j,&item);

MessageBox(item.pszText);

}

funktioniert aber nicht un das Programm sürtzt immer ab :(

  • Autor

die methode hab ich total übersehen bei CListCtrl

werd ich auch mal ausprobierne

bist jetzt hab ichs so lösen können

int i, nCount = list->GetHeaderCtrl()->GetItemCount();

HDITEM hdi;

TCHAR lpBuffer[256];

hdi.mask = HDI_TEXT;

hdi.pszText = lpBuffer;

hdi.cchTextMax = 256;

for (i=0;i<list->GetHeaderCtrl()->GetItemCount();i++)

{

list->GetHeaderCtrl()->GetItem(i, &hdi);

MessageBox(hdi.pszText);

}

Original geschrieben von SwordMaster

InsertColumn ??!?!

ich bräuchte ja die Spaltenbeschriftungen der bereits mit "InsertColumn" eingefügten splaten! :)

deshalb bringt mir da InsertColumn nichts.

wenn ich dich richtig verstehe dann willst du doch die spalten beschriften und dass

machst du eben mit InsertColumn zB


m_list1.InsertColumn(0, "Spaltenbeschriftung1", LVCFMT_LEFT, 0.10f * width, -1);
m_list1.InsertColumn(1, "Spaltenbeschriftung2", LVCFMT_LEFT, 0.35f * width, -1);
m_list1.InsertColumn(2, "Spaltenbeschriftung3", LVCFMT_LEFT, 0.47f * width, -1
[/PHP]

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.