API 浏览器






2.45/5 (11投票s)
Jan 13, 2005

38182

1668
一个 Windows API 浏览器,显示所有 API 方法的定义和帮助。
引言
这篇文章只是一个基本示例,展示了如何创建一个使用 Microsoft Web Browser 控件的程序,同时也是一个有用的 API 浏览器的发布。
使用代码
// // basic source //
private System.Windows.Forms.ListBox Functions_listBox;
public AxSHDocVw.AxWebBrowser WebBrowser1;
/// /// The main entry point for the application. ///
[STAThread]
static void Main()
{
Application.Run(new APIBrowser());
}
public static object nullObject = 0;
public static string str = "";
public static object nullObjStr = str;
private void Functions_listBox_SelectedIndexChanged(object sender,
System.EventArgs e)
{
WebBrowser1.Navigate("http://custom.programming-in.net/" +
"articles/art9-1.asp?f=" +
Functions_listBox.SelectedItem.ToString(),
ref nullObject, ref nullObjStr,
ref nullObjStr, ref nullObjStr);
}
private void Functions_listBox_DoubleClick(object
sender, System.EventArgs e)
{
WebBrowser1.Navigate("http://www.google.com/search?hl=en&q=" +
Functions_listBox.SelectedItem.ToString() +
"&btnG=Google+Search", ref nullObject,
ref nullObjStr, ref nullObjStr, ref nullObjStr);
}
private void Form1_Resize(object sender, System.EventArgs e)
{
Functions_listBox.Width = 264;
WebBrowser1.Width = this.Width - Functions_listBox.Width - 5;
}
关注点
我了解到 Web Browser 控件可以用于链接到本地计算机上没有的帮助文档。