Dmitry Timoshkov : comdlg32: If lpstrFile points to a valid string use it as a default value for edit control .