本文整理汇总了C#中HHTMLBrowser类的典型用法代码示例。如果您正苦于以下问题:C# HHTMLBrowser类的具体用法?C# HHTMLBrowser怎么用?C# HHTMLBrowser使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HHTMLBrowser类属于命名空间,在下文中一共展示了HHTMLBrowser类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadURL
/// <summary>
/// <para> Navigate to this URL, results in a HTML_StartRequest_t as the request commences</para>
/// </summary>
public static void LoadURL(HHTMLBrowser unBrowserHandle, string pchURL, string pchPostData) {
InteropHelp.TestIfAvailableClient();
using (var pchURL2 = new InteropHelp.UTF8StringHandle(pchURL))
using (var pchPostData2 = new InteropHelp.UTF8StringHandle(pchPostData)) {
NativeMethods.ISteamHTMLSurface_LoadURL(unBrowserHandle, pchURL2, pchPostData2);
}
}
示例2: Find
public static void Find(HHTMLBrowser unBrowserHandle, string pchSearchStr, bool bCurrentlyInFind, bool bReverse)
{
InteropHelp.TestIfAvailableClient();
using (InteropHelp.UTF8StringHandle uTF8StringHandle = new InteropHelp.UTF8StringHandle(pchSearchStr))
{
NativeMethods.ISteamHTMLSurface_Find(unBrowserHandle, uTF8StringHandle, bCurrentlyInFind, bReverse);
}
}
示例3: ExecuteJavascript
public static void ExecuteJavascript(HHTMLBrowser unBrowserHandle, string pchScript)
{
InteropHelp.TestIfAvailableClient();
using (InteropHelp.UTF8StringHandle uTF8StringHandle = new InteropHelp.UTF8StringHandle(pchScript))
{
NativeMethods.ISteamHTMLSurface_ExecuteJavascript(unBrowserHandle, uTF8StringHandle);
}
}
示例4: AddHeader
public static void AddHeader(HHTMLBrowser unBrowserHandle, string pchKey, string pchValue)
{
InteropHelp.TestIfAvailableClient();
using (InteropHelp.UTF8StringHandle uTF8StringHandle = new InteropHelp.UTF8StringHandle(pchKey))
{
using (InteropHelp.UTF8StringHandle uTF8StringHandle2 = new InteropHelp.UTF8StringHandle(pchValue))
{
NativeMethods.ISteamHTMLSurface_AddHeader(unBrowserHandle, uTF8StringHandle, uTF8StringHandle2);
}
}
}
示例5: SetPageScaleFactor
public static void SetPageScaleFactor(HHTMLBrowser unBrowserHandle, float flZoom, int nPointX, int nPointY)
{
InteropHelp.TestIfAvailableClient();
NativeMethods.ISteamHTMLSurface_SetPageScaleFactor(unBrowserHandle, flZoom, nPointX, nPointY);
}
示例6: AllowStartRequest
public static void AllowStartRequest(HHTMLBrowser unBrowserHandle, bool bAllowed)
{
InteropHelp.TestIfAvailableClient();
NativeMethods.ISteamHTMLSurface_AllowStartRequest(unBrowserHandle, bAllowed);
}
示例7: SetKeyFocus
public static void SetKeyFocus(HHTMLBrowser unBrowserHandle, bool bHasKeyFocus)
{
InteropHelp.TestIfAvailableClient();
NativeMethods.ISteamHTMLSurface_SetKeyFocus(unBrowserHandle, bHasKeyFocus);
}
示例8: GetLinkAtPosition
public static void GetLinkAtPosition(HHTMLBrowser unBrowserHandle, int x, int y)
{
InteropHelp.TestIfAvailableClient();
NativeMethods.ISteamHTMLSurface_GetLinkAtPosition(unBrowserHandle, x, y);
}
示例9: ISteamHTMLSurface_SetPageScaleFactor
public static extern void ISteamHTMLSurface_SetPageScaleFactor(HHTMLBrowser unBrowserHandle, float flZoom, int nPointX, int nPointY);
示例10: ViewSource
public static void ViewSource(HHTMLBrowser unBrowserHandle)
{
InteropHelp.TestIfAvailableClient();
NativeMethods.ISteamHTMLSurface_ViewSource(unBrowserHandle);
}
示例11: FileLoadDialogResponse
public static void FileLoadDialogResponse(HHTMLBrowser unBrowserHandle, IntPtr pchSelectedFiles)
{
InteropHelp.TestIfAvailableClient();
NativeMethods.ISteamHTMLSurface_FileLoadDialogResponse(unBrowserHandle, pchSelectedFiles);
}
示例12: KeyUp
public static void KeyUp(HHTMLBrowser unBrowserHandle, uint nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers)
{
InteropHelp.TestIfAvailableClient();
NativeMethods.ISteamHTMLSurface_KeyUp(unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers);
}
示例13: MouseMove
public static void MouseMove(HHTMLBrowser unBrowserHandle, int x, int y)
{
InteropHelp.TestIfAvailableClient();
NativeMethods.ISteamHTMLSurface_MouseMove(unBrowserHandle, x, y);
}
示例14: ISteamHTMLSurface_FileLoadDialogResponse
public static extern void ISteamHTMLSurface_FileLoadDialogResponse(HHTMLBrowser unBrowserHandle, IntPtr pchSelectedFiles);
示例15: KeyChar
public static void KeyChar(HHTMLBrowser unBrowserHandle, uint cUnicodeChar, EHTMLKeyModifiers eHTMLKeyModifiers)
{
InteropHelp.TestIfAvailableClient();
NativeMethods.ISteamHTMLSurface_KeyChar(unBrowserHandle, cUnicodeChar, eHTMLKeyModifiers);
}