home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / S12733.ZIP / HELLO.H < prev    next >
Text File  |  1990-10-17  |  2KB  |  82 lines

  1. typedef int far *LPINT;
  2.  
  3.  
  4. /* this is the simple case of the definition of this structure.  A more
  5.     detailed case is included in QuickHelp in PM SDK 1.1 */
  6.  
  7. typedef struct _POPUPITEM {
  8.   USHORT afStyle;
  9.   USHORT afAttribute;
  10.   USHORT id;
  11.   char     text[80];   /* should only be the size of each text string */
  12. } POPUPITEM;
  13.  
  14. typedef struct _MENUCREATETEMPLATE {
  15.   USHORT    size;
  16.   USHORT    version;
  17.   USHORT    codepage;
  18.   USHORT    mnemonic;
  19.   USHORT    itemcount;
  20.   POPUPITEM item[1];    /* multiple items are allowed, item count = # of items */
  21. } MENUCREATETEMPLATE;
  22.  
  23.  
  24. /* constants for the info window */
  25.  
  26. #define CY_INFOWINDOW 15
  27. #define ID_INFOWINDOW    0x100     /* ID for new frame control */
  28.  
  29. /* menu and icon id */
  30. #define ID_HELLO 1
  31.  
  32.  
  33. /* petzold file dialog id */
  34.  
  35. /*  ???????????????????????????????????????
  36.  
  37. #define IDD_OPEN         1
  38.  
  39. #define IDD_PATH         10
  40. #define IDD_FILEEDIT     11
  41. #define IDD_DIRLIST      12
  42. #define IDD_FILELIST     13
  43.  
  44. #define MAXEDITCHARS    16000
  45. */
  46.  
  47.  
  48.  
  49. #define IDM_NEWMENU  0x0100
  50. #define IDM_DELPOPUP 0x0101
  51.  
  52. #define ID_ADDTOSYSMENU  0x0151
  53. #define ID_DELSYS    0x0152
  54. #define ID_DISABLED  0x0153
  55. #define ID_TOGGLEHELP 0x0154
  56.  
  57. #define ID_FIRSTITEM 6000
  58. #define ID_NEWITEM   6001
  59.  
  60. void MainCommand(HWND,USHORT);
  61.  
  62. /* COMMAND.C */
  63. void MakePopup(HWND);
  64. void HelloCommand(HWND,USHORT);
  65.  
  66. /* COMMON.C */
  67. void MessageInt(HWND,int,PCH);
  68.  
  69. /* HELLO.C */
  70. int cdecl main(void);
  71.  
  72. /* PAINT.C */
  73. void HelloPaint(HWND);
  74.  
  75. /* WNDPROC.C */
  76. MRESULT EXPENTRY HelloWndProc( HWND, USHORT, MPARAM, MPARAM );
  77. MRESULT EXPENTRY FrameSubProc( HWND, USHORT, MPARAM, MPARAM );
  78. MRESULT EXPENTRY InfoWndProc( HWND, USHORT, MPARAM, MPARAM );
  79.  
  80. /* user defined messages */
  81. #define WM_UPDATESTRING WM_USER+1
  82.