windows-nt/Source/XPSP1/NT/inetsrv/iis/ui/admin/fscfg/logui.cpp
2020-09-26 16:20:57 +08:00

102 lines
2.2 KiB
C++

// 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 "logui.h"
// Dispatch interfaces referenced by this interface
#include "font.h"
/////////////////////////////////////////////////////////////////////////////
// CLogUI
IMPLEMENT_DYNCREATE(CLogUI, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CLogUI properties
CString CLogUI::GetCaption()
{
CString result;
GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
return result;
}
void CLogUI::SetCaption(LPCTSTR propVal)
{
SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
}
COleFont CLogUI::GetFont()
{
LPDISPATCH pDispatch;
GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
return COleFont(pDispatch);
}
void CLogUI::SetFont(LPDISPATCH propVal)
{
SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
}
BOOL CLogUI::GetEnabled()
{
BOOL result;
GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
return result;
}
void CLogUI::SetEnabled(BOOL propVal)
{
SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}
short CLogUI::GetBorderStyle()
{
short result;
GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
return result;
}
void CLogUI::SetBorderStyle(short propVal)
{
SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CLogUI operations
void CLogUI::SetAdminTarget(LPCTSTR szMachineName, LPCTSTR szMetaTarget)
{
static BYTE parms[] =
VTS_BSTR VTS_BSTR;
InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
szMachineName, szMetaTarget);
}
void CLogUI::ApplyLogSelection()
{
InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CLogUI::SetComboBox(HWND hComboBox)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
hComboBox);
}
void CLogUI::Terminate()
{
InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CLogUI::DoClick()
{
InvokeHelper(DISPID_DOCLICK, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}