Click here to Skip to main content
12,241,861 members (45,424 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VisualC++
Hi,

I have a problem of UI mirroring (For Arabic or Hebrew languages) with system dialogs such as file open/save, browser for folder. I have set WS_EX_LAYOUTRTL style but still its not working. Some controls on the dialog get mirrored, not all. What else I have to do to get it working?

Thanks & Regards,
Vaibhav D. Gade.
Posted 30-Aug-12 22:13pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Try also:
WS_EX_RIGHT
WS_EX_RTLREADING

You may also have to call ::EnumChildWindows() and change styles of child windows. For buttons and checboxes, BS_RIGHT | BS_LEFTTEXT; for static controls, SS_RIGHT: for all child windows, WS_EX_RIGHT.

Hope this helps,
Pablo.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Thanks your response.

Few minutes ago, I have found a solution as following:
If parent dialog is having WS_EX_LAYOUTRTL and operating system language is arablic or any other right to left reading language, then file open/save dialog or browse for folder dialog automatically gets mirrored.

Thanks,
Vaibhav.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 2 Sep 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100