home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / MONTE.ZIP / PMTHREAD / APP.H < prev    next >
Text File  |  1992-08-04  |  1KB  |  35 lines

  1. // app.h
  2. // application titles, etc
  3. #define APP_TITLE               "Object Window Application"
  4. #define APP_CLASS_CLIENT        "APPClient"
  5. #define APP_CLASS_OBJECT        "APPObject"
  6. // lengths
  7. #define LEN_WORKSTRING              256
  8. #define LEN_STACK                 18000
  9.  
  10. // structure to hold globals variables common to both threads
  11. struct _globals {
  12.   BOOL           fBusy;
  13.   HAB            hab;
  14.   HWND           hwndClient;
  15.   HWND           hwndFrame;
  16.   HWND           hwndTitlebar;
  17.   HWND           hwndMenubar;
  18.   HWND           hwndObject;
  19.   char           szMsg[ LEN_WORKSTRING ];
  20.   TID            tidObject;
  21. };
  22. typedef struct _globals GLOBALS, *PGLOBALS;
  23.  
  24. // user messages
  25. #define WM_USER_ACK                      WM_USER+0
  26. #define WM_USER_SLEEP                    WM_USER+1
  27. #define WM_USER_ENABLE_CLIENT            WM_USER+2
  28. #define WM_USER_DISABLE_CLIENT           WM_USER+3
  29.  
  30. // function prototypes -- _Optlink is a IBM C SET/2 modifier
  31. void _Optlink threadmain( void *  );
  32. PGLOBALS Create( HWND hwnd );
  33. MRESULT EXPENTRY ObjectWinProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 );
  34. MRESULT EXPENTRY ClientWinProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 );
  35.