Click to See Complete Forum and Search --> : CFileDialog, give my child (controls) a chance. How to please !


Will Rothwell
April 8th, 1999, 04:53 AM
Hi all,

I have a dialog box functions as a directory picker and want to make use of CFileDialog. To do that I put a static text with ID=stc32 in the dialog template and some other CEdit boxes for user to enter names and password etc. A CFileDialog is instantiated in the CMyDialog::OnInitDialog. I also "HideControl"ed the OK button and others default control as I only need the dir. list and the drop down combo box. It seems to works, BUT

My problem is my edit boxes cannot get focus. I can use the mouse to force focus on an edit box to input text but when I press "tab" the focus jump back to the CFileDialog's combo and file list. I have set the tab order on the dialog template but no effect. I read about that the CFileDialog is actually the parent and my controls are children. Can somebody please tell me how to make my child controls able to receive focus when user presses the tab key. Many thanks.

Will Rothwell