IAccessibilityDockingService::UndockWindow method
Undocks the specified window handle if it is currently docked.
Syntax
HRESULT UndockWindow(
[in] HWND hWnd
);
Parameters
- hWnd [in]
-
Specifies the window that will be undocked.
Return value
This method can return one of these values.
| Return code | Description |
|---|---|
|
Success. |
|
The window does not belong to the calling process. |
|
The 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;
}
See also
Show: