home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / ScriptExplorer / LG_Constants.h < prev    next >
Encoding:
Text File  |  1997-07-24  |  1.1 KB  |  43 lines  |  [TEXT/CWIE]

  1. // LG_Constants.h
  2. //
  3.  
  4.  
  5.         // NOTE the following are defined in the Kanji Ranges. Chinese, Korean 
  6.         //       have their own ranges and will need to handled.
  7.  
  8.         // per IM: Text, pg 1-59
  9.  
  10. #define MIN_KanjiLeadByte    0x81
  11. #define MAX_KanjiLeadByte    0xFC
  12.  
  13. #define KanjiIsLeadByte(ch)    \
  14.     ((((unsigned char)(ch)) >= 0x081 && ((unsigned char)(ch)) <= 0x09F) || \
  15.     (((unsigned char)(ch)) >= 0x0E0 && ((unsigned char)(ch)) <= 0x0FC))
  16.  
  17. #define KanjiIsTrailByte(ch)    \
  18.     ((((unsigned char)(ch)) >= 0x040 && ((unsigned char)(ch)) <= 0x07E) || \
  19.     (((unsigned char)(ch)) >= 0x080 && ((unsigned char)(ch)) <= 0x0FC))
  20.  
  21. #define KanjiIsHanKata(ch)  ( ((unsigned char)(ch)) >= 0x0A0 && ((unsigned char)(ch)) <= 0x0DF )
  22.  
  23.  
  24. // Pane IDs
  25. #define PID_AnimBanner         999
  26. #define PID_CharsGrid        1000
  27. #define PID_BtnChng            1002
  28. #define PID_PnCharInfo        1006
  29. #define PID_IBtnPgUp        1020
  30. #define PID_IBtnPgDown        1022
  31. #define PID_MenuDrawAct        1030
  32. #define PID_MenuScriptAct    1032
  33.  
  34. // Commands/Msgs
  35. #define cmd_SomeBtn            1002
  36. #define cmd_PageUp            1020
  37. #define cmd_PageDown        1022
  38. #define cmd_MenuScriptAct    1032
  39.  
  40.  
  41.  
  42. // End of Listing
  43.