| 676 | } |
| 677 | |
| 678 | void 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 | |
| 713 | void CControlUI::SetVirtualWnd(LPCTSTR pstrValue) |
nothing calls this directly
no test coverage detected