home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
MQSRC.LZH
/
MQ.H
< prev
next >
Wrap
Text File
|
1991-05-05
|
1KB
|
55 lines
#define TRUE 1
#define FALSE 0
#define ID_MAIN 100
#define IDM_NEW (ID_MAIN + 1)
#define ID_CHILD 200
#define IDM_OPEN (ID_CHILD + 1)
#define IDM_CLEAR (ID_CHILD + 2)
#define IDM_HALT (ID_CHILD + 3)
#define ID_MLE 300
#define WMU_LOADFILE (WM_USER + 0)
#define WMU_DONEFILE (WM_USER + 1)
#define WMU_CLOSE (WM_USER + 2)
#define WMU_CLEAR (WM_USER + 3)
#define winEnableMenuItem(hwndMenu, id, Enable) \
WinSendMsg(hwndMenu, MM_SETITEMATTR, \
MPFROM2SHORT(id, TRUE), \
MPFROM2SHORT(MIA_DISABLED, Enable ? 0 : MIA_DISABLED))
#define MAX_FNAME_LEN 260
typedef struct _DLF { /* dlf */
USHORT rgbAction;
USHORT rgbFlags;
PHFILE phFile;
PSZ pszExt;
PSZ pszAppName;
PSZ pszTitle;
PSZ pszInstructions;
CHAR szFileName[MAX_FNAME_LEN];
CHAR szOpenFile[MAX_FNAME_LEN];
} DLF, FAR *PDLF;
int EXPENTRY WtiDlgFile(HWND hwndOwner, PDLF pdlf);
typedef struct {
HMQ hmqWork; /* worker thread's queue handle */
HWND hwndFrame,
hwndClient,
hwndMLE;
void *stack;
BOOL running;
LONG semReady;
}INSTANCE; /* per thread instance data */
void OpenNewMleWin(HWND hwnd);
MRESULT EXPENTRY MleWinProc(HWND hwnd, USHORT msg, MPARAM mp1, MPARAM mp2);
void far cdecl WorkThread(void far *arg);