dice.cpp
来自「我要下载源代码我要源代码我要下载代码我要下载源代码」· C++ 代码 · 共 69 行
CPP
69 行
// 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 "dice.h"
/////////////////////////////////////////////////////////////////////////////
// CDice
IMPLEMENT_DYNCREATE(CDice, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CDice properties
long CDice::GetRollingInterval()
{
long result;
GetProperty(0x1, VT_I4, (void*)&result);
return result;
}
void CDice::SetRollingInterval(long propVal)
{
SetProperty(0x1, VT_I4, propVal);
}
unsigned long CDice::GetBallColor()
{
unsigned long result;
GetProperty(0x2, VT_I4, (void*)&result);
return result;
}
void CDice::SetBallColor(unsigned long propVal)
{
SetProperty(0x2, VT_I4, propVal);
}
unsigned long CDice::GetPanelColor()
{
unsigned long result;
GetProperty(0x3, VT_I4, (void*)&result);
return result;
}
void CDice::SetPanelColor(unsigned long propVal)
{
SetProperty(0x3, VT_I4, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CDice operations
void CDice::StartRolling(short max)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
max);
}
void CDice::AboutBox()
{
InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?