blob: 359e7337245fd50cacd44548f9bb77c8930ab5a2 (
plain)
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
41
42
43
44
45
46
47
|
// tAmbientProperties.h: interface for the tAmbientProperties class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TAMBIENTPROPERTIES_H__FC01B4C7_4918_11D4_9DF5_0000B45D6611__INCLUDED_)
#define AFX_TAMBIENTPROPERTIES_H__FC01B4C7_4918_11D4_9DF5_0000B45D6611__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include <windows.h>
#include <olectl.h>
class tAmbientProperties
{
public:
void setControl(IOleControl *olecontrol);
void setBackColor(int red, int green, int blue, bool notify);
void setForeColor(int red, int green, int blue, bool notify);
BOOL getDesignMode(void);
LCID getLCID(void);
IFontDisp * getFontRef(void);
bool has_font(void);
OLE_COLOR getForeColor(void);
OLE_COLOR getBackColor(void);
void setDesignMode(bool value, bool notify);
tAmbientProperties();
virtual ~tAmbientProperties();
protected:
// Utilizado para notificar mudancas nas propriedades
LPOLECONTROL m_pIOleControl;
// propriedades
OLE_COLOR m_clrBack;
OLE_COLOR m_clrFore;
IFontDisp *m_pIFont;
LCID m_lcid;
BOOL m_fDesignMode;
BOOL m_fUIDead;
BOOL m_fHatchHandles;
};
#endif // !defined(AFX_TAMBIENTPROPERTIES_H__FC01B4C7_4918_11D4_9DF5_0000B45D6611__INCLUDED_)
|