MK17 0 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 Share this post Link to post Share on other sites
xPloit 0 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 Share this post Link to post Share on other sites
MK17 0 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. Share this post Link to post Share on other sites