LibUIDK Documentation
ContentsIndexHome
PreviousUpNext
CHtmlCtrl::Create Method
C++
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);

创建一个WebBowser控件, 并把它attache到CHtmlCtrl对象上.

Parameters 
Description 
LPCTSTR lpszClassName 
指定Html控件类名, 这里需设置为NULL. 
LPCTSTR lpszWindowName 
指定Html控件窗口名. 
DWORD dwStyle 
指定Html控件风格 
const RECT& rect 
指定Html控件的位置和大小. 
CWnd* pParentWnd 
指定Html控件的父窗口, 不能为NULL. 
UINT nID 
指定Html控件的ID. 
CCreateContext* pContext = NULL 
一个CCreateContext类指针, 默认为NULL. 

如果创建成功, 返回非0值, 否则返回0.

此函数仅在Visual C++6.0中使用LibUIDK有效. Visual C++6.0以上版本的调用基类CHtmlView::Create. LibUIDK在CHtmlCtrl::Create中加入了对一些功能初始化的代码, 但这些功能在Visual C++6.0以上的编译的CHtmlView中已内置.