|
-
May 14th, 1999, 10:34 AM
#1
SetFocus() not working!!!
Can someone tell me why this code will not put focus on my IDC_PASSWORD
Thank you
BOOL DlgVerifyPassword::OnInitDialog()
{
CDialog::OnInitDialog();
CWnd *pWnd = GetDlgItem(IDC_PASSWORD);
pWnd->SetFocus();
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
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
|