Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » InitLocalizedChildren Collapse All
Subject Author Date
Ganesan Umanesan May 29, 2005 - 11:26 PM

I’m using the CExtResizablePropertySheet class and I support a couple of different languages in my program.
Currently the property sheet buttons (Next, Finish, etc) display in the OS language. I’d like them to be displayed in the language that the user chooses (my program uses code like the in LanguageSwitcher example).
I noticed the InitLocalizedChildren() function inside the CExtResPS class has been commented out with a big "TODO". I assume this function is for loading localized strings and updating the property sheet template.
Can you give me or tell me how to implement this function - provided that is what I need. If not, how should I go about localizing the Property Sheet buttons like Next, Finish, Apply, etc.

Thanks.

Technical Support May 30, 2005 - 8:47 AM

The property sheet control is based on IDD_WIZARD (which is equal to decimal 1020) and IDD_PROPSHEET (which is equal to decimal 1006) dialog template resources in the COMCTL32.DLL module available in any Windows OS. Typically these resources come in several translations. We encountered irresolvable problems when tried to make the PropertySheet() Win32 API use localized property sheet dialog template resource. This API simply does not allow you to specify the resource language of the property sheet’s dialog template. We have done some experimental work with window text replacement of the created property sheet according to the property sheet dialog template loaded in the parallel mode. But we think this solution is not good enough and may cause problems in future Windows OSes. At least, width of standard buttons and their order may be different for some languages.