EM_NOSETFOCUS message

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

Prevents a single-line edit control from receiving keyboard focus. You can send this message explicitly or by using the Edit_NoSetFocus 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.

After this message is sent, the effect is permanent.

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_NoSetFocus

EM_TAKEFOCUS