本文整理汇总了C++中IEView::getHWND方法的典型用法代码示例。如果您正苦于以下问题:C++ IEView::getHWND方法的具体用法?C++ IEView::getHWND怎么用?C++ IEView::getHWND使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IEView
的用法示例。
在下文中一共展示了IEView::getHWND方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: HandleIEWindow
int HandleIEWindow(WPARAM wParam, LPARAM lParam) {
IEVIEWWINDOW *window = (IEVIEWWINDOW *) lParam;
IEView::init();
Options::init();
if (window->iType == IEW_CREATE) {
HTMLBuilder *builder;
if (Options::getTemplatesFlags() & Options::TEMPLATES_ENABLED) {
builder = new TemplateHTMLBuilder();
} else {
if (window->dwMode == IEWM_TABSRMM) {
builder = new TabSRMMHTMLBuilder();
} else if (window->dwMode == IEWM_SCRIVER) {
builder = new ScriverHTMLBuilder();
} else {
builder = new SRMMHTMLBuilder();
}
}
IEView * view = new IEView(window->parent, builder, window->x, window->y, window->cx, window->cy);
window->hwnd = view->getHWND();
} else if (window->iType == IEW_SETPOS) {
IEView * view = IEView::get(window->hwnd);
if (view!=NULL) {
view->setWindowPos(window->x, window->y, window->cx,window->cy);
}
} else if (window->iType == IEW_DESTROY) {
IEView * view = IEView::get(window->hwnd);
if (view!=NULL) {
delete view;
}
}
return 0;
}
示例2: HandleIEWindow
INT_PTR HandleIEWindow(WPARAM, LPARAM lParam)
{
IEVIEWWINDOW *window = (IEVIEWWINDOW *)lParam;
Options::init();
if (window->iType == IEW_CREATE) {
HTMLBuilder *builder = NULL;
switch (window->dwMode) {
case IEWM_MUCC:
builder = new MUCCHTMLBuilder();
break;
case IEWM_CHAT:
builder = new ChatHTMLBuilder();
break;
case IEWM_TABSRMM:
builder = new TabSRMMHTMLBuilder();
break;
case IEWM_SCRIVER:
builder = new ScriverHTMLBuilder();
break;
case IEWM_HISTORY:
builder = new HistoryHTMLBuilder();
break;
case IEWM_BROWSER:
builder = NULL;
break;
default:
builder = new ScriverHTMLBuilder();
break;
}
IEView *view = new IEView(window->parent, builder, window->x, window->y, window->cx, window->cy);
window->hwnd = view->getHWND();
}
else if (window->iType == IEW_SETPOS) {
IEView *view = IEView::get(window->hwnd);
if (view != NULL)
view->setWindowPos(window->x, window->y, window->cx, window->cy);
}
else if (window->iType == IEW_SCROLLBOTTOM) {
IEView *view = IEView::get(window->hwnd);
if (view != NULL)
view->scrollToBottom();
}
else if (window->iType == IEW_DESTROY) {
IEView *view = IEView::get(window->hwnd);
if (view != NULL)
delete view;
}
return 0;
}