Leaked source code of windows server 2003
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.

100 lines
3.6 KiB

  1. /*****************************************************************************/
  2. /* Data structure for DEFAULT AND PREFERENCES SETTING */
  3. /*****************************************************************************/
  4. #ifndef _DOOR_H //v_mjgran: To avoid data redefinitions
  5. #define _DOOR_H
  6. typedef struct tagKBPREFINFO
  7. {
  8. //keyboard preference
  9. int g_margin; // Margin between rows and columns
  10. BOOL smallKb; // TRUE when working with Small Keyboard
  11. COLORREF PrefTextKeyColor; // Prefered Color for text in keys
  12. COLORREF PrefCharKeyColor; // normal key
  13. COLORREF PrefModifierKeyColor; // modifier key
  14. COLORREF PrefDeadKeyColor; // dead key
  15. COLORREF PrefBackgroundColor; // ditto Keyboard backgraund
  16. int PrefDeltakeysize; // Preference increment in key size
  17. BOOL PrefshowActivekey; // Show cap letters in keys
  18. int KBLayout; // 101, 102, 106, KB layout
  19. BOOL Pref3dkey; // Use 3d keys
  20. BOOL Prefusesound; // Use click sound
  21. BOOL PrefAlwaysontop; // windows always on top control
  22. BOOL Prefhilitekey; // True for hilite eky under cursor
  23. BOOL PrefDwellinkey; // use dwelling system
  24. UINT PrefDwellTime; // Dwell time preference
  25. LOGFONTA lf; // default font
  26. //import Dlg
  27. BOOL DICT_LRNNEXT;
  28. BOOL DICT_LRNNUM;
  29. BOOL bReadLonger;
  30. BOOL bWordToKeep;
  31. int minLength;
  32. long maxWords;
  33. //Predict Dlg
  34. BOOL typeFast; //use clipboard ?
  35. BOOL WListVisib; //Word list visible
  36. BOOL PredictNext; //Predict next words
  37. BOOL Cap; //Cap after period
  38. int ShortestWord; //Shorest Word
  39. int space; //how many space AFTER SENTENCE
  40. BOOL VorH; //v = vertical h = horizontal word list
  41. // (TRUE is V)
  42. int WordShown; //how many predict keys to create
  43. int WordFound; //how many words to find
  44. LOGFONTA PredLF; //store the font for predict window
  45. COLORREF PredTextColor; //prefer color for predict text
  46. COLORREF PredKeyColor; //prefer color for predict key
  47. BOOL AddSpace; //Add space after , : ; or not
  48. //Scanning Option
  49. UINT uKBKey; // vk of scan key
  50. BOOL bKBKey; // use scan key
  51. BOOL bPort; // open the serial, parallel, game port
  52. //Option Dlg
  53. BOOL DICT_LRNNEW;
  54. BOOL DICT_LRNFREQ;
  55. BOOL DICT_PURGAUTO;
  56. BOOL DICT_AUTOINCREASE;
  57. BOOL WAIT_DLG_SHOWWORDS;
  58. //size and position of KB and Predictor
  59. RECT KB_Rect;
  60. RECT Pred_Rect;
  61. RECT Pred_Crect;
  62. float Pred_Width;
  63. float Pred_Height;
  64. //HotKeys Dlg
  65. UINT HotKeyList[30]; //array to store HotKeys
  66. BOOL HK_F11; //disable / enable the f11 hot key
  67. BOOL HK_Show;
  68. UINT Choice; //choices for Func, numbers, keypad, all
  69. BOOL HK_Enable; //diasable / enable hotkey
  70. BOOL HK_Front;
  71. BOOL FastSel;
  72. BOOL PrefScanning; //use scanning
  73. UINT PrefScanTime;
  74. BOOL Actual; // T - Actual or F - Block KB
  75. //Application preference
  76. BOOL fShowWarningAgain; // Show the initial warning dialog again
  77. } KBPREFINFO;
  78. typedef KBPREFINFO* LPKBPREFINFO;
  79. //
  80. // Pointer to keyboard preference and other dialog option
  81. // and the buffer we use to save and read from file
  82. //
  83. extern KBPREFINFO *kbPref;
  84. #endif //_DOOR_H