-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAProp.H
More file actions
40 lines (34 loc) · 1.04 KB
/
Copy pathAProp.H
File metadata and controls
40 lines (34 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// File: AProp.H
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Classes Reference and related electronic
// documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft C++ Libraries products.
class CAmbientProperty :
public CObject
{
DECLARE_SERIAL( CAmbientProperty );
public:
CAmbientProperty();
CAmbientProperty( DISPID dispid, LPCTSTR pszName, const VARIANT& var,
int vti, BOOL tStock = FALSE );
CAmbientProperty& operator=( const CAmbientProperty& prop );
void Enable( BOOL tEnabled );
DISPID GetID() const;
CString GetName() const;
const COleVariant& GetValue() const;
int GetVTI() const;
BOOL IsEnabled() const;
BOOL IsStock() const;
void SetValue( const VARIANT& varValue, int vti = -1 );
void Serialize( CArchive& ar );
protected:
DISPID m_dispid;
CString m_strName;
COleVariant m_varValue;
int m_vti;
BOOL m_tEnabled;
BOOL m_tStock;
};