void SessionLayout::DocmentComplete(IDispatch *pDisp, VARIANT *&url) { logic::GetLogic()->asynFireUIEventWithLambda( [=]() { if (!_DisplayUnreadMsg()) { _DisplayHistoryMsgToIE(20,TRUE); } } ); }
void SessionLayout::_LoadFirstOpenedMsg(void) { LOG__(APP, _T("load historyMsg or UnreadMsg! sid:%s"), util::stringToCString(m_sId)); module::getEventManager()->asynFireUIEventWithLambda( [=]() { if (!_DisplayUnreadMsg()) { _DisplayHistoryMsgToIE(FETCH_MSG_COUNT_PERTIME, TRUE); } //滚动条滚动到最底 CComVariant result; m_pWebBrowser->CallJScript(_T("scrollBottom"), _T(""), &result); } ); }
void SessionLayout::UpdateRunTimeMsg() { _DisplayUnreadMsg(); }