📄 clockctrl.h
字号:
#pragma once
// 计算机生成了由 Microsoft Visual C++ 创建的 IDispatch 包装类
// 注意:不要修改此文件的内容。如果此类由
// Microsoft Visual C++ 重新生成,您的修改将被改写。
/////////////////////////////////////////////////////////////////////////////
// CClockctrl 包装类
class CClockctrl : public CWnd
{
protected:
DECLARE_DYNCREATE(CClockctrl)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x704186E9, 0x470C, 0x480C, { 0x90, 0x36, 0xD3, 0x9, 0xB9, 0xB7, 0xAC, 0xCF } };
return clsid;
}
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext = NULL)
{
return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID);
}
BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd,
UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE,
BSTR bstrLicKey = NULL)
{
return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
pPersist, bStorage, bstrLicKey);
}
// 属性
public:
// 操作
public:
// _DClock
// Functions
//
void AboutBox()
{
InvokeHelper(DISPID_ABOUTBOX, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void StartTimeKeeper()
{
InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
long KillTimekeeper()
{
long result;
InvokeHelper(0x5, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
return result;
}
void SetActiveTime(short hour, short min, short sec)
{
static BYTE parms[] = VTS_I2 VTS_I2 VTS_I2 ;
InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, parms, hour, min, sec);
}
// Properties
//
unsigned long GetBackColor()
{
unsigned long result;
GetProperty(DISPID_BACKCOLOR, VT_UI4, (void*)&result);
return result;
}
void SetBackColor(unsigned long propVal)
{
SetProperty(DISPID_BACKCOLOR, VT_UI4, propVal);
}
unsigned long GetForeColor()
{
unsigned long result;
GetProperty(DISPID_FORECOLOR, VT_UI4, (void*)&result);
return result;
}
void SetForeColor(unsigned long propVal)
{
SetProperty(DISPID_FORECOLOR, VT_UI4, propVal);
}
unsigned long GethourPosColor()
{
unsigned long result;
GetProperty(0x1, VT_UI4, (void*)&result);
return result;
}
void SethourPosColor(unsigned long propVal)
{
SetProperty(0x1, VT_UI4, propVal);
}
short GetPenWidth()
{
short result;
GetProperty(0x2, VT_I2, (void*)&result);
return result;
}
void SetPenWidth(short propVal)
{
SetProperty(0x2, VT_I2, propVal);
}
CString GetFactoryName()
{
CString result;
GetProperty(0x3, VT_BSTR, (void*)&result);
return result;
}
void SetFactoryName(CString propVal)
{
SetProperty(0x3, VT_BSTR, propVal);
}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -