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;
}
Beispiel #2
0
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;
}