Digital Video Forums  

Go Back   Digital Video Forums > Other > Archive (Active) > Developers/Webmasters

LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 16 Apr 2004, 07:55 AM   #1
Junior Member
Junior Member
Join Date: Apr 2004
Posts: 1
Default Programming: List Control with that fantastic Groups (WinXP) as in DVD Shrink

I'm a programmer, i am programming C/C++ WinAPI ...
My question is:
how i can add these wonderful "Groups" in a ListView Control?

I wrote this function:

void ListView_InsertGroupEx(HWND hListView, const char *szHeader, int iID)
ListView_EnableGroupView(hListView, true);

lvg.cbSize = sizeof(LVGROUP);
lvg.pszHeader = L"here i want the variable szHeader. how?";
lvg.cchHeader = wcslen(lvg.pszHeader);
lvg.iGroupId = iID;
lvg.uAlign = LVGA_HEADER_LEFT;

if(ListView_InsertGroup(hListView, iID, &lvg) == -1)
MessageBox(0, "Error Group", 0, 0);

But if i use it with:

ListView_InsertGroupEx(GetDlgItem(hDlg, IDC_LIST), "This is the Group header 1", 0);
ListView_InsertGroupEx(GetDlgItem(hDlg, IDC_LIST), "This is the Group header 2", 1);
ListView_InsertGroupEx(GetDlgItem(hDlg, IDC_LIST), "This is the Group header 3", 2);

Then there appears only ONE Group (the first one).

I initialized CommonControls in my Application AND added a Manifest to use Windows XP Visual Styles. But why does it not work???

Please help me!
Christoph_K is offline   Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT +10. The time now is 02:45 AM.

Kirsch designed by Andrew & Austin

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 1999 - 2018 Digital Digest

Visit DivXLand   Visit