home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / os2sdk / os2sdk12 / ddeml / demo / demo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-22  |  1.6 KB  |  61 lines

  1. /****** Standard include files */
  2.  
  3. #define INCL_WINSYS
  4. #define INCL_WINCOMMON
  5. #define INCL_WINMESSAGEMGR
  6. #define INCL_WINATOM
  7. #define INCL_WINDDE
  8. #define INCL_WINTIMER
  9. #include <os2.h>
  10. #include <stdio.h>
  11. #include <string.h>
  12. #include <ddeml.h>
  13.  
  14. /****** Resource IDs *****/
  15.  
  16. #define IDR_DEMO    1
  17.  
  18. /****** Menu command IDs *****/
  19. /* (by convention, hi byte is menu index, lo byte is dispatch table index) */
  20.  
  21. /* File menu */
  22.  
  23. #define CMD_NEW     0x0000
  24. #define CMD_OPEN    0x0001
  25. #define CMD_SAVE    0x0002
  26. #define CMD_SAVEAS  0x0003
  27.  
  28. /* Edit menu */
  29. #define CMD_UNDO    0x0104
  30. #define CMD_CUT     0x0105
  31. #define CMD_COPY    0x0106
  32. #define CMD_PASTE   0x0107
  33. #define CMD_CLEAR   0x0108
  34.  
  35. /* Number of menu commands */
  36. #define CCMDS       (4+5)
  37.  
  38. #define UNUSED
  39.  
  40. /*** demo.c function declarations */
  41.  
  42. BOOL DemoInit(VOID);
  43. VOID CommandMsg(USHORT cmd);
  44. int cdecl main(int argc, char** argv);
  45. MRESULT FAR PASCAL DemoWndProc(HWND, USHORT, MPARAM, MPARAM);
  46. MRESULT FAR PASCAL DemoFrameWndProc(HWND hwnd, USHORT msg, MPARAM mp1, MPARAM mp2);
  47. VOID DemoPaint(HWND hwnd, HPS hps, RECTL* prcl);
  48. HDMGDATA EXPENTRY callback(HCONV hConv, HSZ hszTopic, HSZ hszItem,
  49.         USHORT usFmt, USHORT usType, HDMGDATA hDmgData);
  50.  
  51.  
  52. /*** testsubs.c function declarations */
  53.  
  54. BOOL InitTestSubs(VOID);
  55. VOID DrawString(HWND hwnd, char* sz);
  56. MRESULT FAR PASCAL StrWndProc(HWND hwnd, USHORT msg, MPARAM mp1, MPARAM mp2);
  57. BOOL StrWndCreate(HWND hwnd, int cchLine, int cLine);
  58. VOID PaintStrWnd(HWND hwnd, HPS hps, PRECTL prcl);
  59. VOID StartTime(VOID);
  60. VOID StopTime(HWND hwndStrWnd, char* szFmt);
  61.