home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / 2QSRC.LZH / 2Q.H < prev    next >
Text File  |  1991-05-05  |  867b  |  36 lines

  1.  
  2.  
  3. #define TRUE 1
  4. #define FALSE 0
  5.  
  6. #define ID_MAIN              1
  7. #define IDM_OPEN  (ID_MAIN + 1)
  8. #define IDM_CLEAR (ID_MAIN + 2)
  9.  
  10. #define ID_MLE 100
  11.  
  12.  
  13. #define WMU_LOADFILE  (WM_USER + 0)
  14. #define WMU_DONEFILE  (WM_USER + 1)
  15.  
  16. #define winEnableMenuItem(hwndMenu, id, Enable) \
  17.     WinSendMsg(hwndMenu, MM_SETITEMATTR, \
  18.             MPFROM2SHORT(id, TRUE), \
  19.             MPFROM2SHORT(MIA_DISABLED, Enable ? 0 : MIA_DISABLED))
  20.  
  21.  
  22. #define MAX_FNAME_LEN      260
  23. typedef struct _DLF {   /* dlf */
  24.         USHORT   rgbAction;
  25.         USHORT   rgbFlags;
  26.         PHFILE   phFile;
  27.         PSZ      pszExt;
  28.         PSZ      pszAppName;
  29.         PSZ      pszTitle;
  30.         PSZ      pszInstructions;
  31.         CHAR szFileName[MAX_FNAME_LEN];
  32.         CHAR szOpenFile[MAX_FNAME_LEN];
  33. } DLF, FAR *PDLF;
  34.  
  35. int EXPENTRY WtiDlgFile(HWND hwndOwner, PDLF pdlf);
  36.