home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / pm / clipbrd / clipbrd.h < prev    next >
Text File  |  1999-05-11  |  3KB  |  89 lines

  1. /*********** CLIPBRD C Sample Program Include file (.H) *******************
  2.  *
  3.  *  The CLIPBRD include file defines symbolic constants used
  4.  *  in the CLIPBRD.C and .RC files.
  5.  *  CLIPBRD local procedure declarations may appear in this file to
  6.  *  ensure they have been declared before being used.
  7.  *
  8.  *  NOTE: If using the Dialog Editor "DLGEDIT.EXE" ALL comments
  9.  *          (including this) MUST be removed from this file.
  10.  *
  11.  *  Copyright (C) 1991 IBM Corporation
  12.  *
  13.  *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  14.  *      sample code created by IBM Corporation. This sample code is not
  15.  *      part of any standard or IBM product and is provided to you solely
  16.  *      for  the purpose of assisting you in the development of your
  17.  *      applications.  The code is provided "AS IS", without
  18.  *      warranty of any kind.  IBM shall not be liable for any damages
  19.  *      arising out of your use of the sample code, even if they have been
  20.  *      advised of the possibility of such damages.                                                    *
  21.  ******************************************************************************/
  22.  
  23. #define ERRORX   1
  24. #define SUCCESSX 0
  25.  
  26. #define CCHMAXSTRING    200
  27.  
  28. #define AMENU           1
  29. #define ATABLE          1
  30. #define AICON           1
  31.  
  32. #define IDC_OK              1
  33. #define IDC_BITMAP          5
  34. #define IDR_BITMAP          6
  35.  
  36. #define ID_BITMAP       10
  37.  
  38. #define TERMINATE       11
  39. #define HELPPANEL       12
  40. #define HELPINDEX       13
  41. #define EXTHELP         14
  42. #define KEYSHELP        15
  43. #define ABOUT1          16
  44. #define ABOUT2          17
  45. #define ABOUT3          18
  46. #define ABOUT4          19
  47. #define ABOUT5          20
  48. #define GENHELP         21
  49.  
  50.  
  51. #define SM_CLIPBRD      100
  52. #define MENU_COPY       101
  53. #define MENU_CUT        102
  54. #define MENU_PASTE      103
  55. #define MENU_CLEAR      104
  56. #define SM_HELP         201
  57. #define MENU_HELPINDEX  202
  58. #define MENU_EXTHELP    203
  59. #define MENU_KEYSHELP   204
  60. #define MENU_PRODINFO   205
  61. #define MENU_HELPUSING  206
  62.  
  63. #define IDD_PRODUCTINFO 300
  64.  
  65. int  main( VOID );
  66. VOID ClipbrdHelp ( HWND, USHORT );
  67. VOID ClearRoutine( VOID );
  68. VOID CopyRoutine( VOID );
  69. VOID CutRoutine( VOID );
  70. VOID DrawRect( VOID );
  71. VOID EraseRect( VOID );
  72. VOID ExitRoutine( HWND );
  73. VOID Finalize( VOID );
  74. HBITMAP GetBitmap( VOID );
  75. BOOL Initialize( VOID );
  76. VOID MenuInitialization( MPARAM, MPARAM);
  77. VOID MouseButtonDown( HWND, MPARAM);
  78. VOID PaintRoutine( HWND );
  79. VOID PasteRoutine( VOID );
  80. VOID RemoveRect( VOID );
  81. VOID Report_Error( HAB );
  82. VOID WindowDestroy( VOID );
  83. VOID WindowInitialization( HWND );
  84. VOID ReportAPIError( PSZ );
  85. MRESULT ProductInfoDlgProc( HWND, ULONG, MPARAM, MPARAM );
  86. VOID  HelpProductInfo( HWND );
  87. VOID SetSysMenu( HWND );
  88. /***************************  End of clipbrd.h  **************************/
  89.