home *** CD-ROM | disk | FTP | other *** search
- // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
-
- // NOTE: Do not modify the contents of this file. If this class is regenerated by
- // Microsoft Visual C++, your modifications will be overwritten.
-
-
- #include "stdafx.h"
- #include "branch.h"
-
- // Dispatch interfaces referenced by this interface
- #include "picture.h"
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CBranch properties
-
- CString CBranch::GetText()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CBranch::SetText(LPCTSTR propVal)
- {
- SetProperty(0x1, VT_BSTR, propVal);
- }
-
- long CBranch::GetData()
- {
- long result;
- GetProperty(0x2, VT_I4, (void*)&result);
- return result;
- }
-
- void CBranch::SetData(long propVal)
- {
- SetProperty(0x2, VT_I4, propVal);
- }
-
- short CBranch::GetLevel()
- {
- short result;
- GetProperty(0x3, VT_I2, (void*)&result);
- return result;
- }
-
- void CBranch::SetLevel(short propVal)
- {
- SetProperty(0x3, VT_I2, propVal);
- }
-
- BOOL CBranch::GetIsOpen()
- {
- BOOL result;
- GetProperty(0x4, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CBranch::SetIsOpen(BOOL propVal)
- {
- SetProperty(0x4, VT_BOOL, propVal);
- }
-
- short CBranch::GetStandardItemPicture()
- {
- short result;
- GetProperty(0x5, VT_I2, (void*)&result);
- return result;
- }
-
- void CBranch::SetStandardItemPicture(short propVal)
- {
- SetProperty(0x5, VT_I2, propVal);
- }
-
- CPicture CBranch::GetCustomItemPicture()
- {
- LPDISPATCH pDispatch;
- GetProperty(0x6, VT_DISPATCH, (void*)&pDispatch);
- return CPicture(pDispatch);
- }
-
- void CBranch::SetCustomItemPicture(LPDISPATCH propVal)
- {
- SetProperty(0x6, VT_DISPATCH, propVal);
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CBranch operations
-
- void CBranch::Clear()
- {
- InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- CBranch CBranch::Add(short relationship, short relative, LPCTSTR text)
- {
- LPDISPATCH pDispatch;
- static BYTE parms[] =
- VTS_I2 VTS_I2 VTS_BSTR;
- InvokeHelper(0x8, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
- relationship, relative, text);
- return CBranch(pDispatch);
- }
-
- CBranch CBranch::Get(short relationship, short relative)
- {
- LPDISPATCH pDispatch;
- static BYTE parms[] =
- VTS_I2 VTS_I2;
- InvokeHelper(0x9, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
- relationship, relative);
- return CBranch(pDispatch);
- }
-
- void CBranch::Remove()
- {
- InvokeHelper(0xa, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- void CBranch::Lock()
- {
- InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- void CBranch::Unlock()
- {
- InvokeHelper(0xc, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- BOOL CBranch::IsLocked()
- {
- BOOL result;
- InvokeHelper(0xd, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
-
- BOOL CBranch::IsValid()
- {
- BOOL result;
- InvokeHelper(0xe, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
-
- BOOL CBranch::IsMainBranch()
- {
- BOOL result;
- InvokeHelper(0xf, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
-
- void CBranch::Open(short cmd)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x10, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- cmd);
- }
-
- void CBranch::Close(short cmd)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x11, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- cmd);
- }
-
- void CBranch::Select(short cmd)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x12, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- cmd);
- }
-
- long CBranch::GetHandle()
- {
- long result;
- InvokeHelper(0x13, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
- return result;
- }
-