IAccessibilityDockingServiceCallback::Undocked method

Undocks the accessibility window so that it will not be automatically moved to its previous location.

Syntax


HRESULT Undocked(
  [in] UNDOCK_REASON undockReason
);

Parameters

undockReason [in]

Specifies the reason why the accessibility application's window was undocked.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Examples


class CAccessibilityApplicationWindow : public IAccessibilityDockingServiceCallback
{

    ....
    ....

    HRESULT Undocked(_In_ UNDOCK_REASON undockReason);
    {
        if (undockReason == RESOLUTION_CHANGE || undockReason == MONITOR_DISCONNECT)
        {
            _ReRequestDock();
        }
        else if (undockReason == TRANSITION_TO_DESKTOP)
        {
            _ApplyWindowAdornments();
        }
        return S_OK;
    }
}

See also

IAccessibilityDockingServiceCallback

 

 

Show: