SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines a custom mouse icon using a Windows icon handle.
Get
VB.NET | IconHandle = object.MouseIconH As Integer |
VB | IconHandle = object.MouseIconH As OLE_HANDLE |
C#.NET | int IconHandle = object.MouseIconH; |
VC++ | OLE_HANDLE IconHandle = object->MouseIconH; OLE_HANDLE IconHandle = object->GetMouseIconH(); |
C | HRESULT object->get_MouseIconH(OLE_HANDLE* IconHandle); |
Put
VB.NET | object.MouseIconH = IconHandle As Integer |
VB | object.MouseIconH = IconHandle As OLE_HANDLE |
C#.NET | int object.MouseIconH = IconHandle; |
VC++ | OLE_HANDLE object->MouseIconH = IconHandle; void object->PutMouseIconH(OLE_HANDLE IconHandle); |
C | HRESULT object->put_MouseIconH(OLE_HANDLE IconHandle); |
object
IconHandle
Defines a custom mouse icon using a Windows icon handle.
The MouseIconH property defines a custom mouse icon using a Windows icon handle.
The MouseIconH property provides a custom icon that is used when the MousePointer property is set to sftCustom (99). This mouse pointer is displayed when the cursor is located anywhere on the control.
Dim Ic As Icon Ic = New Icon("C:\path-to-icon\youricon.ico") AxSftDirectory1.MouseIconH = Ic.Handle.ToInt32() AxSftDirectory1.MousePointer = SftMousePointerConstants.sftCustom
Icon Ic = new Icon(@"C:\path-to-icon\youricon.ico"); axSftDirectory1.MouseIconH = (int) Ic.Handle; axSftDirectory1.MousePointer = SftMousePointerConstants.sftCustom;
ISftDirectoryPtr vDir1 = m_Dir1.GetControlUnknown(); HICON hIcon = LoadIcon(NULL, MAKEINTRESOURCE(IDI_WINLOGO)); vDir1->put_MouseIconH((OLE_HANDLE)hIcon); vDir1->put_MousePointer(sftCustom);
See Also SftDirectory Object | Object Hierarchy