Sign in to follow this  
Followers 0
hijolin

how turned off desk Auto Arrange

5 posts in this topic

#1 ·  Posted (edited)

how turn off desk Auto Arrange??

#include <A3LWinAPI.au3>
$hList = ControlGetHandle("Program Manager","","SysListView321")
$dwStyle = _API_GetWindowLong($hList, $GWL_STYLE )
$dwStyle = $dwStyle & " ~LVS_AUTOARRANGE"
_API_SetWindowLong($hList, $GWL_STYLE , $dwStyle)

but no turn off desk Auto Arrange

help me

Edited by hijolin

Share this post


Link to post
Share on other sites



help me

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

#include <A3LWinAPI.au3>

Const $LVS_AUTOARRANGE       = 0x00000100

$hList = ControlGetHandle("Program Manager","","SysListView321")
$dwStyle = _API_GetWindowLong($hList, $GWL_STYLE )
_API_SetWindowLong($hList, $GWL_STYLE , BitOr($dwStyle,$LVS_AUTOARRANGE))

EDIT:

this is for turn ON

for turn OFF you must use similar Bitxx functions

Edited by Zedna

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

3q

Edited by hijolin

Share this post


Link to post
Share on other sites

Not tested:

#include <A3LWinAPI.au3>

Const $LVS_AUTOARRANGE       = 0x00000100

$hList = ControlGetHandle("Program Manager","","SysListView321")
$dwStyle = _API_GetWindowLong($hList, $GWL_STYLE )
_API_SetWindowLong($hList, $GWL_STYLE , BitAnd($dwStyle,BitNot($LVS_AUTOARRANGE)))

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0