News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Right-To-Left windows

Started by ossama, December 25, 2007, 06:58:51 AM

Previous topic - Next topic

ossama

hello,
i am writing a program that is in arabic version,so it is Right-To-Left alignment,
when i created a window with the WS_EX_LAYOUTRTL extended style,then i created a listview using CreateWindowEx,it is ok ,there was no problem,
BUT when i created a dialog (using resources editor) and created a listview in it (using resources editor too) and set (right to left) flags in both dialog and listview (using resources editor) the result was that RTL (right to left) was applied to the dialog but it was not applied to the listview.
i had tried to set the WS_EX_LAYOUTRTL of the listview in the WM_INITDIALOG but it did not change to RTL.
is there any thing wrong ?

ossama

i have fixed the problem,i used this

.if message==WM_INITDIALOG
   invoke GetWindowLong,hdlg,GWL_EXSTYLE
   or eax,WS_EX_LAYOUTRTL
   invoke SetWindowLong,hdlg,GWL_EXSTYLE,eax
...
...
..


and i have changed the dialog properties in the resource editor to be left to right.

but why resource editor flags of RTL do not work.?