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
Sets DEVMODE and DEVNAMES handles for the currently defined printer.
VB.NET | object.SetDeviceInfo2(ByVal PtrhDevNames As Integer, ByVal PtrhDevMode As Integer) |
VB | object.SetDeviceInfo2(PtrhDevNames As Long, PtrhDevMode As Long) |
C#.NET | void object.SetDeviceInfo2(int PtrhDevNames, int PtrhDevMode); |
VC++ | HRESULT object->SetDeviceInfo2(long* PtrhDevNames, long* PtrhDevMode); |
C | HRESULT object->raw_SetDeviceInfo2(long* PtrhDevNames, long* PtrhDevMode); |
object
PtrhDevNames
A pointer to the handle of a DEVNAMES structure defining the current printer.
PtrhDevMode
A pointer to the handle of a DEVMODE structure defining the current printer.
The SetDeviceInfo2 method sets DEVMODE and DEVNAMES handles for the currently defined printer.
The handles are owned by the calling application.
The SetDeviceInfo method can be used to set DEVMODE and DEVNAMES handles and transfer ownership of the handles to SftPrintPreview/OCX, so they are destroyed automatically when no longer needed.
DEVMODE and DEVNAMES handles are used by Windows to define the current printer and its settings.
See Also SftPrintPreview Object | Object Hierarchy