Exemple #1
0
        void NativeMethods.IEnumString.Clone(out NativeMethods.IEnumString ppenum)
        {
            ACListISF acl = new ACListISF();

            acl.m_current                 = m_current;
            acl.m_currentPath             = m_currentPath;
            acl.m_currentWorkingDirectory = m_currentWorkingDirectory;
            acl.m_excludeFiles            = m_excludeFiles;

            ppenum = acl;
        }
Exemple #2
0
        void NativeMethods.IEnumString.Clone(out NativeMethods.IEnumString ppenum)
        {
            ACListISF acl = new ACListISF();
            acl.m_current = m_current;
            acl.m_currentPath = m_currentPath;
            acl.m_currentWorkingDirectory = m_currentWorkingDirectory;
            acl.m_excludeFiles = m_excludeFiles;

            ppenum = acl;
        }
Exemple #3
0
        private void UpdateAutoComplete()
        {
            IntPtr hwndEdit = GetComboBoxHWndEdit(fileNameComboBox);
            if (hwndEdit != IntPtr.Zero)
            {
                NativeMethods.IAutoComplete2 iac2 =
                    (NativeMethods.IAutoComplete2)Activator.CreateInstance(
                                                      Type.GetTypeFromCLSID(NativeMethods.CLSID_AutoComplete));

                ACListISF acl = new ACListISF();

                // Set the current working directory so relatives path auto completes
                acl.CurrentWorkingDirectory =
                    GetDisplayName(m_desktopFolder, m_pidlAbsCurrent, NativeMethods.SHGNO.SHGDN_FORPARSING);
                acl.ExcludeFiles = m_excludeFiles;

                iac2.Init(hwndEdit, acl, string.Empty, string.Empty);
                iac2.SetOptions((uint)NativeMethods.AUTOCOMPLETEOPTIONS.ACO_AUTOAPPEND);
                iac2.Enable(1);

                Marshal.ReleaseComObject(iac2);
            }
        }