Demo/Form_Transparent.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Kyozy.MiniblinkNet;
using System.IO;
using System.Runtime.InteropServices;
namespace Demo
{
public partial class Form_Transparent : Form
{
private MemoryFileSystem m_mfs;
private WebView m_webView;
[DllImport("user32.dll", EntryPoint = "SendMessageW")]
private static extern IntPtr SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
[DllImport("user32.dll", EntryPoint = "PostMessageW")]
private static extern void PostMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
[DllImport("user32.dll", EntryPoint = "ReleaseCapture")]
private static extern int ReleaseCapture();
public Form_Transparent()
{
m_webView = new WebView();
//m_mfs = new MemoryFileSystem();
InitializeComponent();
}
private void Form_Transparent_Load(object sender, EventArgs e)
{
m_webView.Bind(this, true);
m_webView.OnLoadUrlBegin += new EventHandler<LoadUrlBeginEventArgs>(m_webView_OnLoadUrlBegin);
//不再使用这个老接口,采样上面的 OnLoadUrlBegin 事件
//m_mfs.OnDataLoaded += new EventHandler<DataLoadedEventArgs>(m_mfs_OnDataLoaded);
//WebView.SetFileSystem(m_mfs);
JsValue.BindFunction("JsCallExit", new wkeJsNativeFunction(JsCallExit), 0);
m_webView.LoadFile("main.htm");
}
void m_webView_OnLoadUrlBegin(object sender, LoadUrlBeginEventArgs e)
{
string name = Path.GetFileName(e.URL);
switch (name)
{
case "main.htm":
{
后面还有 90 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。