Sign in to follow this  
Followers 0
MK17

GuiCtrlListBox_SelItemRange not working properly

3 posts in this topic

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



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

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

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