IApplicationDesignModeSettings::SetApplicationViewState method (shobjidl_core.h)
Sets a spoofed application view state (full-screen landscape, full-screen portrait, filled, or snapped) 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. For a code example, see Display WinRT UI objects that depend on CoreWindow.
SetApplicationViewState must be called before calling ComputeApplicationSize.
Syntax
HRESULT SetApplicationViewState(
[in] APPLICATION_VIEW_STATE viewState
);
Parameters
[in] viewState
One of the APPLICATION_VIEW_STATE enumeration values that indicates the application view state 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. |
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 |