📄 property.cpp
字号:
// Property.cpp : CMyProperty 的实现
#include "stdafx.h"
#include "Property.h"
#include ".\property.h"
// CMyProperty
STDMETHODIMP CMyProperty::get_str(BSTR* pVal)
{
*pVal = m_str.Copy();
return S_OK;
}
STDMETHODIMP CMyProperty::put_str(BSTR newVal)
{
m_str = newVal;
return S_OK;
}
STDMETHODIMP CMyProperty::get_integer(LONG* pVal)
{
*pVal = m_integer;
return S_OK;
}
STDMETHODIMP CMyProperty::put_integer(LONG newVal)
{
m_integer = newVal;
return S_OK;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -