469,963 Members | 1,820 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

How does one set focus to an IP Address control on a Property Page

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.
Nov 17 '05 #1
1 1356
Env: VC++ 6.0 on Win XP.

"gotFun" wrote:
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.

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by starbuck | last post: by
8 posts views Thread by copyco | last post: by
4 posts views Thread by Rafael A. M. Borges | last post: by
8 posts views Thread by Mel | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.