XLL+ Class Library (6.3)

CXlDialog::SetFocus

Sets the focus to a particular control

BOOL SetFocus(
   CXlControl& ctl
);
BOOL SetFocus(
   UINT id
);

Parameters

ctl

Reference to the control which will get the focus.

id

ID of the control which will get the focus.

Remarks

This function can be called from event handlers in order to set the focus. It can also be called before Show() to set the initial focus.

The function returns TRUE if the call succeeded, and FALSE if the control could not be found.

Requirements

Header: xldialog.h

See Also

CXlDialog Class | CXlDialog Methods