home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / os2sdk / os2sdk12 / clipview / clipview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-20  |  1.7 KB  |  62 lines

  1. /*
  2.     CLIPVIEW header file
  3.     Created by Microsoft Corporation, 1989
  4. */
  5. #define ID_RESOURCE    1
  6. /*
  7.     Menu ids
  8. */
  9. #define IDM_FILE    1
  10. #define    IDM_RENDER    10
  11. #define    IDM_SAVE    11
  12. #define IDM_ABOUT    12
  13. /*
  14.     Dialog ids
  15. */
  16. #define IDD_ABOUT    1
  17. #define    IDD_RENDER    2
  18. #define    IDL_RENDER    0x20
  19. /*
  20.     Supplementary string ids
  21. */
  22. #define    IDS_ABOUTMENU    0x10
  23. #define    IDS_ALREADY    0x11
  24. #define    IDS_APPNAME    0x12
  25. #define    IDS_CLIPCLASS    0x13
  26. #define    IDS_INST    0x14
  27. #define IDS_NODISPLAY    0x15
  28. #define    IDS_NOTPRES    0x16
  29. #define IDS_NOTSAVED    0x17
  30. #define IDS_OPENFAIL    0x18
  31. #define IDS_SAVETITLE    0x19
  32. #define CF_EMPTY    0
  33. #define    CF_UNKNOWN    0x21
  34. #define    LINE        10        /* Amount of "LINE" scrolling       */
  35. #define    MAXLEN        30        /* Longest length of any string    */
  36. #define    MAXTITLELEN    62        /* (MAXLEN * 2) + 2           */
  37. #define    MAXFORMATS    20        /* Maximum number of diff. formats */
  38. /*
  39.     Procedure declarations
  40. */
  41. /* Wndprocs */
  42. MRESULT EXPENTRY ClipWndProc(HWND, USHORT, MPARAM, MPARAM);
  43. MRESULT EXPENTRY AboutDlgProc(HWND, USHORT, MPARAM, MPARAM);
  44. MRESULT EXPENTRY RenderDlgProc(HWND, USHORT, MPARAM, MPARAM);
  45.  
  46. /* ClipView-specific routines */
  47. VOID ChangeSystemMenu(HWND hwnd);
  48. VOID ReadSelector(HWND hwndMLE, PSZ pszText);
  49. VOID FixFrame(VOID);
  50. VOID NeedScrollBars(BOOL fNeed);
  51. BOOL RenderFormat(HWND hwnd, USHORT usFormat);
  52. BOOL UpdateScreen(HWND hwnd, USHORT usFormat);
  53. VOID GetAllFormats(VOID);
  54. VOID GetFormatName(USHORT usFormat, UCHAR szFormat[]);
  55. BOOL SendOwnerMsg(USHORT msg, MPARAM mp1, MPARAM mp2);
  56. BOOL DoScrolling(HWND hwnd, BOOL fHorz, USHORT sbCmd);
  57.  
  58. /* ClipFile-specific routines */
  59. BOOL SaveClipboard(HWND hwnd, USHORT usFormat);
  60.  
  61. int cdecl main(void);
  62.