virtual BOOL on_mouse(HELEMENT he, HELEMENT target, UINT event_type, POINT pt, UINT mouseButtons, UINT keyboardStates )
      {
        switch( event_type )
        {
          case MOUSE_MOVE: 
            {
              dom::element el = he;
              if( el.get_state(STATE_OWNS_POPUP) )
                return false;

              if( !IsInActiveWindow(el.get_element_hwnd(true)) )
                return false;

              UINT delay = el.get_attribute_int("delay", ::GetDoubleClickTime() + 10);
              el.start_timer(delay);
            }
            break;
          case MOUSE_LEAVE: 
            {
              dom::element el = he;
              el.stop_timer();            
              HTMLayoutHidePopup(el.find_first(":popup"));
            }
            break;
        }
        return false;
      }
Exemplo n.º 2
0
void CHTMLayoutCtrl::HidePopup(LPCSTR popup_id)
{
	HELEMENT h_popup = m_impl->GetElemById(popup_id);

	HTMLayoutHidePopup(h_popup);
}