नोट
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप साइन इन करने या निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
[Intended for internal use; not recommended for use in applications. This macro may not be supported in future versions of Windows.]
Forces a single-line edit control to receive keyboard focus. You can use this macro or send the EM_TAKEFOCUS message explicitly.
Syntax
DWORD Edit_TakeFocus(
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_TAKEFOCUS 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] |
| Target Platform | Windows |
| Header | commctrl.h |
See also
Reference