home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / MQSRC.LZH / MQ.H < prev    next >
Text File  |  1991-05-05  |  1KB  |  55 lines

  1.  
  2. #define TRUE 1
  3. #define FALSE 0
  4.  
  5. #define ID_MAIN   100
  6. #define IDM_NEW   (ID_MAIN + 1)
  7.  
  8. #define ID_CHILD  200
  9. #define IDM_OPEN  (ID_CHILD + 1)
  10. #define IDM_CLEAR (ID_CHILD + 2)
  11. #define IDM_HALT  (ID_CHILD + 3)
  12.  
  13. #define ID_MLE    300
  14.  
  15.  
  16. #define WMU_LOADFILE  (WM_USER + 0)
  17. #define WMU_DONEFILE  (WM_USER + 1)
  18. #define WMU_CLOSE     (WM_USER + 2)
  19. #define WMU_CLEAR     (WM_USER + 3)
  20.  
  21. #define winEnableMenuItem(hwndMenu, id, Enable) \
  22.     WinSendMsg(hwndMenu, MM_SETITEMATTR, \
  23.             MPFROM2SHORT(id, TRUE), \
  24.             MPFROM2SHORT(MIA_DISABLED, Enable ? 0 : MIA_DISABLED))
  25.  
  26.  
  27. #define MAX_FNAME_LEN      260
  28. typedef struct _DLF {   /* dlf */
  29.         USHORT   rgbAction;
  30.         USHORT   rgbFlags;
  31.         PHFILE   phFile;
  32.         PSZ      pszExt;
  33.         PSZ      pszAppName;
  34.         PSZ      pszTitle;
  35.         PSZ      pszInstructions;
  36.         CHAR szFileName[MAX_FNAME_LEN];
  37.         CHAR szOpenFile[MAX_FNAME_LEN];
  38. } DLF, FAR *PDLF;
  39.  
  40. int EXPENTRY WtiDlgFile(HWND hwndOwner, PDLF pdlf);
  41.  
  42. typedef struct {
  43.     HMQ hmqWork;                 /* worker thread's queue handle */
  44.     HWND hwndFrame,
  45.          hwndClient,
  46.          hwndMLE;
  47.     void *stack;
  48.     BOOL running;
  49.     LONG semReady;
  50. }INSTANCE;      /* per thread instance data */
  51.  
  52. void OpenNewMleWin(HWND hwnd);
  53. MRESULT EXPENTRY MleWinProc(HWND hwnd, USHORT msg, MPARAM mp1, MPARAM mp2);
  54. void far cdecl WorkThread(void far *arg);
  55.