Esempio n. 1
0
 public OpenFileDialog()
 {
     pth              = new FileDlg();
     pth.structSize   = Marshal.SizeOf(pth);
     pth.filter       = "All |*.*;\0\0";
     pth.file         = new string(new char[256]);
     pth.maxFile      = pth.file.Length;
     pth.fileTitle    = new string(new char[64]);
     pth.maxFileTitle = pth.fileTitle.Length;
     pth.initialDir   = Environment.CurrentDirectory; // default path
     pth.title        = "打开项目";
     pth.defExt       = "txt";
     pth.flags        = 0x00080000 | 0x00001000 | 0x00000800 | 0x00000200 | 0x00000008;
 }
Esempio n. 2
0
 public static bool GetSaveFileName([In, Out] FileDlg ofd)
 {
     return(false);
 }
Esempio n. 3
0
 public static extern bool GetSaveFileName([In, Out] FileDlg ofd);