property.cpp
来自「Thinkinc++English 电子书籍,英文版」· C++ 代码 · 共 34 行
CPP
34 行
// 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 + =
减小字号Ctrl + -
显示快捷键?