_cncalendar.cpp

来自「个人计算机定时自动执行软件,是 一个值得看看的程序。」· C++ 代码 · 共 200 行

CPP
200
字号
// 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 "_cncalendar.h"

/////////////////////////////////////////////////////////////////////////////
// C_CnCalendar

IMPLEMENT_DYNCREATE(C_CnCalendar, CWnd)

/////////////////////////////////////////////////////////////////////////////
// C_CnCalendar properties

/////////////////////////////////////////////////////////////////////////////
// C_CnCalendar operations

unsigned long C_CnCalendar::GetBottomBackColor()
{
	unsigned long result;
	InvokeHelper(0x68030008, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
	return result;
}

void C_CnCalendar::SetBottomBackColor(unsigned long newValue)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x68030008, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
		 newValue);
}

unsigned long C_CnCalendar::GetDateBackColor()
{
	unsigned long result;
	InvokeHelper(0x68030007, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
	return result;
}

void C_CnCalendar::SetDateBackColor(unsigned long newValue)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x68030007, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
		 newValue);
}

unsigned long C_CnCalendar::GetGridLinesColor()
{
	unsigned long result;
	InvokeHelper(0x68030006, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
	return result;
}

void C_CnCalendar::SetGridLinesColor(unsigned long newValue)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x68030006, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
		 newValue);
}

unsigned long C_CnCalendar::GetSelectColor()
{
	unsigned long result;
	InvokeHelper(0x68030005, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
	return result;
}

void C_CnCalendar::SetSelectColor(unsigned long newValue)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x68030005, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
		 newValue);
}

BOOL C_CnCalendar::GetShowVerticalGrid()
{
	BOOL result;
	InvokeHelper(0x68030004, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
	return result;
}

void C_CnCalendar::SetShowVerticalGrid(BOOL bNewValue)
{
	static BYTE parms[] =
		VTS_BOOL;
	InvokeHelper(0x68030004, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
		 bNewValue);
}

BOOL C_CnCalendar::GetShowHorizontalGrid()
{
	BOOL result;
	InvokeHelper(0x68030003, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
	return result;
}

void C_CnCalendar::SetShowHorizontalGrid(BOOL bNewValue)
{
	static BYTE parms[] =
		VTS_BOOL;
	InvokeHelper(0x68030003, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
		 bNewValue);
}

unsigned long C_CnCalendar::GetTitleBackColor()
{
	unsigned long result;
	InvokeHelper(0x68030002, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
	return result;
}

void C_CnCalendar::SetTitleBackColor(unsigned long newValue)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x68030002, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
		 newValue);
}

unsigned long C_CnCalendar::GetWeekBackColor()
{
	unsigned long result;
	InvokeHelper(0x68030001, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
	return result;
}

void C_CnCalendar::SetWeekBackColor(unsigned long newValue)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x68030001, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
		 newValue);
}

DATE C_CnCalendar::GetValue()
{
	DATE result;
	InvokeHelper(0x68030000, DISPATCH_PROPERTYGET, VT_DATE, (void*)&result, NULL);
	return result;
}

void C_CnCalendar::SetValue(DATE newValue)
{
	static BYTE parms[] =
		VTS_DATE;
	InvokeHelper(0x68030000, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
		 newValue);
}

CString C_CnCalendar::GetChineseDate()
{
	CString result;
	InvokeHelper(0x60030022, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
	return result;
}

CString C_CnCalendar::GetChineseGanZhi()
{
	CString result;
	InvokeHelper(0x60030023, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
	return result;
}

CString C_CnCalendar::GetChineseMonth()
{
	CString result;
	InvokeHelper(0x60030024, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
	return result;
}

CString C_CnCalendar::GetChineseDay()
{
	CString result;
	InvokeHelper(0x60030025, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
	return result;
}

CString C_CnCalendar::GetChineseAnimal()
{
	CString result;
	InvokeHelper(0x60030026, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
	return result;
}

CString C_CnCalendar::GetConstellation(DATE theDate)
{
	CString result;
	static BYTE parms[] =
		VTS_DATE;
	InvokeHelper(0x60030027, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
		theDate);
	return result;
}

⌨️ 快捷键说明

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