inline HRESULT __stdcall ISimpleDropTarget::DragOver(DWORD grfKeyState, POINTL ptl, DWORD * pdwEffect) { POINT pt; pt.x = ptl.x; pt.y = ptl.y; if (m_pdth && PrevFancyRenderer) { m_pdth->DragOver(&pt, *pdwEffect); } bool canDrop = m_RightData && AllowDrop(ptl); if (canDrop) { *pdwEffect = OnDragOver(grfKeyState, ptl); } if (m_DataObject && m_pdth) { m_pdth->Show(canDrop); } if (!canDrop) { *pdwEffect = DROPEFFECT_NONE; } return S_OK; }
wxDragResult DnDJigsawShapeDropTarget::OnEnter(wxCoord x, wxCoord y, wxDragResult def) { /*if((m_pOwner->GetView() != NULL) && m_pOwner->GetDragImage()) { m_pOwner->GetDragImage()->Show(); }*/ return OnDragOver(x, y, def); }
wxDragResult MMessagesDropTargetBase::OnEnter(wxCoord x, wxCoord y, wxDragResult def) { if ( GetFrame() ) { wxLogStatus(GetFrame(), _("You can drop mail messages here.")); } return OnDragOver(x, y, def); }
HRESULT DropTarget::DragOver(DWORD key_state, POINTL cursor_position, DWORD* effect) { // Tell the helper that we moved over it so it can update the drag image. IDropTargetHelper* drop_helper = DropHelper(); if (drop_helper) drop_helper->DragOver(reinterpret_cast<POINT*>(&cursor_position), *effect); if (suspended_) { *effect = DROPEFFECT_NONE; return S_OK; } POINT screen_pt = { cursor_position.x, cursor_position.y }; *effect = OnDragOver(current_data_object_, key_state, screen_pt, *effect); return S_OK; }
DROPEFFECT CArtOleDropTarget::OnDragEnter(CWnd* pWnd, COleDataObject* pDataObject, DWORD dwKeyState, CPoint point) { #ifdef _DEBUG pDataObject->BeginEnumFormats(); FORMATETC fmt; while (pDataObject->GetNextFormat(&fmt)) { if (fmt.cfFormat >= 0xc000) { char buffer[80]; GetClipboardFormatName(fmt.cfFormat, buffer, sizeof(buffer)); TRACE2("Format '%s' (%u)\n", buffer, fmt.cfFormat); } else { TRACE1("Format (%u)\n", fmt.cfFormat); } } #endif // _DEBUG return OnDragOver(pWnd, pDataObject, dwKeyState, point); }
wxDragResult NassiDropTarget::OnEnter(wxCoord x, wxCoord y, wxDragResult def) { m_window->OnDragEnter(); return OnDragOver(x, y, def); }
virtual wxDragResult OnEnter(wxCoord x, wxCoord y, wxDragResult def) { return OnDragOver(x, y, def); }
virtual wxDragResult OnEnter(wxCoord x, wxCoord y, wxDragResult def) { def = CScrollableDropTarget<wxTreeCtrlEx>::OnEnter(x, y, def); return OnDragOver(x, y, def); }
virtual wxDragResult OnEnter(wxCoord x, wxCoord y, wxDragResult def) { CListCtrlDropTarget::OnEnter(x, y, def); return OnDragOver(x, y, def); }
bool UUserWidget::NativeOnDragOver( const FGeometry& InGeometry, const FDragDropEvent& InDragDropEvent, UDragDropOperation* InOperation ) { return OnDragOver( InGeometry, InDragDropEvent, InOperation ); }