Rediger

Del via


EM_TAKEFOCUS message

[Intended for internal use; not recommended for use in applications. This message may not be supported in future versions of Windows.]

Forces a single-line edit control to receive keyboard focus. You can send this message explicitly or by using the Edit_TakeFocus macro.

Parameters

wParam

Not used; must be zero.

lParam

Not used; must be zero.

Return value

The return value is not used.

Security Considerations

Using this message might compromise the security of your program.

Remarks

This message is ignored if the edit control is not a single-line edit control.

If the edit control previously received an EM_NOSETFOCUS message, the edit control will appear to have the focus without actually having it; otherwise, the edit control will receive focus.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Commctrl.h

See also

Reference

Edit_TakeFocus

EM_NOSETFOCUS