home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 19.ddi / SAMPLES / EXPENSE / EXPENSE.H_ / EXPENSE.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  2.6 KB  |  110 lines

  1. /************************************************************
  2.  
  3.    PROGRAM: EXPENSE.H
  4.  
  5.    PURPOSE:
  6.    
  7.       Header file for EXPENSE.C
  8.  
  9.  
  10. ************************************************************/
  11.  
  12. /******** Macros *********/
  13.  
  14. /* Unused: To prevent CS 5.1 warning message 
  15. */
  16. #define Unused(x)    x      
  17.  
  18. /******** Constants *********/
  19.  
  20. #define cchDataStrMax   32
  21.  
  22. #define chNextField     1
  23. #define chPrecField     2
  24.  
  25. #define EmployNumDigits 5
  26. #define DeptNumDigits   5
  27.  
  28. #define FIELDEDIT       0
  29. #define FIELDBEDIT      1
  30. #define FIELDPIC        2
  31.  
  32. #define DictParam_None  (-1)
  33.  
  34. #define cReportWidth       241   /* In dialog units */ 
  35. #define cReportHeight      200   /* In dialog units */ 
  36.  
  37. #define cTexts             13
  38. #define cEditFields        24
  39. #define MAXWORDLISTPATH    256
  40. #define cERRSIZE           512
  41.  
  42. #define SIG_FIELD          22    /* Index of sig field in rgeditfield array */ 
  43.  
  44. /* Dictionary Types 
  45. */
  46. #define DICT_NULL          0     /* Null Dictionary */ 
  47. #define DICT_USER          1
  48. #define DICT_CUSTOM        2
  49.  
  50. /* Word Lists (index into rgwordlist) 
  51. */
  52. #define IWORDLIST_NONE     (-1)
  53. #define IWORDLIST_NAME     0
  54. #define IWORDLIST_DEPTNAME 1
  55.  
  56. #define SIZE_WORDLIST      (sizeof(rgwordlist)/sizeof(WORDLIST))
  57.  
  58.  
  59. /******** Typedefs *********/
  60.  
  61. typedef struct
  62.    {
  63.    char  *szProfileString;
  64.    char  *szDefault;
  65.    int   iList;
  66.    }
  67.    WORDLIST, *PWORDLIST, FAR *LPWORDLIST;
  68.  
  69. typedef struct
  70.    {
  71.    char  szDataStr[cchDataStrMax];
  72.    int   x;
  73.    int   y;
  74.    }
  75.    TEXT, *PTEXT, FAR *LPTEXT;    /* static text */
  76.    
  77. typedef struct
  78.    {
  79.    int    x;
  80.    int    y;
  81.    int    cx;
  82.    int    cy;
  83.    DWORD  dwStyle;
  84.    ALC    alc;
  85.    LPSTR  lpCh;          /* Characters to recognize if ALC_USEBITMAP set */ 
  86.    LONG   lRcOptions;
  87.    int    iDictType;
  88.    int    iWordList;
  89.    WORD   wFieldType;
  90.    HWND   hwnd;
  91.    }
  92.    EDITFIELD, *PEDITFIELD, FAR *LPEDITFIELD;    /* edit field */
  93.  
  94. /******** Prototypes *********/
  95.  
  96. LRESULT __export CALLBACK ExpenseWndProc (HWND hwnd,  UINT message,  WPARAM wParam,  LPARAM lParam);
  97. BOOL    __export CALLBACK AboutDlgProc (HWND hDlg,  UINT message,  WPARAM wParam,  LPARAM lParam);
  98. int     __export CALLBACK ExpenseDictionaryProc (int irq, LPVOID lpIn, LPVOID lpOut, int cbMax, DWORD lContext, DWORD lD);
  99.  
  100. BOOL FInitApp (HANDLE hInstance);
  101. BOOL FInitInstance (HANDLE hInstance,  int cmdShow);
  102. BOOL FCreateReport (HWND hwndParent);
  103. BOOL ProcessFieldChange (HWND hwndFocusField,  WORD wParam);
  104. int IFromHwnd (HWND hwnd);
  105. VOID SetAlcBits (LPBYTE rgb, LPSTR lp);
  106. VOID CloseCustomDictionary (VOID);
  107. VOID CloseUserDictionary (VOID);
  108.  
  109.  
  110.