IAccessibilityDockingService::UndockWindow method

Undocks a currently docked accessibility app window from the bottom of the screen.

Syntax


HRESULT UndockWindow(
  [in] HWND hwnd
);

Parameters

hwnd [in]

Type: HWND

The handle of the window to undock.

Return value

Type: HRESULT

Returns a standard return value, including the following:

Return codeDescription
S_OK

The method succeeded.

E_ACCESSDENIED

The specified window does not belong to the calling process.

HRESULT_FROM_WIN32(ERROR_INVALID_WINDOW_HANDLE)

The specified window is not docked.

 

Remarks

This method can only be used to undock windows that belong to the calling process.

Examples





class CAccessibilityApplicationWindow : public IAccessibilityDockingServiceCallback
{

    ....
    ....

    HRESULT _Undock()
    {
        return _pDockingService->UndockWindow(_hwndMyApplication);
    }

    IAccessibilityDockingService *_pDockingService;
    HWND _hwndMyApplication;
}


Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

See also

IAccessibilityDockingService

 

 

Show: