void SetFocusToEdit(
HWND hwnd,
UINT uIDSTitle,
UINT uCtlID,
BOOL fError = FALSE);
Parameters
hwnd
Window handle of the property page dialog box.
uCtlID
ID of an edit control with an invalid entry. This control must have a static text control prior to it that identifies if fError is TRUE.
fError
If TRUE, then an invalid entry error message box is displayed. This function calls GetControlTag to get the static text, and is called by the ON_INVALID_ENTRY_* macros.
Comments
Uses the WM_NEXTDLGCTL dialog message to set the focus to the edit control identified by uCtlID.