home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / protview / demowinx / data.1 / BRANCH.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  1.4 KB  |  56 lines

  1. #ifndef __BRANCH_H__
  2. #define __BRANCH_H__
  3.  
  4. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  5.  
  6. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  7. //  Microsoft Visual C++, your modifications will be overwritten.
  8.  
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. class CPicture;
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CBranch wrapper class
  15.  
  16. class CBranch : public COleDispatchDriver
  17. {
  18. public:
  19.     CBranch() {}        // Calls COleDispatchDriver default constructor
  20.     CBranch(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
  21.     CBranch(const CBranch& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
  22.  
  23. // Attributes
  24. public:
  25.     CString GetText();
  26.     void SetText(LPCTSTR);
  27.     long GetData();
  28.     void SetData(long);
  29.     short GetLevel();
  30.     void SetLevel(short);
  31.     BOOL GetIsOpen();
  32.     void SetIsOpen(BOOL);
  33.     short GetStandardItemPicture();
  34.     void SetStandardItemPicture(short);
  35.     CPicture GetCustomItemPicture();
  36.     void SetCustomItemPicture(LPDISPATCH);
  37.  
  38. // Operations
  39. public:
  40.     void Clear();
  41.     CBranch Add(short relationship, short relative, LPCTSTR text);
  42.     CBranch Get(short relationship, short relative);
  43.     void Remove();
  44.     void Lock();
  45.     void Unlock();
  46.     BOOL IsLocked();
  47.     BOOL IsValid();
  48.     BOOL IsMainBranch();
  49.     void Open(short cmd);
  50.     void Close(short cmd);
  51.     void Select(short cmd);
  52.     long GetHandle();
  53. };
  54.  
  55. #endif // __BRANCH_H__
  56.