Bagikan melalui


Metode IRealTimeStylus3::get_MultiTouchEnabled (rtscom.h)

Menunjukkan apakah objek IRealTimeStylus3 mengaktifkan input multitouch.

Properti ini bersifat baca/tulis.

Sintaks

HRESULT get_MultiTouchEnabled(
  BOOL *pfEnable
);

Parameter

pfEnable

Menampilkan nilai

Tidak ada

Keterangan

Tabel berikut mencantumkan opsi keikutsertaan yang ditentukan untuk multitouch.

Nama Deskripsi Nilai
TABLET_ENABLE_MULTITOUCHDATA Menunjukkan keikutsertaan untuk data multitouch. 0x01000000
 

Contoh

Contoh berikut menunjukkan cara mengaktifkan multitouch menggunakan antarmuka RealTimeStylus3 .


CComQIPtr<IRealTimeStylus3> spRealTimeStylus3 = g_spRealTimeStylus;
if(spRealTimeStylus3 == NULL)
{
    return FALSE;
}
HRESULT hr = spRealTimeStylus3->put_MultiTouchEnabled(TRUE);
if(FAILED(hr))
{
    return FALSE;
}

Contoh berikut menunjukkan cara mengatur properti TABLET_ENABLE_MULTITOUCHDATA secara eksplisit di jendela.

    
    //Set the window property
    ATOM m_atom = ::GlobalAddAtom(MICROSOFT_TABLETPENSERVICE_PROPERTY);
    m_dwProperty = TABLET_ENABLE_MULTITOUCHDATA;
    ::SetProp(m_hwnd, (LPTSTR)m_atomPenService, (HANDLE)m_dwProperty);
     
    //A Window Property takes effect on the down action of the 1st finger.

    //process the LRESULT from WinProc:

    //A custom LRESULT CALLBACK
    GestureTest::WindowProcedure(      
      HWND hwnd,
      UINT uMsg,
      WPARAM wParam,
      LPARAM lParam)
    {
    case WM_TABLET_QUERYSYSTEMGESTURESTATUS:
        return TABLET_ENABLE_MULTITOUCHDATA;
    }    

Persyaratan

   
Klien minimum yang didukung Windows 7 [hanya aplikasi desktop]
Server minimum yang didukung Windows Server 2008 R2 [hanya aplikasi desktop]
Target Platform Windows
Header rtscom.h

Lihat juga

IRealTimeStylus3