Cyclops Posted December 31, 2006 Posted December 31, 2006 Hi, is it possible to disable the manual resizing of the column with in a Listview? Thx, Cyclops Sorry for my cruel english :D
xcal Posted December 31, 2006 Posted December 31, 2006 I played with this a bit, and this does actually work. I'm sure there's a proper way... and I'm sure this isn't it. #include <GUIConstants.au3> ;Global Const $WM_SETCURSOR = 0x0020 Global Const $WM_LBUTTONDOWN = 0x00201 GUICreate('', 220, 120) $list = GUICtrlCreateListView('heading 1|heading 2|heading 3', 10, 10, 200, 100, -1) GUICtrlCreateListViewItem('item 1|item 2|item 3', $list) GUICtrlCreateListViewItem('item 4|item 5|item 6', $list) GUISetState() While 1 If GUIGetMsg() = $GUI_EVENT_CLOSE Then Exit $mmsg = MouseGetCursor() $curs = GUIGetCursorInfo() If $mmsg = 0 And $curs[4] = $list Then ;GUICtrlRecvMsg ($list, $WM_SETCURSOR) ;couldn't work out the cursor changing issue GUICtrlRecvMsg ($list, $WM_LBUTTONDOWN) ;trash the button down message EndIf WEnd How To Ask Questions The Smart Way
GaryFrost Posted December 31, 2006 Posted December 31, 2006 When the header for the ListView is created it needs the HDS_NOSIZING style. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Cyclops Posted January 1, 2007 Author Posted January 1, 2007 And where should i add the HDS_NOSIZING style? And how is the HDS_NOSIZING declared? Sorry for my cruel english :D
GaryFrost Posted January 4, 2007 Posted January 4, 2007 And where should i add the HDS_NOSIZING style?And how is the HDS_NOSIZING declared?Sorry, looked that one up and its for Vista and above. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now