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

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