void CPcWindowBase::DragDropL(const TPointerEvent &pointer,const TTime &) { #if defined(LOGGING) _LIT(KLog,"CPcWindowBase::DragDropL Type=%d State=%d SubState=%d"); iTest->LOG_MESSAGE4(KLog,pointer.iType,iTest->State(),iTest->SubState()); #endif switch(iTest->State()) { case ENormalCaptureWithoutFocus: if (iTest->SubState()==0) break; case ECaptureDisabled: case ENormalCapture: case ECaptureAllGroups: iTest->TestFailed(); break; } if (pointer.iType==TPointerEvent::EButton1Down && !iTest->iFailed) { if (DragDrop()==EFailed) iTest->TestFailed(); else iTest->GotDDL(); } }
static MRESULT EXPENTRY pm_vsid_dragndrop(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) { switch (msg) { case DM_DRAGOVER: case DM_DROP: return DragDrop(hwnd, msg, mp1); } return WinDefDlgProc (hwnd, msg, mp1, mp2); }