home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dho.zip / DHO / SRC / CONTAIN.H < prev    next >
C/C++ Source or Header  |  1995-08-27  |  2KB  |  58 lines

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: contain.h 1.3 1995/08/13 03:21:12 teb Exp $ */
  8.  
  9. #ifndef __CONTAINER_H__
  10. #define __CONTAINER_H__
  11.  
  12. #include<window.h>
  13.  
  14. /* *************************************************************
  15.     * the class TContainer Window implements a wrapper         *
  16.     * around the Container objects included in Presentation    *
  17.     * manager.  Currently, all types of container views except *
  18.     * tree and detal view are supported.  These will be        *
  19.     * included in future DHO releases...                       *
  20.     *                                                          *
  21.     ************************************************************ */
  22.  
  23.  
  24. typedef struct _IconInfo
  25. {
  26.    LONG iconId;
  27.    char *iconName;
  28. } ContainerIconInfo;
  29.  
  30. typedef ContainerIconInfo *PContainerIconInfo;
  31.  
  32. enum ContainerViewType {icon, name_flowed, name_nonflowed,
  33.                         text_flowed, text_nonflowed};
  34.  
  35.  
  36. class TContainerWindow : public TWinBase
  37. {
  38.       TWinBase *fParent;
  39.       BOOL fReadOnly;
  40.       ULONG fId;
  41.    public:
  42.       TContainerWindow(ULONG id, TWinBase *parent, BOOL readOnly);
  43.       virtual ~TContainerWindow();
  44.       virtual BOOL init();
  45.       void insertItem(HPOINTER icon, PSZ iconName);
  46.       void insertItem(LONG iconId, PSZ iconName);
  47.       void insertItems(PContainerIconInfo items, LONG numItems);
  48.       void setViewType(ContainerViewType viewType);
  49.       void removeItem(USHORT item);
  50.       void removeAll();
  51. };
  52.  
  53.  
  54.  
  55. #endif
  56.  
  57.  
  58.