summaryrefslogtreecommitdiff
path: root/iup/srcole/tAmbientProperties.h
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-11-04 11:56:41 -0800
committerPixel <pixel@nobis-crew.org>2009-11-04 11:59:33 -0800
commitd577d991b97ae2b5ee1af23641bcffc3f83af5b2 (patch)
tree590639d50205d1bcfaff2a7d2dc6ebf3f373c7ed /iup/srcole/tAmbientProperties.h
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'iup/srcole/tAmbientProperties.h')
-rwxr-xr-xiup/srcole/tAmbientProperties.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/iup/srcole/tAmbientProperties.h b/iup/srcole/tAmbientProperties.h
new file mode 100755
index 0000000..359e733
--- /dev/null
+++ b/iup/srcole/tAmbientProperties.h
@@ -0,0 +1,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_)