SAM_KillFocus is sent to a table window, data field, multiline field, pushbutton, radio button, check box, option button, combo box, list box, column, and horizontal and vertical scroll bar as you are about to exit the object. The message is always sent whether or not you changed the object's value. Warning: You cannot call SalSetFocus in SAM_KillFocus processing because of a Windows limitation. Message Variables hWndForm Window handle of the top-level window. hWndItem Window handle of the object. wParam Handle of the window gaining the focus. IParam Unused. Example Data Field: dfHireDate ... Message Actions On SAM_KillFocus ! When user exits the data field, disable the ! pbPartialSearch push button Call SalDisableWindow ( pbPartialSearch )

Namespace: PPJ.Runtime
Assembly: PPJ.Runtime.2 (in PPJ.Runtime.2.dll) Version: 2.0.1044.0 (2.0.1044.5276)

Syntax

C#
public const int SAM_KillFocus

See Also