How to manipulate CEdit in CAxDialogImpl
-
HI all, I have created an IE toolbar. And also I have created a dialog box derived from CAxDialogImpl . While clicking on a button on the ToolBar, this dialog box will come. On this dialog box I have an Edit Box . And I need to setfocus on that Edit box how can I do that , I am provided with only the ID of the Editbox from Resource. Please Help me, Thanks IN Advance. George
-
HI all, I have created an IE toolbar. And also I have created a dialog box derived from CAxDialogImpl . While clicking on a button on the ToolBar, this dialog box will come. On this dialog box I have an Edit Box . And I need to setfocus on that Edit box how can I do that , I am provided with only the ID of the Editbox from Resource. Please Help me, Thanks IN Advance. George
Call
SetFocus()
in yourWM_INITDIALOG
handler, and returnFALSE
from the handler.--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
Call
SetFocus()
in yourWM_INITDIALOG
handler, and returnFALSE
from the handler.--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
Hi Mike, First of all thanks for your reply . And sorry for not informing u that , there are more than on Edit Boxes in that dialog. And I want to Set focus on one among those Edit Boxes. Thanks George
-
Hi Mike, First of all thanks for your reply . And sorry for not informing u that , there are more than on Edit Boxes in that dialog. And I want to Set focus on one among those Edit Boxes. Thanks George
The answer is still the same - you set the focus to whatever edit box you want to have the focus.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
HI all, I have created an IE toolbar. And also I have created a dialog box derived from CAxDialogImpl . While clicking on a button on the ToolBar, this dialog box will come. On this dialog box I have an Edit Box . And I need to setfocus on that Edit box how can I do that , I am provided with only the ID of the Editbox from Resource. Please Help me, Thanks IN Advance. George
1、Get HWND of your dialog box. 2、Get HWND of edit. 3、use SetFocus() api. eg: HWND hDlg = ... //get hwnd of your dialog box. HWND hEdit = GetDlgItem(idEdit); SetFocus(hEdit);
i love vc!This will appear at the end of messages you post to the Code Project
-
1、Get HWND of your dialog box. 2、Get HWND of edit. 3、use SetFocus() api. eg: HWND hDlg = ... //get hwnd of your dialog box. HWND hEdit = GetDlgItem(idEdit); SetFocus(hEdit);
i love vc!This will appear at the end of messages you post to the Code Project
Hai wang, Thankyou for your valuable reply , it helped me a lot Regards george
-
The answer is still the same - you set the focus to whatever edit box you want to have the focus.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
Hai Mike , Thankyou very much for your reply. regards George