Discussion:
Convert THEMEGUARD Colors in RGB
(too old to reply)
kippi
2012-05-16 13:20:58 UTC
Permalink
Hello*,

I access Visio Shape colors in C++ as follows:

m_VCell.AttachDispatch(m_VShape1.GetCellsSRC(VISSECTIONOBJECT,
VISROWFILL, VISFILLFOREGND));
CString sColorNew = m_VCell.GetFormula();

(VISSECTIONOBJECT, VISROWFILL, VISFILLFOREGND are #define values.)

According to Visio Version (2003 - 2010) I get as sColorNew either
the RGB(...) value or something as "THEMEGUARD(THEME("AccentColor2");
24)".

How can I convert THEMEGUARD(...) in RGB(...) ?

Thanks for any hint!

Václav
Paul Herber
2012-05-16 14:18:47 UTC
Permalink
Post by kippi
Hello*,
m_VCell.AttachDispatch(m_VShape1.GetCellsSRC(VISSECTIONOBJECT,
VISROWFILL, VISFILLFOREGND));
CString sColorNew = m_VCell.GetFormula();
(VISSECTIONOBJECT, VISROWFILL, VISFILLFOREGND are #define values.)
According to Visio Version (2003 - 2010) I get as sColorNew either
the RGB(...) value or something as "THEMEGUARD(THEME("AccentColor2");
24)".
How can I convert THEMEGUARD(...) in RGB(...) ?
Thanks for any hint!
Václav
These newsgroups are no longer in use and it is unlikely that you will get an answer here.
There are replacement forums for Visio, Microsoft's own:
http://social.technet.microsoft.com/Forums/en-US/visiogeneral/threads
http://answers.microsoft.com/en-us/office/forum/visio?page=1&tab=all

or Visio MVP VisioGuy
http://www.visguy.com/vgforum/
--
Regards, Paul Herber, Sandrila Ltd.
Electronics for Visio http://www.sandrila.co.uk/visio-electronics/
Electrical for Visio http://www.sandrila.co.uk/visio-electrical/
Electronics Packages for Visio http://www.sandrila.co.uk/visio-electronics-packages/
TTL for Visio http://www.sandrila.co.uk/visio-ttl/
CMOS for Visio http://www.sandrila.co.uk/visio-cmos/
Loading...