static bool OnLogoButtonEvent(void* event) { if( ((TEventUI*)event)->Type == UIEVENT_BUTTONDOWN ) { CControlUI* pButton = ((TEventUI*)event)->pSender; if( pButton != NULL ) { CListContainerElementUI* pListElement = (CListContainerElementUI*)(pButton->GetTag()); if( pListElement != NULL ) pListElement->DoEvent(*(TEventUI*)event); } } return true; }
static bool OnLogoButtonEvent(void* event) { if (((TEventUI*)event)->Type == UIEVENT_BUTTONDOWN) { CControlUI* pButton = ((TEventUI*)event)->pSender; if (pButton != NULL) { CListContainerElementUI* pListElement = (CListContainerElementUI*)(pButton->GetTag()); if (pListElement != NULL) { pListElement->DoEvent(*(TEventUI*)event); std::string sid = util::cStringToString(CString(pListElement->GetUserData())); if (!sid.empty()) { //show the detail window. module::getSysConfigModule()->asynNotifyObserver(module::KEY_SYSCONFIG_SHOW_USERDETAILDIALOG, sid); } } } } return true; }
static bool OnButtonEvent(void* event) { if (((TEventUI*)event)->Type == UIEVENT_BUTTONDOWN) { CControlUI* pButton = ((TEventUI*)event)->pSender; if (pButton != NULL) { CListContainerElementUI* pListElement = (CListContainerElementUI*)(pButton->GetTag()); if (pButton->GetName() == kcreatGroupControlName) { //创建讨论组 std::string sid; module::getGroupListModule()->onCreateDiscussionGrpDialog(sid); } else { if (pListElement != NULL) pListElement->DoEvent(*(TEventUI*)event); } } } return true; }