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 "pvibranch.h"
-
- // Dispatch interfaces referenced by this interface
- #include "Picture.h"
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CPVIBranch properties
-
- CString CPVIBranch::GetText()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CPVIBranch::SetText(LPCTSTR propVal)
- {
- SetProperty(0x1, VT_BSTR, propVal);
- }
-
- long CPVIBranch::GetData()
- {
- long result;
- GetProperty(0x2, VT_I4, (void*)&result);
- return result;
- }
-
- void CPVIBranch::SetData(long propVal)
- {
- SetProperty(0x2, VT_I4, propVal);
- }
-
- short CPVIBranch::GetLevel()
- {
- short result;
- GetProperty(0x3, VT_I2, (void*)&result);
- return result;
- }
-
- void CPVIBranch::SetLevel(short propVal)
- {
- SetProperty(0x3, VT_I2, propVal);
- }
-
- BOOL CPVIBranch::GetIsOpen()
- {
- BOOL result;
- GetProperty(0x4, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CPVIBranch::SetIsOpen(BOOL propVal)
- {
- SetProperty(0x4, VT_BOOL, propVal);
- }
-
- long CPVIBranch::GetStandardItemPicture()
- {
- long result;
- GetProperty(0x5, VT_I4, (void*)&result);
- return result;
- }
-
- void CPVIBranch::SetStandardItemPicture(long propVal)
- {
- SetProperty(0x5, VT_I4, propVal);
- }
-
- CPicture CPVIBranch::GetCustomItemPicture()
- {
- LPDISPATCH pDispatch;
- GetProperty(0x6, VT_DISPATCH, (void*)&pDispatch);
- return CPicture(pDispatch);
- }
-
- void CPVIBranch::SetCustomItemPicture(LPDISPATCH propVal)
- {
- SetProperty(0x6, VT_DISPATCH, propVal);
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CPVIBranch operations
-
- void CPVIBranch::Clear()
- {
- InvokeHelper(0x1f4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- CPVIBranch CPVIBranch::Add(long relationship, short relative, LPCTSTR Text)
- {
- LPDISPATCH pDispatch;
- static BYTE parms[] =
- VTS_I4 VTS_I2 VTS_BSTR;
- InvokeHelper(0x1f5, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
- relationship, relative, Text);
- return CPVIBranch(pDispatch);
- }
-
- CPVIBranch CPVIBranch::Get(long relationship, short relative)
- {
- LPDISPATCH pDispatch;
- static BYTE parms[] =
- VTS_I4 VTS_I2;
- InvokeHelper(0x1f6, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
- relationship, relative);
- return CPVIBranch(pDispatch);
- }
-
- void CPVIBranch::Remove()
- {
- InvokeHelper(0x1f7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- void CPVIBranch::Lock()
- {
- InvokeHelper(0x1f8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- void CPVIBranch::Unlock()
- {
- InvokeHelper(0x1f9, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- BOOL CPVIBranch::IsLocked()
- {
- BOOL result;
- InvokeHelper(0x1fa, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
-
- BOOL CPVIBranch::IsValid()
- {
- BOOL result;
- InvokeHelper(0x1fb, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
-
- BOOL CPVIBranch::IsMainBranch()
- {
- BOOL result;
- InvokeHelper(0x1fc, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
-
- void CPVIBranch::Open(long cmd)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x1fd, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- cmd);
- }
-
- void CPVIBranch::Close(long cmd)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x1fe, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- cmd);
- }
-
- void CPVIBranch::Select(long cmd)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x1ff, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- cmd);
- }
-
- long CPVIBranch::GetHandle()
- {
- long result;
- InvokeHelper(0x200, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
- return result;
- }
-