⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shdocvw.cs

📁 c#精彩编程百例(源代码)
💻 CS
字号:
// one day I may be get rid of the external SHDocVw.dll, but my little
// "interface" decompiler seems to miss something, the browser doesn't work
// correctly if I use this file instead of the original SHDocVw.dll :(

//[assembly: System.Runtime.InteropServices.ImportedFromTypeLibAttribute("SHDocVw")]
//[assembly: System.Runtime.InteropServices.GuidAttribute("eab22ac0-30c1-11cf-a7eb-0000c05bae0b")]
//
//namespace SHDocVw {
//
//	public enum OLECMDID
//	{
//		OLECMDID_OPEN = 1,
//		OLECMDID_NEW = 2,
//		OLECMDID_SAVE = 3,
//		OLECMDID_SAVEAS = 4,
//		OLECMDID_SAVECOPYAS = 5,
//		OLECMDID_PRINT = 6,
//		OLECMDID_PRINTPREVIEW = 7,
//		OLECMDID_PAGESETUP = 8,
//		OLECMDID_SPELL = 9,
//		OLECMDID_PROPERTIES = 10,
//		OLECMDID_CUT = 11,
//		OLECMDID_COPY = 12,
//		OLECMDID_PASTE = 13,
//		OLECMDID_PASTESPECIAL = 14,
//		OLECMDID_UNDO = 15,
//		OLECMDID_REDO = 16,
//		OLECMDID_SELECTALL = 17,
//		OLECMDID_CLEARSELECTION = 18,
//		OLECMDID_ZOOM = 19,
//		OLECMDID_GETZOOMRANGE = 20,
//		OLECMDID_UPDATECOMMANDS = 21,
//		OLECMDID_REFRESH = 22,
//		OLECMDID_STOP = 23,
//		OLECMDID_HIDETOOLBARS = 24,
//		OLECMDID_SETPROGRESSMAX = 25,
//		OLECMDID_SETPROGRESSPOS = 26,
//		OLECMDID_SETPROGRESSTEXT = 27,
//		OLECMDID_SETTITLE = 28,
//		OLECMDID_SETDOWNLOADSTATE = 29,
//		OLECMDID_STOPDOWNLOAD = 30,
//		OLECMDID_ONTOOLBARACTIVATED = 31,
//		OLECMDID_FIND = 32,
//		OLECMDID_DELETE = 33,
//		OLECMDID_HTTPEQUIV = 34,
//		OLECMDID_HTTPEQUIV_DONE = 35,
//		OLECMDID_ENABLE_INTERACTION = 36,
//		OLECMDID_ONUNLOAD = 37,
//		OLECMDID_PROPERTYBAG2 = 38,
//		OLECMDID_PREREFRESH = 39,
//		OLECMDID_SHOWSCRIPTERROR = 40,
//		OLECMDID_SHOWMESSAGE = 41,
//		OLECMDID_SHOWFIND = 42,
//		OLECMDID_SHOWPAGESETUP = 43,
//		OLECMDID_SHOWPRINT = 44,
//		OLECMDID_CLOSE = 45,
//		OLECMDID_ALLOWUILESSSAVEAS = 46,
//		OLECMDID_DONTDOWNLOADCSS = 47,
//	}
//	public enum OLECMDF
//	{
//		OLECMDF_SUPPORTED = 1,
//		OLECMDF_ENABLED = 2,
//		OLECMDF_LATCHED = 4,
//		OLECMDF_NINCHED = 8,
//		OLECMDF_INVISIBLE = 16,
//		OLECMDF_DEFHIDEONCTXTMENU = 32,
//	}
//	public enum OLECMDEXECOPT
//	{
//		OLECMDEXECOPT_DODEFAULT = 0,
//		OLECMDEXECOPT_PROMPTUSER = 1,
//		OLECMDEXECOPT_DONTPROMPTUSER = 2,
//		OLECMDEXECOPT_SHOWHELP = 3,
//	}
//	public enum tagREADYSTATE
//	{
//		READYSTATE_UNINITIALIZED = 0,
//		READYSTATE_LOADING = 1,
//		READYSTATE_LOADED = 2,
//		READYSTATE_INTERACTIVE = 3,
//		READYSTATE_COMPLETE = 4,
//	}
//	
//	[System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIDispatch)]
//	[System.Runtime.InteropServices.GuidAttribute("34A715A0-6587-11D0-924A-0020AFC7AC4D")]
//	[System.Runtime.InteropServices.TypeLibTypeAttribute(4112)]
//	public interface DWebBrowserEvents2
//	{
//		[System.Runtime.InteropServices.DispIdAttribute(260)]
//		void OnTheaterMode(bool TheaterMode);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(258)]
//		void OnFullScreen(bool FullScreen);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(257)]
//		void OnStatusBar(bool StatusBar);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(256)]
//		void OnMenuBar(bool MenuBar);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(255)]
//		void OnToolBar(bool ToolBar);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(254)]
//		void OnVisible(bool Visible);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(253)]
//		void OnQuit();
//		
//		[System.Runtime.InteropServices.DispIdAttribute(259)]
//		void DocumentComplete(object pDisp, ref object URL);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(252)]
//		void NavigateComplete2(object pDisp, ref object URL);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(251)]
//		void NewWindow2(ref object ppDisp, ref bool Cancel);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(250)]
//		void BeforeNavigate2(object pDisp, ref object URL, ref object Flags, ref object TargetFrameName, ref object PostData, ref object Headers, ref bool Cancel);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(112)]
//		void PropertyChange(string szProperty);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(113)]
//		void TitleChange(string Text);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(104)]
//		void DownloadComplete();
//		
//		[System.Runtime.InteropServices.DispIdAttribute(106)]
//		void DownloadBegin();
//		
//		[System.Runtime.InteropServices.DispIdAttribute(105)]
//		void CommandStateChange(int Command, bool Enable);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(108)]
//		void ProgressChange(int Progress, int ProgressMax);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(102)]
//		void StatusTextChange(string Text);
//		
//	}
//	
//	[System.Runtime.InteropServices.TypeLibTypeAttribute(4176)]
//	[System.Reflection.DefaultMemberAttribute("Name")]
//	[System.Runtime.InteropServices.GuidAttribute("0002DF05-0000-0000-C000-000000000046")]
//	public interface IWebBrowserApp : SHDocVw.IWebBrowser
//	{
//		[System.Runtime.InteropServices.DispIdAttribute(303)]
//		object GetProperty(string Property);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(302)]
//		void PutProperty(string Property, object vtValue);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(301)]
//		void ClientToWindow(ref int pcx, ref int pcy);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(300)]
//		void Quit();
//		
//		[System.Runtime.InteropServices.DispIdAttribute(0)]
//		string Name {
//			get;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(-515)]
//		int HWND {
//			get;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(400)]
//		string FullName {
//			get;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(401)]
//		string Path {
//			get;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(402)]
//		bool Visible {
//			get;
//			set;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(403)]
//		bool StatusBar {
//			get;
//			set;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(404)]
//		string StatusText {
//			get;
//			set;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(405)]
//		int ToolBar {
//			get;
//			set;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(406)]
//		bool MenuBar {
//			get;
//			set;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(407)]
//		bool FullScreen {
//			get;
//			set;
//		}
//		
//	}
//	[System.Runtime.InteropServices.TypeLibTypeAttribute(4176)]
//	[System.Runtime.InteropServices.GuidAttribute("EAB22AC1-30C1-11CF-A7EB-0000C05BAE0B")]
//	public interface IWebBrowser
//	{
//		[System.Runtime.InteropServices.DispIdAttribute(106)]
//		void Stop();
//		
//		[System.Runtime.InteropServices.DispIdAttribute(105)]
//		void Refresh2(ref object Level);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(-550)]
//		void Refresh();
//		
//		[System.Runtime.InteropServices.DispIdAttribute(104)]
//		void Navigate(string URL, ref object Flags, ref object TargetFrameName, ref object PostData, ref object Headers);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(103)]
//		void GoSearch();
//		
//		[System.Runtime.InteropServices.DispIdAttribute(102)]
//		void GoHome();
//		
//		[System.Runtime.InteropServices.DispIdAttribute(101)]
//		void GoForward();
//		
//		[System.Runtime.InteropServices.DispIdAttribute(100)]
//		void GoBack();
//		
//		[System.Runtime.InteropServices.DispIdAttribute(200)]
//		object Application {
//			get;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(201)]
//		object Parent {
//			get;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(202)]
//		object Container {
//			get;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(203)]
//		object Document {
//			get;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(204)]
//		bool TopLevelContainer {
//			get;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(205)]
//		string Type {
//			get;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(206)]
//		int Left {
//			get;
//			set;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(207)]
//		int Top {
//			get;
//			set;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(208)]
//		int Width {
//			get;
//			set;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(209)]
//		int Height {
//			get;
//			set;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(210)]
//		string LocationName {
//			get;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(211)]
//		string LocationURL {
//			get;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(212)]
//		bool Busy {
//			get;
//		}
//		
//	}
//	[System.Runtime.InteropServices.TypeLibTypeAttribute(4176)]
//	[System.Reflection.DefaultMemberAttribute("Name")]
//	[System.Runtime.InteropServices.GuidAttribute("D30C1661-CDAF-11D0-8A3E-00C04FC9E26E")]
//	public interface IWebBrowser2 : SHDocVw.IWebBrowserApp, SHDocVw.IWebBrowser
//	{
//		[System.Runtime.InteropServices.DispIdAttribute(503)]
//		void ShowBrowserBar(ref object pvaClsid, ref object pvarShow, ref object pvarSize);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(502)]
//		void ExecWB(SHDocVw.OLECMDID cmdID, SHDocVw.OLECMDEXECOPT cmdexecopt, ref object pvaIn, ref object pvaOut);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(501)]
//		SHDocVw.OLECMDF QueryStatusWB(SHDocVw.OLECMDID cmdID);
//		
//		[System.Runtime.InteropServices.DispIdAttribute(500)]
//		void Navigate2(ref object URL, ref object Flags, ref object TargetFrameName, ref object PostData, ref object Headers);
//		
//		
//		[System.Runtime.InteropServices.DispIdAttribute(-525)]
//		SHDocVw.tagREADYSTATE ReadyState {
//			get;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(550)]
//		bool Offline {
//			get;
//			set;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(551)]
//		bool Silent {
//			get;
//			set;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(552)]
//		bool RegisterAsBrowser {
//			get;
//			set;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(553)]
//		bool RegisterAsDropTarget {
//			get;
//			set;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(554)]
//		bool TheaterMode {
//			get;
//			set;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(555)]
//		bool AddressBar {
//			get;
//			set;
//		}
//		
//		[System.Runtime.InteropServices.DispIdAttribute(556)]
//		bool Resizable {
//			get;
//			set;
//		}
//		
//	}
//}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -