MCPcopy Create free account
hub / github.com/cinience/RedisStudio / DoEvent

Method DoEvent

DuiLib/Core/UIControl.cpp:678–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676}
677
678void CControlUI::DoEvent(TEventUI& event)
679{
680 if( event.Type == UIEVENT_SETCURSOR )
681 {
682 ::SetCursor(::LoadCursor(NULL, MAKEINTRESOURCE(IDC_ARROW)));
683 return;
684 }
685 if( event.Type == UIEVENT_SETFOCUS )
686 {
687 m_bFocused = true;
688 Invalidate();
689 return;
690 }
691 if( event.Type == UIEVENT_KILLFOCUS )
692 {
693 m_bFocused = false;
694 Invalidate();
695 return;
696 }
697 if( event.Type == UIEVENT_TIMER )
698 {
699 m_pManager->SendNotify(this, DUI_MSGTYPE_TIMER, event.wParam, event.lParam);
700 return;
701 }
702 if( event.Type == UIEVENT_CONTEXTMENU )
703 {
704 if( IsContextMenuUsed() ) {
705 m_pManager->SendNotify(this, DUI_MSGTYPE_MENU, event.wParam, event.lParam);
706 return;
707 }
708 }
709 if( m_pParent != NULL ) m_pParent->DoEvent(event);
710}
711
712
713void CControlUI::SetVirtualWnd(LPCTSTR pstrValue)

Callers

nothing calls this directly

Calls 1

SendNotifyMethod · 0.80

Tested by

no test coverage detected