16 references to LB_GETCURSEL
System.Windows.Forms (2)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
837
return (int)PInvokeCore.SendMessage(this, PInvoke.
LB_GETCURSEL
);
1664
int index = (int)PInvokeCore.SendMessage(this, PInvoke.
LB_GETCURSEL
);
System.Windows.Forms.Tests (14)
System\Windows\Forms\ListBoxTests.cs (14)
2632
Assert.Equal(1, (int)PInvokeCore.SendMessage(control, PInvoke.
LB_GETCURSEL
));
2636
Assert.Equal(0, (int)PInvokeCore.SendMessage(control, PInvoke.
LB_GETCURSEL
));
2640
Assert.Equal(-1, (int)PInvokeCore.SendMessage(control, PInvoke.
LB_GETCURSEL
));
2659
Assert.Equal(1, (int)PInvokeCore.SendMessage(control, PInvoke.
LB_GETCURSEL
));
2666
Assert.Equal(0, (int)PInvokeCore.SendMessage(control, PInvoke.
LB_GETCURSEL
));
2672
Assert.Equal(0, (int)PInvokeCore.SendMessage(control, PInvoke.
LB_GETCURSEL
));
3145
Assert.Equal(1, (int)PInvokeCore.SendMessage(control, PInvoke.
LB_GETCURSEL
));
3149
Assert.Equal(1, (int)PInvokeCore.SendMessage(control, PInvoke.
LB_GETCURSEL
));
3153
Assert.Equal(0, (int)PInvokeCore.SendMessage(control, PInvoke.
LB_GETCURSEL
));
3157
Assert.Equal(-1, (int)PInvokeCore.SendMessage(control, PInvoke.
LB_GETCURSEL
));
3176
Assert.Equal(1, (int)PInvokeCore.SendMessage(control, PInvoke.
LB_GETCURSEL
));
3183
Assert.Equal(1, (int)PInvokeCore.SendMessage(control, PInvoke.
LB_GETCURSEL
));
3190
Assert.Equal(0, (int)PInvokeCore.SendMessage(control, PInvoke.
LB_GETCURSEL
));
3196
Assert.Equal(0, (int)PInvokeCore.SendMessage(control, PInvoke.
LB_GETCURSEL
));