I'm not sure if my Title for this question entirely describes accurately enough what I am trying to do but hopefully I'll explain myself better in this description.
I want to be able to configure a CEdit control by reading in its dwStyle parameters as a string from an XML file i.e. :-
CreateEx( WS_EX_CLIENTEDGE,L"EDIT",L"",WS_CHILD|WS_VISIBLE,
m_xPosition,m_yPosition,m_width,m_height,
m_pParent->m_hWnd,( HMENU )m_resourceID );
In this case, the dwStyle
is WS_CHILD|WS_VISIBLE
.
What I'd like to be able to do is to have this style as a string:
string dwStyleString = "WS_CHILD|WS_VISIBLE";
and to then use this string as the dwStyle
parameter but obviously in a way whereby it is recognized that it should be interpreted by the function not as a string, but as the function parameter.
Chances are that this is not possible, but hoping someone out there may be able to help, or possibly suggest another way of doing this.
Thanks in advance for any responses,
Dave