Hi there,
How can I right align text in a combo box. The Design
time property 'Right aligned text' on the 'Extended
Styles' page did not work. I would also like to know what
this property is for.
Thanks
SPA
If a style won't do it, I guess you'll have to make the combo box "owner draw",
and place the text yourself.
Checking the 'Right aligned text' property on the 'Extended Styles' page inserts the WS_EX_RIGHT style to the ComboBox styles definition (You can open the .rc file in
text mode to make sure this style is added).
However, this style has an effect only if the shell language is Hebrew, Arabic, or another language that supports reading-order alignment; otherwise, the style is
ignored.
As far as I know, it works on the Hebrew version NT and any version of Windows 2000, but not on English version NT.
Regards,
Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.
Need quick answers to questions like these? The Microsoft Knowledge Base provides a wealth of information that you can use to troubleshoot a problem or answer a
question! It's located at http://support.microsoft.com/support/c.asp?M=F>.
--------------------
>Content-Class: urn:content-classes:message
>From: "SPA" <savind...@avl.com>
>Sender: "SPA" <savind...@avl.com>
>Subject: Right Aligning Text in a ComboBox
>Date: Sun, 6 Jan 2002 22:29:16 -0800
>Lines: 13
>Message-ID: <825001c19744$a18d5910$9be62ecf@tkmsftngxa03>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
>Thread-Index: AcGXRKGNX17EYCU6Qy+aQv6VPjOr8A==
>Newsgroups: microsoft.public.vc.mfc
>Path: cpmsftngxa07
>Xref: cpmsftngxa07 microsoft.public.vc.mfc:307504
>NNTP-Posting-Host: TKMSFTNGXA03 10.201.232.162
>X-Tomcat-NG: microsoft.public.vc.mfc