setfocus
-
how do i set focus in one of my edit control in property sheet
GetDlgItem( ID )->SetCapture(); Where ID is the id Of the Edit control ok. hiren thakkar
-
GetDlgItem( ID )->SetCapture(); Where ID is the id Of the Edit control ok. hiren thakkar
zakkas2483 wrote:
GetDlgItem( ID )->SetCapture();
:confused: Purpose of SetCapture() API is different.Did you really mean SetCapture itself?
nave [OpenedFileFinder]
-
zakkas2483 wrote:
GetDlgItem( ID )->SetCapture();
:confused: Purpose of SetCapture() API is different.Did you really mean SetCapture itself?
nave [OpenedFileFinder]
Sorry,i was wrong. code is like that CEdit* clEdit = (CEdit*)getDlgItem( ID ); clEdit->SetFocus(); sorry again for mistake. Thanks. hiren thakkar
-
how do i set focus in one of my edit control in property sheet
-
how do i set focus in one of my edit control in property sheet
Is this a trick question? The subject of your post should be a clue.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
how do i set focus in one of my edit control in property sheet
To get more/better behavior than SetFocus() with edit controls, I would recommend CDialog::GotoDlgCtrl() (MFC) or WM_NEXTDLGCTL (Win32). (as stated by NS17) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
how do i set focus in one of my edit control in property sheet
-
Sorry,i was wrong. code is like that CEdit* clEdit = (CEdit*)getDlgItem( ID ); clEdit->SetFocus(); sorry again for mistake. Thanks. hiren thakkar
-
Assume the ID of your edit control is IDC_EDIT_NAMETAG, to set the focus do the following: CWnd* pEditCtrl = GetDlgItem(IDC_EDIT_NAMETAG); pEditCtrl->SetFocus();
Sunil
-
Thanks Steve ....Thank You very much
-
Is this a trick question? The subject of your post should be a clue.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne