⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calctype.cpp

📁 书中的例程 书中的例程 书中的例程 书中的例程 书中的例程 书中的例程
💻 CPP
字号:
// Machine generated IDispatch driver class(es) created with ClassWizard.
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1998 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.

#include "stdafx.h"
#include "calctype.h"

/////////////////////////////////////////////////////////////////////////////
// CRemoteCalcDlg properties

long CRemoteCalcDlg::GetAccum()
{
	long result;
	GetProperty(0x1, VT_I4, (void*)&result);
	return result;
}

void CRemoteCalcDlg::SetAccum(long propVal)
{
	SetProperty(0x1, VT_I4, propVal);
}

long CRemoteCalcDlg::GetOperand()
{
	long result;
	GetProperty(0x2, VT_I4, (void*)&result);
	return result;
}

void CRemoteCalcDlg::SetOperand(long propVal)
{
	SetProperty(0x2, VT_I4, propVal);
}

short CRemoteCalcDlg::GetOperation()
{
	short result;
	GetProperty(0x3, VT_I2, (void*)&result);
	return result;
}

void CRemoteCalcDlg::SetOperation(short propVal)
{
	SetProperty(0x3, VT_I2, propVal);
}

BOOL CRemoteCalcDlg::GetVisible()
{
	BOOL result;
	GetProperty(0x4, VT_BOOL, (void*)&result);
	return result;
}

void CRemoteCalcDlg::SetVisible(BOOL propVal)
{
	SetProperty(0x4, VT_BOOL, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// CRemoteCalcDlg operations

BOOL CRemoteCalcDlg::Evaluate()
{
	BOOL result;
	InvokeHelper(0x5, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
	return result;
}

void CRemoteCalcDlg::Clear()
{
	InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CRemoteCalcDlg::Display()
{
	InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CRemoteCalcDlg::Close()
{
	InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

BOOL CRemoteCalcDlg::Button(LPCTSTR szButton)
{
	BOOL result;
	static BYTE BASED_CODE parms[] =
		VTS_BSTR;
	InvokeHelper(0x9, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		szButton);
	return result;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -