Results 1 to 6 of 6

Thread: [RESOLVED] Group View in sysListView32 created from CreteWindowEx.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2023
    Posts
    724

    Resolved [RESOLVED] Group View in sysListView32 created from CreteWindowEx.

    Can someone give me a small example how to fix this with grouped items in a sysListView32 without posting out a whole sample? I can add groups to the LV but not attaching items to the group.

  2. #2
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    5,548

    Re: Group View in sysListView32 created from CreteWindowEx.

    Code:
           lvi.iItem = item
            lvi.Mask = LVIF_GROUPID
    lvi.iGroupId = group
    
    LVM_SETITEMW, 0, lvi
    The group id is what you set LVGROUP.iGroupId to, not the index.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2023
    Posts
    724

    Re: Group View in sysListView32 created from CreteWindowEx.

    I made it work just a little while after posting the tread. I had to pass the varptr as byval.

  4. #4
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    5,548

    Re: Group View in sysListView32 created from CreteWindowEx.

    If SendMessage is defined as

    (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

    Then , , lvg is the same as , , ByVal VarPtr(lvg) (where lvg is an LVGROUP variable)

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2023
    Posts
    724

    Re: Group View in sysListView32 created from CreteWindowEx.

    Yes, I know but sometimes in other Types for example TVITEM can be be passed both Byval VarPtr(lpTVI) and without Byval to reach same result.
    I got hang of this groups I think (The footer description is my fantasy and not from any resource - where do I find description for a parent folder or an workingfolder? Is there IShellItem2 or IShellFolder2?
    Attached Images Attached Images  

  6. #6
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    5,548

    Re: [RESOLVED] Group View in sysListView32 created from CreteWindowEx.

    Descriptions as in....?

    You can get the item type e.g. 'File folder', or titles of properties, but I'm not sure what other descriptions would exist. If they're available as a columns in Explorer Details View you can get them. A very small number of folders have a different kind of grouping description available. Most prominently, This PC:



    Those are the category labels provided by the ICategorizer interface, something that's a bit complicated to properly implement to reproduce the view. I don't have any samples for that but my shell browser does have a full implementation.


    Other than those, maybe if you can show me where in Explorer/Windows you see them, I could tell you where they're pulled from.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width