コード例 #1
0
        public SelectFileDialog()
        {
            ofnw = new OPENFILENAMEW
            {
                File         = new string(new char[256]),
                MaxFile      = 256,
                FileTitle    = new string(new char[64]),
                MaxFileTitle = 64,
                Flags        = Win32.OFN_EXPLORER | Win32.OFN_PATHMUSTEXIST | Win32.OFN_NOCHANGEDIR
            };

            ofnw.Size = Marshal.SizeOf(ofnw);
        }
コード例 #2
0
        public SaveFileDialog()
        {
            ofnw = new OPENFILENAMEW
            {
                File         = new string(new char[256]),
                MaxFile      = 256,
                FileTitle    = new string(new char[64]),
                MaxFileTitle = 64,
                Flags        = Win32.OFN_EXPLORER | Win32.OFN_NOCHANGEDIR | Win32.OFN_HIDEREADONLY
            };

            ofnw.Size = Marshal.SizeOf(ofnw);
        }
コード例 #3
0
 public static extern bool SaveFileDialog(ref OPENFILENAMEW lpofnw);