Jump to content

GuiCtrlListBox_SelItemRange not working properly


MK17
 Share

Recommended Posts

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...