当前位置: 首页>>代码示例>>C++>>正文


C++ IEView类代码示例

本文整理汇总了C++中IEView的典型用法代码示例。如果您正苦于以下问题:C++ IEView类的具体用法?C++ IEView怎么用?C++ IEView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了IEView类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: IEViewServerWindowProcedure

static LRESULT CALLBACK IEViewServerWindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) {
    IEView *view = IEView::get(GetParent(GetParent(hwnd)));
	if (view != NULL) {
		switch (message) {
		case WM_KEYDOWN:
			view->translateAccelerator(message, wParam, lParam);
		   	break;
		case WM_SETFOCUS:
			if (view->setFocus((HWND)wParam)) {
				return TRUE;
			}
			break;
		case WM_LBUTTONDOWN:
		    POINT pt;
		    pt.x = LOWORD(lParam);
		    pt.y = HIWORD(lParam);
	   		if (view->mouseClick(pt)) {
	   		    return TRUE;
       		}
		    break;
		}
		return CallWindowProc(view->getUserWndProc(), hwnd, message, wParam, lParam);
    }
    return DefWindowProc (hwnd, message, wParam, lParam);
}
开发者ID:BackupTheBerlios,项目名称:mgoodies-svn,代码行数:25,代码来源:IEView.cpp

示例2: 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;
}
开发者ID:BackupTheBerlios,项目名称:mgoodies-svn,代码行数:32,代码来源:ieview_services.cpp

示例3: HandleIENavigate

INT_PTR HandleIENavigate(WPARAM, LPARAM lParam)
{
	IEVIEWNAVIGATE *navigate = (IEVIEWNAVIGATE *)lParam;
	Options::init();
	IEView *view = IEView::get(navigate->hwnd);
	if (view != NULL) {
		if (navigate->iType == IEN_NAVIGATE) {
			view->navigate(navigate);
		}
	}
	return 0;
}
开发者ID:Seldom,项目名称:miranda-ng,代码行数:12,代码来源:ieview_services.cpp

示例4: IEViewWindowProcedure

static LRESULT CALLBACK IEViewWindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) {
   	IEView *view = IEView::get(hwnd);
   	if (view!=NULL) {
		WNDPROC oldWndProc = view->getUserWndProc();
    	if (message == WM_PARENTNOTIFY && wParam == WM_CREATE) {
			SetWindowLong(hwnd, GWL_WNDPROC, (LONG) oldWndProc);
			view->setUserWndProc((WNDPROC) SetWindowLong((HWND)lParam, GWL_WNDPROC, (LONG) IEViewDocWindowProcedure));
		}
		return CallWindowProc(oldWndProc, hwnd, message, wParam, lParam);
    }
    return DefWindowProc (hwnd, message, wParam, lParam);
}
开发者ID:BackupTheBerlios,项目名称:mgoodies-svn,代码行数:12,代码来源:IEView.cpp

示例5: HandleIEEvent

int HandleIEEvent(WPARAM wParam, LPARAM lParam) {
	IEVIEWEVENT *event = (IEVIEWEVENT *) lParam;
	IEView * view = IEView::get(event->hwnd);
	IEView::init();
	Options::init();
	if (view != NULL) {
		if (event->iType == IEE_LOG_EVENTS) {
			view->appendEvent(event);
		} else if (event->iType == IEE_CLEAR_LOG) {
			view->clear(event);
		} else if (event->iType == IEE_GET_SELECTION) {
			return (int)view->getSelection(event);
		} else if (event->iType == IEE_SAVE_DOCUMENT) {
			view->saveDocument();
		}
	}
	return 0;
}
开发者ID:BackupTheBerlios,项目名称:mgoodies-svn,代码行数:18,代码来源:ieview_services.cpp

示例6: 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;
}
开发者ID:Seldom,项目名称:miranda-ng,代码行数:49,代码来源:ieview_services.cpp

示例7: HandleIEEvent

INT_PTR HandleIEEvent(WPARAM, LPARAM lParam)
{
	IEVIEWEVENT *event = (IEVIEWEVENT *)lParam;
	Options::init();
	IEView *view = IEView::get(event->hwnd);
	if (view != NULL) {
		if (event->iType == IEE_LOG_DB_EVENTS)
			view->appendEventOld(event);
		else if (event->iType == IEE_CLEAR_LOG)
			view->clear(event);
		else if (event->iType == IEE_GET_SELECTION)
			return (INT_PTR)view->getSelection(event);
		else if (event->iType == IEE_SAVE_DOCUMENT)
			view->saveDocument();
		else if (event->iType == IEE_LOG_MEM_EVENTS)
			view->appendEvent(event);
	}
	return 0;
}
开发者ID:Seldom,项目名称:miranda-ng,代码行数:19,代码来源:ieview_services.cpp

示例8: StartThread

static void __cdecl StartThread(void *vptr)
{
	IEView *iev = (IEView *) vptr;
	iev->waitWhileBusy();
	return;
}
开发者ID:kmdtukl,项目名称:miranda-ng,代码行数:6,代码来源:IEView.cpp


注:本文中的IEView类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。