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