home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dovetail.zip / dove.h < prev    next >
C/C++ Source or Header  |  1994-04-06  |  2KB  |  60 lines

  1. /********************************************/
  2. /*                                          */
  3. /* Standard Program Header File             */ 
  4. /*                                          */
  5. /********************************************/
  6.  
  7. /* Name Indentifier for the program icon. */
  8.  
  9. #define ID_RESOURCE      100
  10. #define ID_OK            101
  11. #define ID_CANCEL        102
  12.  
  13. /* And the Dialog box stuff */
  14.  
  15. #define ID_SDBOX         110
  16. #define    ID_THICKNESS     111
  17. #define    ID_LENGTH        112
  18. #define    ID_UNITS         113
  19.  
  20. #define ID_PARAMS        120
  21. #define    ID_SLOPE         121
  22. #define    ID_TAILPINRATIO  122
  23. #define    ID_MIDEDGERATIO  123
  24. #define    ID_ENDPINSIZE    124
  25. #define    ID_MULT          125
  26. #define    ID_ADD           126
  27. #define    ID_NUMTAILS      127
  28.  
  29. #define ID_FILEDB        130
  30. #define    ID_NAME          131
  31.  
  32. /* Name Identifier for the Menu Bar Items. */
  33.  
  34. #define   IDM_STOCK         200
  35. #define   IDM_PRINT         210
  36. #define   IDM_FILE          220
  37. #define   IDM_FILE_OPEN     221
  38. #define   IDM_FILE_SAVE     222
  39. #define   IDM_FILE_DEL      223
  40.  
  41. /* User Defined Messages */
  42.  
  43. #define UM_RECALC      (WM_USER+1)
  44. #define UM_UPDATE      (WM_USER+2)
  45.  
  46. typedef struct _design {
  47.   char name[32];
  48.   float fLength, fThickness, fSlope, fTailPinRatio;
  49.   float fMidEdgeRatio, fEndPinSize;
  50.   int iMultOrAdd, iNumTails, unit;
  51. } DESIGN;
  52.  
  53. /* global variables */
  54.  
  55. extern float fLength,fThickness;
  56. extern float fSlope,fTailPinRatio,fMidEdgeRatio,fEndPinSize;
  57. extern int iMultOrAdd,iNumTails;
  58. extern int old_unit;
  59. extern HWND hMain;
  60.