IApplicationDesignModeSettings::ComputeApplicationSize method
Gets the size of the Windows Store app, based on the current set of spoofed settings.
You must call IInitializeWithWindow::Initialize to set a proxy core window before calling this method.
In addition, each of these methods must be called before calling ComputeApplicationSize, or the call will fail.
Syntax
HRESULT ComputeApplicationSize( [out] SIZE *applicationSizePixels );
Parameters
- applicationSizePixels [out]
-
When this method returns successfully, receives a pointer to the size that the Windows Store app should occupy, based on the current set of spoofed settings.
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