Show / Hide Table of Contents

Method wnd.SetWindowLong


Overload

Calls API SetWindowLongPtr.

public nint SetWindowLong(int index, nint newValue, bool noException = false)
Parameters
index  (int)

A constant from GWL, or an offset in window memory reserved when registering window class.

newValue  (nint)

New value.

noException  (bool)

Don't throw exception when fails.

Returns
nint

Previous value. If fails and noExceptiontrue, returns 0, and can be used lastError.

Exceptions
AuWndException

Remarks

See also API SetWindowSubclass.