How do I set predefined path to CRhinoGetFileDialog (c++)?

Hi;
In my code, how do I set predefined path?

CRhinoGetFileDialog gf;
	gf.SetScriptMode(context.IsInteractive() ? FALSE : TRUE);
	BOOL rc0 = gf.DisplayFileDialog(CRhinoGetFileDialog::open_rhino_3dm_file_dialog, 0, RhinoApp().MainWnd());
	if (!rc0)
		return CRhinoCommand::cancel;

Hi @suc_kiet,

The class uses pre-defined locations set by the user during a modeling session. If you want to use your own path, use MFC’s CFileDialog class or Win32’s GetOpenFileName function.

– Dale

Hi;
Got it,Thank you.