G
Guest
I am unable to set focus to an IP address control residing on a Property Page, following validation of the IP when the user hits the 'Finish' button on the Property Sheet.
I've unsuccessfully tried to use:
CWnd::SetFocus
CIPAddrCtrl::SetFieldFocus
WM_SETFOCUS sent via SendDlgItemMessage (this approach
helped set focus to edit and combo boxes, but not an ip address control).
Also tried sending IPM_SETFOCUS... but this didn't work.
If the IP address is set to 0.0.0.0, I fail the validation; pop up a message box for the user, and after user hits ok, I'm back to the wizard, but there's no input focus on the IP address control (no caret blinking).
Any help is much appreciated.
I've unsuccessfully tried to use:
CWnd::SetFocus
CIPAddrCtrl::SetFieldFocus
WM_SETFOCUS sent via SendDlgItemMessage (this approach
helped set focus to edit and combo boxes, but not an ip address control).
Also tried sending IPM_SETFOCUS... but this didn't work.
If the IP address is set to 0.0.0.0, I fail the validation; pop up a message box for the user, and after user hits ok, I'm back to the wizard, but there's no input focus on the IP address control (no caret blinking).
Any help is much appreciated.