Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.4 KiB

  1. // KB_US.H KEY DEFINITIONS FOR US EXTENDED KEYBOARD (101 KEYS)
  2. #include "KBKEYDEF.H"
  3. /* the position of the key is given in relative units to the
  4. comence of the drawing. That means that an X or Y position of
  5. 350 means that the x or y edge is drawing begining in the position
  6. p + 350. In this case the 'p' value is the offset from the edge.*/
  7. typedef struct KBkeyRec
  8. {
  9. LPTSTR textL; // text in key lower
  10. LPTSTR textC; // text in key capital
  11. LPTSTR skLow; // What has to be printed low letter
  12. LPTSTR skCap; // What has to be printed cap letter
  13. int name; // BITMAP, LSHIFT, RSHIF...
  14. short posY; // See explanation above
  15. short posX; // same as above
  16. short ksizeY; // key size in conventional units
  17. short ksizeX; // same as above
  18. BOOL smallF; // TRUE = text has to be written in smaller font
  19. int ktype; // 1 - normal, 2 - modifier, 3 - dead
  20. int smallKb; // SMALL, LARGE, BOTH, NOTSHOW
  21. BOOL Caps_Redraw; // Redraw the window for shift, caps
  22. int print; //1 - print use ToAscii(), 2 - print the text provided by the header file
  23. UINT scancode[4]; // key scan-code
  24. LPTSTR apszKeyStr[KEYMOD_STATES];// key labels for each keyboard layout (0=no modifiers 1=SHIFTED 2=ALTGR)
  25. BYTE abKeyType[KEYMOD_STATES];// "ktype" for each keyboard layout
  26. }KBkeyRec;
  27. extern struct KBkeyRec KBkey[];