Jump to content

Recommended Posts

Posted (edited)

@AutoBert is right.

And this is quite interesting feature (I never used it before).

 

https://msdn.microsoft.com/en-us/library/windows/desktop/bb774936(v=vs.85).aspx

  Quote

Returns the combination of state values that are set. For example, if lParam is LVGS_COLLAPSED and the value returned is zero, the LVGS_COLLAPSED state is not set. Zero is returned if the group is not found.

Expand  

 

btw.

Using the example from HelpFile for: 

_GUICtrlListView_SetGroupInfo

if you change:

; change this following line
    ; _GUICtrlListView_SetGroupInfo($idListview, 1, "New Group 1")
    
    ; to this two following line
    _GUICtrlListView_SetGroupInfo($idListview, 1, "New Group 1", 0, $LVGS_COLLAPSIBLE + $LVGS_COLLAPSED)
    _GUICtrlListView_SetGroupInfo($idListview, 2, "New Group 2", 0, $LVGS_COLLAPSIBLE + $LVGS_SELECTED)

 

Then you get exactly effect which you ask in OP.

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

wow, Great!  :thumbsup:
It was already there and I didn't see.....,

Thanks a very lot to all of you

@mLipok Your example works great.

Thank you again!.

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...