Toon posts:

Swap Mouse buttons in [c++]

Pagina: 1
Acties:
  • 57 views sinds 30-01-2008

Verwijderd

Topicstarter
Ik heb een probleem. Ik ben een programma aan het maken waarin de gebruiker de mogelijkheid krijgt om zijn mouse buttons om te draaien(voor de links handige :)).

Weet iemand op deze planeet hoe dat moet in (V)C++ moet?? In VB zijn er duizende voorbeelden te vinden, maar in VC++ hoomaars. Ik kan wel de registery setting "SwapMouseButtons" op 1 zetten, maar dat heeft geen real-time effect.

Please help me. Thnx

  • ^Mo^
  • Registratie: Januari 2001
  • Laatst online: 04-11-2025
uit de msdn:
SwapMouseButton
The SwapMouseButton function reverses or restores the meaning of the left and right mouse buttons.

BOOL SwapMouseButton(
BOOL fSwap // reverse or restore buttons
);

Parameters
fSwap
Specifies whether the mouse button meanings are reversed or restored. If this parameter is TRUE, the left button generates right-button messages and the right button generates left-button messages. If this parameter is FALSE, the buttons are restored to their original meanings.
Return Values
If the meaning of the mouse buttons was reversed previously, before the function was called, the return value is nonzero.

If the meaning of the mouse buttons was not reversed, the return value is zero.

Remarks
Button swapping is provided as a convenience to people who use the mouse with their left hands. The SwapMouseButton function is usually called by Control Panel only. Although an application is free to call the function, the mouse is a shared resource and reversing the meaning of its buttons affects all applications.

"There are 10 kinds of people in the world, those who understand binary and those who don't" | Werkbak specs


  • .oisyn
  • Registratie: September 2000
  • Laatst online: 03-09 13:30

.oisyn

Moderator Devschuur®

Demotivational Speaker

mmjuist ja
zoek voortaan eerst even in de manual

Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.


Dit topic is gesloten.