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
The PrintSetup function invokes the Print Setup dialog for printer settings definition.
C
BOOL SftPrintPreview_PrintSetup(HWND hwnd, HWND hwndDialog);
C++
BOOL CSftPrintPreview::PrintSetup(HWND hwndDialog = NULL);
hwnd
The window handle of the Print Preview control.
hwndDialog
The window handle of the application's main window, which serves as the parent window for the Print Setup dialog. If NULL is specified, the application's main window is determined automatically.
The return value is TRUE if the function was successful, FALSE otherwise. If the user cancels the dialog, FALSE is returned.
The PrintSetup function invokes the Print Setup dialog for printer settings definition.
The NM_SFTPRINTPREVIEW_PRINTERCHANGED_CODE notification code is sent when the current printer or current printer attributes have been modified.
The PrintSetup function is used if a SftPrintPreview control is active. Otherwise, the identical PrintSetupExternal function can be used, which doesn't require a SftPrintPreview control to be active and returns the defined printer in a SFTPRINTPREVIEW_PRINTERRESULT structure.
C
SftPrintPreview_PrintSetup(m_hwndPreview, hwndMain);
C++
m_Preview.SftPrintPreview_PrintSetup();
See Also C/C++ API | C++ Classes | Notifications