Show / Hide Table of Contents

Method WndUtil.SetOwnerWindow


Overload

Changes the owner window.

public static bool SetOwnerWindow(wnd w, wnd owner)
Parameters
w  (wnd)
owner  (wnd)
Returns
bool

If fails, returns false; supports lastError.

Remarks

A window that has an owner window is always on top of it. Don't call this for controls, they don't have an owner window. Fails for example if the owner's process has higher UAC integrity level or is a Store app.

See Also

wnd.getwnd.Owner