15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Property Names in COlePropertyPage

Clarence Chiang -- ccchiang@hotmail.com
Wednesday, December 11, 1996

Environment : VC++ 4.0 Win95 & NT

I have a question about localization of property names in
COlePropertyPage. 

I am working on a project which needs to use CColorPropertyPage, and 
the OCX has several properties that will be displayed on that page.
But the problem is how can I localize the name when displaying on a
localized version of Win95 or NT. It is quite rude to ask a French 
or Greek user to navigate through English property names.

I am thinking about deriving a class from CColorPropertyPage and 
override OnInitialDialog() and manually insert localized string in
the combo box, but I don't know if this is the best answer.

Clarence Chiang


---------------------------------------------------------
Get Your *Web-Based* Free Email at http://www.hotmail.com
---------------------------------------------------------



Mike Blaszczak -- mikeblas@nwlink.com
Saturday, December 14, 1996

At 23:16 12/11/96 -0000, Clarence Chiang wrote:
>Environment : VC++ 4.0 Win95 & NT

>I am working on a project which needs to use CColorPropertyPage, and 
>the OCX has several properties that will be displayed on that page.
>But the problem is how can I localize the name when displaying on a
>localized version of Win95 or NT. It is quite rude to ask a French 
>or Greek user to navigate through English property names.

The LOCALIZE sample that's in the Visual C++ box shows how to do
exactly this.

>I am thinking about deriving a class from CColorPropertyPage and 
>override OnInitialDialog() and manually insert localized string in
>the combo box, but I don't know if this is the best answer.

That'll work, but it's more work than necessary.

.B ekiM
http://www.nwlink.com/~mikeblas/
I'm afraid I've become some sort of speed freak.
These words are my own. I do not speak on behalf of Microsoft.





| Вернуться в корень Архива |