Einzelnen Beitrag anzeigen

Benutzerbild von Jens Schumann
Jens Schumann

Registriert seit: 27. Apr 2003
Ort: Bad Honnef
1.644 Beiträge
 
Delphi 2009 Professional
 
#3

Re: Problem mit GetKeyNameText

  Alt 11. Mai 2004, 08:21
Zitat von Chris P:
Denn das Label ist nach einem Tastendruck leer.
Wo liegt der Fehler???
Ja - es liegt an der 24. In der Win32-Referenz steht auch warum. Hier ein Auszug
Code:
lParam

Specifies the second parameter of the keyboard message (such as WM_KEYDOWN) to be processed. The function interprets the following portions of lParam:

Bits   Meaning
16-23   Scan code.
24   Extended-key flag. Distinguishes some keys on an enhanced keyboard.
25   "Don't care" bit. The application calling this function sets this bit to indicate that the function should not distinguish between left and right CTRL and SHIFT keys, for example.
D.h. Bit 16-23 müssen den Wert von Key bekommen.
I come from outer space to save the human race
  Mit Zitat antworten Zitat