Skip to main content

WindowActionsEventArgs

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Runtime.50 (5.0.0.0)

Carries a SAL window action's message code, native parameters, target handle, and processing result.

public class WindowActionsEventArgs : EventArgs

Setting Return also sets Handled and HasReturnValue. Setting Handled alone does not supply a return value.

Example:

void HandleAction(object sender, PPJ.Runtime.Windows.WindowActionsEventArgs e)
{
System.Diagnostics.Debug.WriteLine(e.ActionType);
e.Return = 1;
// Handled and HasReturnValue are now true.
}

Constructors

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

Initializes an action for a control without forcing creation of its native handle.

NameTypeDescription
ctrlControlThe target control.
msgInt32The Windows or SAL message code.
wParamIntPtrThe first message parameter.
lParamIntPtrThe second message parameter.

The target handle is zero when the control has not created its handle.

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

Initializes an unhandled action with the specified target and message parameters.

NameTypeDescription
hWndIntPtrThe target window handle.
msgInt32The Windows or SAL message code.
wParamIntPtrThe first message parameter.
lParamIntPtrThe second message parameter.

Properties

Instance member ActionType

Int32: Gets or sets the Windows or SAL message code for this action.

Instance member Handled

Boolean: Gets or sets whether an action handler has processed the message.

Instance member HasReturnValue

Boolean: Gets whether a result has been assigned through Return.

Instance member hWnd

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

Instance member LParam

IntPtr: Gets or sets the second native message parameter.

Instance member Return

SalNumber: Gets or sets the message result and marks the action as handled when assigned.

The assigned number is converted to a signed integer with the native pointer width. Assignment also sets HasReturnValue to .

Instance member WParam

IntPtr: Gets or sets the first native message parameter.