In the touch screen, I will send an analog to right-click message, in other programs, such as VC, ACDSEE, but there is no corresponding correspondence in Word, PowerPoint, the original code,
if (LEFT == m_MouseBtn) m_input.mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_LEFTDOWN; if (RIGHT == m_MouseBtn) m_input.mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_RIGHTDOWN; m_input.mi.dx = ((resultPt.x << 16) m_sizescreen.cx-1) /m_sizescreen.cx; m_input.mi.dy = (Resultpt.y << 16) m_sizescreen.cy-1) /m_sizescreen.cy; m_input.mi.dwextrainfo = getMessageExtrainfo (); sendInput 1, & m_INPUT, SIZEOF (INPUT);
if (LEFT == m_MouseBtn) m_input.mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_LEFTUP; // | MOUSEEVENTF_VIRTUALDESK if (RIGHT == m_MouseBtn) {m_input.mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_RIGHTUP; // | MOUSEEVENTF_VIRTUALDESK m_MouseBtn = LEFT;} m_input. Mi.dx = ((Resultpt.x << 16) m_sizescreen.cx-1) /m_sizescreen.cx; m_input.mi.dy = ((Resultpt.Y << 16) m_sizescreen.cy-1) / m_sizescreen. Cy; m_input.mi.dwextrainfo = getMessageextrainfo (); sendInput (1, & m_input, sizeof (input)); this call me very confused, should not be the touch screen right message is not sent, other programs have indeed received, check MSDN I didn't find the relevant, I tried to send more news once, it is changed.
if (LEFT == m_MouseBtn) m_input.mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_LEFTDOWN; if (RIGHT == m_MouseBtn) m_input.mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_RIGHTDOWN; m_input.mi.dx = ((resultPt.x << 16) m_sizescreen.cx-1) /m_sizescreen.cx; m_input.mi.dy = (Resultpt.y << 16) m_sizescreen.cy-1) /m_sizescreen.cy; m_input.mi.dwextrainfo = getMessageExtrainfo (); sendInput 1, & m_INPUT, SIZEOF (Input); if (m_input.mi.dwflags & mouseeventf_rightdown) Sendinput (1, & M_INPUT, SIZEOF (INPUT)); more than two lines, UP is also like this, this, test Office in touch screen No problem, although solved the problem, but always feel guilty, have questions 1, office needs to receive two right-click messages?
2, if it is, it is necessary to download DOWN, UP, or only two times UP can be,?
People who are familiar with this knowledge can give an explanation,