home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: SysTools / SysTools.zip / taman002.zip / TASKMANA.ZIP / src / kThreadContainer.h < prev    next >
C/C++ Source or Header  |  2000-04-29  |  1KB  |  50 lines

  1. /* $Id: kThreadContainer.h,v 1.1 2000/04/29 19:06:35 stknut Exp $
  2.  *
  3.  * kThreadContainer - generic module container.
  4.  *
  5.  * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
  6.  *
  7.  */
  8. #ifndef _kThreadContainer_h_
  9. #define _kThreadContainer_h_
  10.  
  11.  
  12.  
  13.  
  14. /**
  15.  * Generic module container.
  16.  * @author      knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
  17.  */
  18. class kThreadContainer : public kDetailCnr
  19. {
  20. private:
  21.     /** @cat private data */
  22.     USHORT          usPid;              /* Process Indicator we're showing threads for. */
  23.     kMenuBase *     pMenuThread;        /* Pointer to record menu. */
  24.     kMenuBase *     pMenuCnrAll;        /* Pointer to container menu. */
  25.     kThreadRecord * pCurRecord;         /* Pointer to the current record actual for menu action. */
  26.  
  27.     /** @cat private methods */
  28.     BOOL    insertThreads();
  29.  
  30.     /** @cat private events */
  31.     VOID    menuEnd(USHORT usMenuId, HWND hwndMnu); //WM_MENUEND
  32.     VOID    command(USHORT usCmd, USHORT usSource, BOOL fPointer); //WM_COMMAND
  33.  
  34.  
  35. public:
  36.     kThreadContainer(HWND hwndDlg, ULONG ulCnrId, USHORT usPid) throw (kError);
  37.     ~kThreadContainer();
  38.  
  39.     /** @cat events which sorrily have to be invoked from the outside... */
  40.     VOID    cnrContextMenu(USHORT usId, PRECORDCORE pRecord);
  41.     VOID    cnrEnter(USHORT usId, HWND hwndCnr, PRECORDCORE pRecord, ULONG fKey);
  42.  
  43.     VOID    update();
  44. };
  45.  
  46.  
  47. #endif
  48.  
  49.  
  50.