Comment recuperer les code des touches multimedia d'un clavier

Comment recuperer les code des touches multimedia d'un clavier - C++ - Programmation

Marsh Posté le 12-12-2002 à 19:12:29    

Bonjour a tous
 
je voulais savoir comment on recupere les codes des touches des claviers multimedia (je sais pas si c tjrs de l'ascii c pour sa que je mes code)
 
merci d'avance

Reply

Marsh Posté le 12-12-2002 à 19:12:29   

Reply

Marsh Posté le 12-12-2002 à 22:45:09    

msdn a écrit :

Keyboard Keys for Browsing and Other Functions:
Microsoft Windows® provides support for keyboards with special keys for browser functions, media functions, application launching, and power management. The WM_APPCOMMAND supports the extra keyboard keys. In addition, the ShellProc function is modified to support the extra keyboard keys.
 
It is unlikely that a child window in a component application will be able to directly implement commands for these extra keyboard keys. So when one of these keys is pressed, DefWindowProc will send a WM_APPCOMMAND message to a window. DefWindowProc will also bubble the WM_APPCOMMAND message to its parent window. This is similar to the way context menus are invoked with the right mouse button, which is that DefWindowProc sends a WM_CONTEXTMENU message on a right button click, and bubbles it to its parent. Additionally, if DefWindowProc receives a WM_APPCOMMAND message for a top-level window, it will call a shell hook with code HSHELL_APPCOMMAND.
 
Windows also supports the Microsoft IntelliMouse® Explorer, which is a mouse with five buttons. The two extra buttons support forward and backward browser navigation. For more information, see XBUTTONs.


 
(pris de http://msdn.microsoft.com/library/ [...] input.asp)


---------------
each day I don't die is cheating
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed