The current selection is changing.
| C# | void object_SelectionChange(object sender, EventArgumentType e); |
| VB.NET | Private Sub object_SelectionChange(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.SelectionChange |
| C++ | void OnSelectionChangeobject(); |
| C | HRESULT OnSelectionChangeobject(); |
object
The SelectionChange event occurs when the current selection is changing.
Case SftBoxAreaConstants.areaSftBoxButton, SftBoxAreaConstants.areaSftBoxCell
If e.part = SftBoxPortionConstants.partSftBoxDropDown Then
AxSftBox1.DropDown.Suppress() ' Make sure we don't close the drop down
End If
ExpandCollapseItem(e.itemIndex, e.shift)
End Select
End Sub
Private Sub AxSftBox1_SelectionChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxSftBox1.SelectionChange
CopyImageFromCurrentItem()
End Sub
End Class
break;
}
}
BEGIN_EVENTSINK_MAP(CItemImagesDlg, CDialog)
//{{AFX_EVENTSINK_MAP(CItemImagesDlg)
ON_EVENT(CItemImagesDlg, IDC_SFTBOX1, 8 /* ItemClick */, OnItemClickSftBox1, VTS_I4 VTS_I4 VTS_I4 VTS_I2 VTS_I2 VTS_I2)
ON_EVENT(CItemImagesDlg, IDC_SFTBOX1, 9 /* ItemDblClk */, OnItemDblClkSftBox1, VTS_I4 VTS_I4 VTS_I4 VTS_I2 VTS_I2 VTS_I2)
ON_EVENT(CItemImagesDlg, IDC_SFTBOX1, 20 /* SelectionChange */, OnSelectionChangeSftBox1, VTS_NONE)
//}}AFX_EVENTSINK_MAP
END_EVENTSINK_MAP()
BOOL CItemImagesDlg::OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
INT_PTR dmResult;See Also SftBox Object | Object Hierarchy