home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pendem.zip / BOOK.H < prev    next >
Text File  |  1993-06-16  |  5KB  |  126 lines

  1. #include "bookrs.h"
  2.  
  3. #define  MAXNAMES 50
  4. #define  FILE_MAXSIZE (578*MAXNAMES)  // 28900, 50 entries MAX (50*578)
  5. #define  YLOWRES 480    // VGA screen size
  6. #define  X8514RES 1024   // 8514 screen size
  7. #define  Y8514RES 768    // 8514 screen size
  8.  
  9.  
  10. #define WM_MY_RECO   WM_USER+7
  11.  
  12. #define  ID_BOOKWIN 50    // ID for window frame around the notebook
  13. #define  ID_BOOK    51    // ID for notebook control
  14.  
  15. // used to register the book
  16. #define ID_PENPM_BOOK 77
  17. #define ID_BOOK_EXE   "BOOK"
  18.  
  19. // Handwriting control ids
  20. #define ID_HWX_NAME  60
  21.  
  22. // bitmap ids
  23. #define  IDB_WELCOME   70
  24. #define  IDB_INDEX     71
  25. #define  IDB_PENAWARE  72
  26. #define  IDB_TMP       73
  27. #define  IDB_IBM       74
  28. #define  IDB_SRVPAGE   75
  29. #define  IDB_PAGEING   76
  30. #define  IDB_CLIP      77
  31. #define  IDB_0000      78
  32. #define  IDB_0001      79
  33. #define  IDB_0010      80
  34. #define  IDB_0011      81
  35. #define  IDB_0100      82
  36. #define  IDB_0101      83
  37. #define  IDB_0110      84
  38. #define  IDB_0111      85
  39. #define  IDB_1000      86
  40. #define  IDB_1001      87
  41. #define  IDB_1010      88
  42. #define  IDB_1011      89
  43. #define  IDB_1100      90
  44. #define  IDB_1101      91
  45. #define  IDB_1110      92
  46. #define  IDB_1111      93
  47. #define  IDB_MAILING   94
  48. #define  IDB_PENAHLP   95
  49. #define  IDB_TMP2      96
  50.  
  51. #define DID_OKPAGE2   WM_USER+700
  52.  
  53.  
  54. #define DDE_COUNTRY  044L
  55. #define DDE_CODEPAGE 437L
  56.  
  57. typedef struct _CARDINFO {
  58.    CHAR RecId[9];    // the ID that makes the record unique! consists of datemonthhourminute
  59.    CHAR LName[16];    // should be 31
  60.    CHAR FName[11];    // should be 31
  61.    CHAR Initial[2];
  62.    CHAR Company[101];
  63.    CHAR Division[51]; // should be 101
  64.    CHAR StrAddr[51];  // should be 201
  65.    CHAR City[21];     // should be 31
  66.    CHAR State[3];
  67.    CHAR Zip[11];
  68.    CHAR Phone[16];
  69.    CHAR Fax[16];
  70.    CHAR PagerID[9];
  71.    CHAR MailUserId[9];
  72.    CHAR MailNodeId[9];
  73.    HBITMAP hbmBitmap;
  74.    ULONG CardId;
  75. } CARDINFO;
  76.  
  77.  
  78. typedef struct _CARDREC {
  79.    RECORDCORE  RecordCore;
  80.    HBITMAP bitmap;
  81.    PSZ name;
  82.    PSZ company;
  83.    PSZ state;
  84.    ULONG CardId;
  85. } CARDREC;
  86.  
  87. typedef struct {
  88.                 USHORT TotLen;
  89.                 CHAR   *FileData;
  90.                } DATAFILE;
  91.  
  92.  
  93. MRESULT APIENTRY NoteBClientProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  94. MRESULT EXPENTRY WelcomeDlgProc( HWND hwnd, ULONG message, MPARAM mp1, MPARAM mp2);
  95. MRESULT EXPENTRY CardDlgProc( HWND hwnd, ULONG message, MPARAM mp1, MPARAM mp2);
  96. MRESULT EXPENTRY TwoCardDlgProc( HWND hwnd, ULONG message, MPARAM mp1, MPARAM mp2 );
  97. MRESULT EXPENTRY IndexDlgProc( HWND hwnd, ULONG message, MPARAM mp1, MPARAM mp2);
  98. PFIELDINFO AllocIndexFields (HWND hwndCnr);
  99. BOOL EXPENTRY pfnfilterName(PRECORDCORE p, PVOID pStorage);
  100. BOOL EXPENTRY pfnfilterComp(PRECORDCORE p, PVOID pStorage);
  101. BOOL EXPENTRY pfnfilterState(PRECORDCORE p, PVOID pStorage);
  102. MRESULT EXPENTRY EditBCardDlgProc( HWND hwnd, ULONG message, MPARAM mp1, MPARAM mp2 );
  103. MRESULT EXPENTRY EditBCard2DlgProc( HWND hwnd, ULONG message, MPARAM mp1, MPARAM mp2 );
  104. VOID  ProcessReco(MPARAM mp1, MPARAM mp2);
  105. MRESULT EXPENTRY NoteBookSubWndProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 );
  106. MRESULT EXPENTRY SketchDlgProc( HWND hwnd, ULONG message, MPARAM mp1, MPARAM mp2 );
  107. USHORT SaveSketch(HWND hwndDlg, CHAR *RecId);
  108. VOID SaveMailFile(CHAR *txt);
  109. USHORT ReadAndDisplaySketch(HWND hwndDlg, CHAR *RecId);
  110. MRESULT EXPENTRY PagerDlgProc( HWND hwnd, ULONG message, MPARAM mp1, MPARAM mp2 );
  111. MRESULT EXPENTRY MailDlgProc( HWND hwnd, ULONG message, MPARAM mp1, MPARAM mp2 );
  112. BOOL Paint3dLines(HPS hps, PRECTL pRectl);
  113. VOID FindBmp(CARDINFO *Name, CARDREC *CardRec);
  114. MRESULT EXPENTRY HelpDlgProc( HWND hwnd, ULONG message, MPARAM mp1, MPARAM mp2 );
  115.  
  116.  
  117. USHORT GetAllRecords(HWND hwnd, USHORT *numRecs);
  118. HBITMAP ReadBitmapFile(PSZ PictureDataFile, HPS *hpsMem);
  119. VOID PrepUpdRec(CARDINFO *CardInfo, CHAR *bmp_file, USHORT bmp_length);
  120. VOID PrepAddToRec(CARDINFO *CardInfo, CHAR *bmp_file, USHORT bmp_length);
  121. VOID PrepDelRec(CHAR *RecId);
  122.  
  123. #define STRTXT1 "application. Contact/2 is an address book that contains business card representations of your contacts. Contact/2 is MORE than a typical address book, it"
  124. #define STRTXT2 "actually enables you to easily communicate with the people through its automated communications interfaces. Use the gestures shown on the Welcome page to get work done."
  125. #define STRTXT3 "Use the Index page to filter and find desired business cards.  Double tap on a name in the Index list to turn to the corresponding page."
  126.