다음을 통해 공유


_IManipulationEvents::ManipulationStarted 메서드(manipulations.h)

조작 또는 관성 시작 시 이벤트를 처리합니다.

구문

HRESULT ManipulationStarted(
  [in] FLOAT x,
  [in] FLOAT y
);

매개 변수

[in] x

사용자 정의 좌표의 원본 x 좌표입니다.

[in] y

사용자 정의 좌표의 원본 y 좌표입니다.

반환 값

메서드가 성공하면 S_OK가 반환되고, 실패하면 HRESULT 오류 코드를 반환합니다.

설명

조작 이벤트는 IInertiaProcessorIManipulationProcessor 인터페이스 모두에 대해 생성됩니다. ProcessDown 호출에서 TOUCHINPUT 구조체의 값을 사용하는 경우 좌표는 수백 픽셀로 표시됩니다.

예제

다음 코드는 ManipulationStarted 메서드의 구현을 보여줍니다.


HRESULT STDMETHODCALLTYPE CManipulationEventSink::ManipulationStarted( 
    /* [in] */ FLOAT x,
    /* [in] */ FLOAT y)
{
    m_cStartedEventCount ++;

    // place your code handler here to do any operations based on the manipulation

    return S_OK;
}
    
    

요구 사항

   
지원되는 최소 클라이언트 Windows 7 [데스크톱 앱만 해당]
지원되는 최소 서버 Windows Server 2008 R2 [데스크톱 앱만 해당]
대상 플랫폼 Windows
헤더 manipulations.h(Manipulations.h 포함)

참고 항목

관리되지 않는 코드에 조작 지원 추가

비관리 코드에서 관성 처리

메서드

_IManipulationEvents