示例#1
0
        public static void EnableAutoComplete(IntPtr handle, bool autoCompleteUrls, bool autoCompleteFiles)
        {
            if (autoCompleteUrls || autoCompleteFiles)
            {
                Application.OleRequired();

                SHAutoCompleteFlags flags = SHAutoCompleteFlags.AutoSuggestForceOn |
                                            SHAutoCompleteFlags.AutoAppendForceOn;

                if (autoCompleteUrls)
                {
                    flags |= SHAutoCompleteFlags.UrlAll;
                }
                if (autoCompleteFiles)
                {
                    flags |= SHAutoCompleteFlags.FileSystem;
                }

                SHAutoComplete(handle, flags);
            }
        }
示例#2
0
 public static extern int SHAutoCompleteHRESULT(IntPtr hwndEdit, SHAutoCompleteFlags dwFlags);
示例#3
0
 public static extern void SHAutoComplete(IntPtr hwndEdit, SHAutoCompleteFlags dwFlags);
示例#4
0
 static extern int SHAutoComplete(IntPtr hwndEdit, SHAutoCompleteFlags dwFlags);