Edit_NoSetFocus macro (commctrl.h)
[Intended for internal use; not recommended for use in applications. This macro may not be supported in future versions of Windows.]
Prevents a single-line edit control from receiving keyboard focus. You can use this macro or send the EM_NOSETFOCUS message explicitly.
Syntax
DWORD Edit_NoSetFocus(
HWND hwndCtl
);
Parameters
hwndCtl
Type: HWND
A handle to the edit control.
Return value
Type: DWORD
The return value is not used.
Remarks
The EM_NOSETFOCUS 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] |
Target Platform | Windows |
Header | commctrl.h |