mackayd
asked on
ws_ex_right in a text box (VC++ program)
I am writing a program in VC++ that contains a text box. I wish to visually differentiate data entry in the box from data display by having data entry left justified and data display right justified.
I have tried to use the ModifyStyleEx() function with the WS_EX_LEFT and WS_EX_RIGHT values but all I get is a success status returned - the text is unaltered.
1) Is there something else I need to do?
2) Is there a better way to achieve this effect?
Thanks
I have tried to use the ModifyStyleEx() function with the WS_EX_LEFT and WS_EX_RIGHT values but all I get is a success status returned - the text is unaltered.
1) Is there something else I need to do?
2) Is there a better way to achieve this effect?
Thanks
Use ES_LEFT and ES_RIGHT instead. And note ES_RIGHT right-aligns text in a multiline edit control on Windows 95 and Windows NT 4.0.
ASKER
I believe that this is on the right track but...
I have tried this with ModifyStyle and ModifyStyleEx (which I know is probably the wrong one) but the effect is the same - I get a success status but no change in the display. It doesn't matter if the text box is set to single or multiline.
Any further ideas?
Thanks
Don
I have tried this with ModifyStyle and ModifyStyleEx (which I know is probably the wrong one) but the effect is the same - I get a success status but no change in the display. It doesn't matter if the text box is set to single or multiline.
Any further ideas?
Thanks
Don
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sigh - thanks for the information. I had searched the knowledgebase but I was looking for the WS_EX_RIGHT keyword so I missed this one.
Thanks
Thanks