0

I am working on directmanipulation with directcomposition in C++. It seems there are classes to achieve that for instance IDirectManipulationDragDropBehavior, but this class is an abstract class and for instance DCompositionAttachMouseDragToHwnd . I am however unable to fugure it out. Looking help from experts

Illuminati
  • 111
  • 7
  • 2
    Call [IDirectManipulationManager2::CreateBehavior](https://learn.microsoft.com/en-us/windows/win32/api/directmanipulation/nf-directmanipulation-idirectmanipulationmanager2-createbehavior) with [CLSID_DragDropConfigurationBehavior](https://learn.microsoft.com/en-us/windows/win32/directmanipulation/direct-manipulation-guids). – Raymond Chen Apr 13 '23 at 20:06
  • Thanks @RaymondChen. I tried that but since my application needs to have scroll and zoom i use ActivateConfiguration. Call to add behaviour fails in that case. What’s the right approach to support the two together? In directmanipulation.h i see lot of #defines likes parametricmotionbehavior but they are just macros defined – Illuminati Apr 14 '23 at 02:13
  • I don't know. I was just telling you how to get to IDirectManipulationDragDropBehavior, which was your question. – Raymond Chen Apr 14 '23 at 02:56

0 Answers0