IApplicationDesignModeSettings::ComputeApplicationSize method (shobjidl_core.h)
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. For a code example, see Display WinRT UI objects that depend on CoreWindow.
In addition, each of these methods must be called before calling ComputeApplicationSize, or the call will fail.
Syntax
HRESULT ComputeApplicationSize(
[out] SIZE *applicationSizePixels
);
Parameters
[out] applicationSizePixels
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. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
DLL | Twinapi.dll |