-
April 6th, 2010, 03:44 PM
#1
Setfocus() mfc
Hello,
using:
pWnd = CWnd::FindWindow(NULL, L"DIALOG TITLE");
to find a particular dialog.
after that,
I want to set the focus to an Edit Control which has ID 1304.
How do I declare this?
regards,
ger
-
April 7th, 2010, 03:54 AM
#2
Re: Setfocus() mfc
Have a look at CWnd::GetDlgItem
Victor Nijegorodov
-
April 7th, 2010, 04:43 AM
#3
Re: Setfocus() mfc
Hi Victor,
thanks for the reply!
I allready had a look at CWnd::GetDlgItem
having troubles to implement it correctly.
in concert with SetFocus().
regards,
ger
(holland)
-
April 7th, 2010, 05:44 AM
#4
Re: Setfocus() mfc
Originally Posted by TBBW
Hi Victor,
thanks for the reply!
I allready had a look at CWnd::GetDlgItem
having troubles to implement it correctly.
in concert with SetFocus().
regards,
ger
(holland)
pWnd->GetDlgItem(1304)->SetFocus();
-
April 8th, 2010, 04:53 PM
#5
Re: Setfocus() mfc
the one I did not checked..........
THANKS!!
ger
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|