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.
- C#
- VB.NET
public class WindowActionsEventArgs : EventArgs
Public Class WindowActionsEventArgs
Inherits 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
WindowActionsEventArgs()
Initializes empty event data with no target, message parameters, or explicit return value.
WindowActionsEventArgs(ctrl, msg, wParam, lParam)
Initializes action data from a control without forcing creation of its handle.
| Name | Type | Description |
|---|---|---|
| ctrl | Control | The target control; its existing handle is used, or zero if its handle has not been created. |
| msg | Int32 | The SAL or application-defined action code. |
| wParam | IntPtr | The first message parameter. |
| lParam | IntPtr | The second message parameter. |
WindowActionsEventArgs(hWnd, msg, wParam, lParam)
Initializes an unhandled action with a target handle and message parameters.
| Name | Type | Description |
|---|---|---|
| hWnd | IntPtr | The target window handle. |
| msg | Int32 | The SAL or application-defined action code. |
| wParam | IntPtr | The first message parameter. |
| lParam | IntPtr | The second message parameter. |
Properties
ActionType
Int32: Gets or sets the SAL or application-defined action code.
Handled
Boolean: Gets or sets whether a handler has processed this action.
HasReturnValue
Boolean: Gets whether a handler has explicitly assigned Return.
hWnd
SalWindowHandle: Gets the target window handle captured when the event data was created.
LParam
IntPtr: Gets or sets the second message parameter.
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 .
WParam
IntPtr: Gets or sets the first message parameter.