/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
if (fEsc) {
mUserCancelled = true; return DRAGDROP_S_CANCEL;
}
if (!(grfKeyState & MK_LBUTTON) || (grfKeyState & MK_RBUTTON)) return DRAGDROP_S_DROP;
return S_OK;
}
STDMETHODIMP
nsNativeDragSource::GiveFeedback(DWORD dwEffect) { // For drags involving tabs, we do some custom work with cursors. if (mDataTransfer) {
nsAutoString cursor;
mDataTransfer->GetMozCursor(cursor); if (cursor.EqualsLiteral("default")) {
m_hCursor = ::LoadCursor(0, IDC_ARROW);
} else {
m_hCursor = nullptr;
}
}
if (m_hCursor) {
::SetCursor(m_hCursor); return S_OK;
}
// Let the system choose which cursor to apply. return DRAGDROP_S_USEDEFAULTCURSORS;
}
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.