MK17 Posted September 24, 2010 Share Posted September 24, 2010 Hi, i searched the internet but did not find any hints of solving my problem. I have got a ListBox in my Program. Whenever i select Items using _GUICtrlListBox_SelItemRange($handle,$start,$end,true) the Items are marked but the window itself does not recognized the selection. As fas as my Program is concerned i changed the selection to _GUICtrlListBox_SelItemRange($handle,$start,$end,true); $parent=_WinApi_GetParent($handle); _SendMessage($parent,$WM_COMMAND,BitOr(($LBN_SELCHANGE*65536) ,$handle)); Shouldn't the _SendMessage be in in .._SelItemRange ? Thanks Link to comment Share on other sites More sharing options...
xPloit Posted September 24, 2010 Share Posted September 24, 2010 I'm afraid I don't really understand what you're saying... If you are trying to change the values in the listbox, use GUICtrlSetData 00101101011110000101000001101100011011110110100101110100 Link to comment Share on other sites More sharing options...
MK17 Posted September 24, 2010 Author Share Posted September 24, 2010 I am not trying to change the value, its just if i select 2 items with the Mouse, a button is enabled to do something with those selected items. If i use SelectItemRange i can select 2 items but the button is not enabled. Only if i send the WM_COMMAND to the parent, the Control reacts to the selection. Link to comment Share on other sites More sharing options...
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