IApplicationDesignModeSettings::SetScaleFactor method
Sets a spoofed device scale factor to be used for a Windows Store app running in design mode.
You must call IInitializeWithWindow::Initialize to set a proxy core window before calling this method.
SetScaleFactor must be called before calling ComputeApplicationSize.
Syntax
HRESULT SetScaleFactor(
[in] DEVICE_SCALE_FACTOR scaleFactor
);
Parameters
- scaleFactor [in]
-
One of the DEVICE_SCALE_FACTOR enumeration values that indicates the device scale factor to spoof.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code, including the following:
| Return code | Description |
|---|---|
|
IInitializeWithWindow::Initialize has not been called to set a proxy core window. |
Examples
See IApplicationDesignModeSettings for example use of this method.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps only] |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also