Jump to content
Sign in to follow this  
hijolin

how turned off desk Auto Arrange

Recommended Posts

hijolin

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
hijolin

help me

Share this post


Link to post
Share on other sites
Zedna

#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
hijolin

3q

Edited by hijolin

Share this post


Link to post
Share on other sites
Zedna

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  

×