Convert THEMEGUARD Colors in RGB


K

kippi

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
 
Ad

Advertisements

P

Paul Herber

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
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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top