SAM_SetFocus is sent to a check box, combo box, data field, list box, multiline text field, push button, radio button, scroll bar, or table window column when it receives the input focus. Process the SAM_SetFocus message and initialize actions to take place when the user enters an object. Avoid calling functions that can change the focus (such as SalMessageBox, SalModalDialog, SalSendMsg) while processing a SAM_SetFocus message. Message Variables hWndForm Window handle of the top-level window. hWndItem Window handle of the object receiving the message. wParam Handle of the window losing the focus. lParam Unused. Example Push Button: pbPartialSearch Data Field: dfDate ... Message Actions On SAM_SetFocus ! When user enters this field, enable the ! pbPartialSearch push button Call SalEnableWindow ( 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_SetFocus

See Also