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 the mouse pointer used.
Get
VB.NET | Value = object.MousePointer As SftMousePointerConstants |
VB | Value = object.MousePointer As SftMousePointerConstants |
C#.NET | SftMousePointerConstants Value = object.MousePointer; |
VC++ | enum SftMousePointerConstants Value = object->MousePointer; enum SftMousePointerConstants Value = object->GetMousePointer(); |
C | HRESULT object->get_MousePointer(enum SftMousePointerConstants* Value); |
Put
VB.NET | object.MousePointer = Value As SftMousePointerConstants |
VB | object.MousePointer = Value As SftMousePointerConstants |
C#.NET | SftMousePointerConstants object.MousePointer = Value; |
VC++ | enum SftMousePointerConstants object->MousePointer = Value; void object->PutMousePointer(enum SftMousePointerConstants Value); |
C | HRESULT object->put_MousePointer(enum SftMousePointerConstants Value); |
object
Value
Defines the mouse pointer used.
Icon | Value | Description |
---|---|---|
sftDefault | 0 | Default, Arrow |
sftArrow | 1 | Arrow |
sftCross | 2 | Cross (cross-hair pointer) |
sftIBeam | 3 | I-Beam |
sftIcon | 4 | Obsolete |
sftSize | 5 | Size (four-pointed arrow pointing north, south, east, and west) |
sftSizeNESW | 6 | Size NE SW (double arrow pointing northeast and southwest) |
sftSizeNS | 7 | Size N S (double arrow pointing north and south) |
sftSizeNWSE | 8 | Size NW SE (double arrow pointing northwest and southeast) |
sftSizeWE | 9 | Size W E (double arrow pointing west and east) |
sftUpArrow | 10 | Up Arrow |
sftHourglass | 11 | Hourglass (wait) |
sftNoDrop | 12 | No Drop |
sftArrowHourglass | 13 | Arrow and hourglass |
sftArrowQuestion | 14 | Arrow and question mark |
sftSizeAll | 15 | Size all |
sftCustom | 99 | Custom icon (specified by the MouseIcon property). |
The MousePointer property defines the mouse pointer used when the mouse cursor is over a SftMask/OCX control.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AxSftMask1.MousePointer = SftMousePointerConstants.sftCross End Sub
Private Sub Form_Load() ' A picture box is used to hold the icon for the MouseIcon property. A suitable ' icon has been defined in the picture box using its Picture property. Set SftMask1.MouseIcon = Picture1.Picture SftMask1.MousePointer = sftCustom ' Or use a predefined icon SftMask1.MousePointer = sftCross End Sub
private void Form1_Load(object sender, System.EventArgs e) { axSftMask1.MousePointer = SftMousePointerConstants.sftCross; }
PICTDESC PictDesc; PictDesc.cbSizeofstruct = sizeof(PICTDESC); PictDesc.picType = PICTYPE_ICON; PictDesc.icon.hicon = LoadIcon(NULL, MAKEINTRESOURCE(IDI_WINLOGO)); IPictureDispPtr pIPictureDisp; HRESULT hr = OleCreatePictureIndirect(&PictDesc, IID_IPictureDisp, TRUE, (void**)&pIPictureDisp); ASSERT(SUCCEEDED(hr)); m_pMask1->PutRefMouseIcon(pIPictureDisp); m_pMask1->MousePointer = sftCustom; // Or use a predefined icon m_pMask1->MousePointer = sftCross; return TRUE; }
See Also SftMask Object | Object Hierarchy