Link to home
Start Free TrialLog in
Avatar of Cyber-EE
Cyber-EE

asked on

afxMessageBox problem with hebrew in vista

Hi,

I have an application that uses in many places a AfxMessageBox to display messages to the user.
Until now i did not have any problems displaying the messages in english and hebrew. If i was in Hebrew mode then i changed the AfxMessage flags to Flags |= (MB_RIGHT|MB_RTLREADING) - i override the DoMessageBox method of CwinApp;
On vista i have a problem that messages in hebrew sometimes do not fit the window size and are cut in the middle.
This is very strange because on other OS i have no problem.

Avatar of lucky_james
lucky_james
Flag of India image

seems like it is because of the font you are using.
have you changed the font you have been using in past or its size?

In Vista, we use a different font for it being cleartype compliant.

ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Cyber-EE
Cyber-EE

ASKER

I did not change the font or size.
>>This is very strange because on other OS i have no problem.
then seems like a bug in vista.
You can go for a custom control then.

please have a look into links provided by jaime_olivares.



regards,
James
Forced accept.

Computer101
EE Admin