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
Select whether caller-supplied pixel dimensions on SFTBUTTON_CONTROL are interpreted as 96-DPI reference values (and scaled for the current monitor DPI) or used verbatim.
C
void SftButton_SetPixelScaling(HWND hwndCtl, int mode);
C++
void CSftButton::SetPixelScaling(int mode);
hwndCtl
The window handle of the button control.
mode
One of:
| SFTBUTTON_PIXELSCALING_ASIS (0) | Caller-supplied pixel dimensions are used verbatim in physical screen pixels. |
| SFTBUTTON_PIXELSCALING_STRETCH (1) | Default. Caller-supplied pixel dimensions are interpreted as 96-DPI reference pixels. The control multiplies by currentDPI / 96 at render time. Storage and getters always return caller-reference units so serialized configurations stay portable across DPI. |
SetPixelScaling is the caller-metrics side of Per-Monitor DPI awareness. Independent of SetImageScaling - applications can turn on one, both, or neither.
See Also GetPixelScaling | SetImageScaling | Per-Monitor DPI and Scaling
