diff --git a/sdk-api-src/content/winuser/nf-winuser-getdlgctrlid.md b/sdk-api-src/content/winuser/nf-winuser-getdlgctrlid.md index 1d6a703c79d..c3638abae4d 100644 --- a/sdk-api-src/content/winuser/nf-winuser-getdlgctrlid.md +++ b/sdk-api-src/content/winuser/nf-winuser-getdlgctrlid.md @@ -70,13 +70,13 @@ Type: int If the function succeeds, the return value is the identifier of the control. -If the function fails, the return value is zero. An invalid value for the hwndCtl parameter, for example, will cause the function to fail. To get extended error information, call GetLastError. +If the function fails, the return value is zero. An invalid value for the hWnd parameter, for example, will cause the function to fail. To get extended error information, call GetLastError. ## -remarks GetDlgCtrlID accepts child window handles as well as handles of controls in dialog boxes. An application sets the identifier for a child window when it creates the window by assigning the identifier value to the hmenu parameter when calling the CreateWindow or CreateWindowEx function. -Although GetDlgCtrlID may return a value if hwndCtl is a handle to a top-level window, top-level windows cannot have identifiers and such a return value is never valid. +Although GetDlgCtrlID may return a value if hWnd is a handle to a top-level window, top-level windows cannot have identifiers and such a return value is never valid. #### Examples