Skip to main content
Version: 2025

WindowActionsEventArgs

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Web.50 (5.0.0.0)

Carries a SAL window action, its target and parameters, and the handler's return value.

public class WindowActionsEventArgs : EventArgs

Assigning Return marks the action handled and records that an explicit return value was supplied. Setting Handled alone does not set a return value.

Example:

void OnWindowActions(object sender, PPJ.Runtime.Windows.WindowActionsEventArgs e)
{
if (e.ActionType == PPJ.Runtime.Sys.SAM_Create)
e.Return = 1;
}

Constructors

Instance member WindowActionsEventArgs()

Initializes empty event data with no target, message parameters, or explicit return value.

Instance member WindowActionsEventArgs(ctrl, msg, wParam, lParam)

Initializes action data from a control without forcing creation of its handle.

NameTypeDescription
ctrlControlThe target control; its existing handle is used, or zero if its handle has not been created.
msgInt32The SAL or application-defined action code.
wParamIntPtrThe first message parameter.
lParamIntPtrThe second message parameter.

Instance member WindowActionsEventArgs(hWnd, msg, wParam, lParam)

Initializes an unhandled action with a target handle and message parameters.

NameTypeDescription
hWndIntPtrThe target window handle.
msgInt32The SAL or application-defined action code.
wParamIntPtrThe first message parameter.
lParamIntPtrThe second message parameter.

Properties

Instance member ActionType

Int32: Gets or sets the SAL or application-defined action code.

Instance member Handled

Boolean: Gets or sets whether a handler has processed this action.

Instance member HasReturnValue

Boolean: Gets whether a handler has explicitly assigned Return.

Instance member hWnd

SalWindowHandle: Gets the target window handle captured when the event data was created.

Instance member LParam

IntPtr: Gets or sets the second message parameter.

Instance member Return

SalNumber: Gets or sets the action's return value.

The setter converts the value to a signed integer of the current pointer size and sets both Handled and HasReturnValue to .

Instance member WParam

IntPtr: Gets or sets the first message parameter.