Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Read COLORREF values from XML file.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Read COLORREF values from XML file.

 Post Reply Post Reply
Author
Message Reverse Sort Order
sheetal View Drop Down
Newbie
Newbie


Joined: 17 April 2008
Location: Netherlands
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote sheetal Quote  Post ReplyReply Direct Link To This Post Topic: Read COLORREF values from XML file.
    Posted: 16 May 2008 at 4:41am
Thanks  mqampi and Oleg,

This has solve my Problem.

Sheetal
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2008 at 1:19am
Hi,
 
Don't use ExchangeProp, use PX_XXX instead:
PX_String, PX_DWord,PX_Rect etc.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2008 at 3:36pm

Hi;

You can try

COLORREF color;
ExchangeProp("Color", VT_I4, &color);

otherwise take a look at PX_Color() function defined in afxctl.h. 

Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
sheetal View Drop Down
Newbie
Newbie


Joined: 17 April 2008
Location: Netherlands
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote sheetal Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2008 at 10:54am
I have defined layout in XML file and i ma reading some values using
ExchangeProp(LPCTSTR pszPropName, VARTYPE vtProp,
                void* pvProp, const void* pvDefault = NULL);

function.

Though i am able to read CString and bool values using this.
Can I read COLORREF values (RGB) using this?

Sheetal
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.