易语言网页填表之miniblink内核初始化窗口类型接口:
wkeWebView wkeCreateWebWindow(wkeWindowType type, HWND parent, int x, int y, int width, int height)
创建一个带真实窗口的wkeWebView,type可取值为:
WKE_WINDOW_TYPE_POPUP为普通窗口。独立的窗口.
WKE_WINDOW_TYPE_TRANSPARENT为透明窗口,通过layer window实现。没有边框.
WKE_WINDOW_TYPE_CONTROL为嵌入在父窗口里的子窗口,需设置parent句柄。
wkeWindowType定义为:
typedef enum _wkeWindowType {
WKE_WINDOW_TYPE_POPUP,
WKE_WINDOW_TYPE_TRANSPARENT,
WKE_WINDOW_TYPE_CONTROL
} wkeWindowType;
wkeWebView wkeCreateWebCustomWindow(const wkeWindowCreateInfo* info)
创建一个带真实窗口的wkeWebView,wkeWindowCreateInfo定义为:
typedef struct _wkeWindowCreateInfo {
int size;
HWND parent;
DWORD style;
DWORD styleEx;
int x;
int y;
int width;
int height;
COLORREF color;
} wkeWindowCreateInfo;