作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2005, Vol. 31 ›› Issue (21): 97-99.

• 论文 • 上一篇    下一篇

基于Windows消息机制的软件本地化

龚力柱,蒋泽军,王丽芳   

  1. 西北工业大学计算机学院,西北工业大学计算机学院,西北工业大学计算机学院 西安 710072
  • 发布日期:2005-11-15

Software Localization Based on Windows Messages

GONG Lizhu,JIANG Zejun,WANG Lifang   

  1. (College of Computer,Northwestern Polytechnical University,Xi’an 710072)
  • Published:2005-11-15

摘要: 探讨了利用Windows内部机制来实现软件本地化的方法。应用程序的消息循环是Windows程序运行的核心,该方法利用钩子函数截取消息,添加新的窗口函数来改变应用程序对消息的处理策略。消息处理策略的可以变化改变界面各个控件的文本内容、大小、位置等属性。从而在应用程序运行时显示的就是经过调整的界面,使应用程序的语言和界面布局符合本地化要求。

关键词: 本地化, 消息机制, 窗口函数

Abstract: In order to render the localization of software,this article probes into the methods of software localization via the system of Windows messages.The process strategy applied to messages by Windows hook and disposal of the messages can be changed through adding Windows functions.The changes of messages’ parameters will lead to the alternation of caption,size,and position of each window and control.Thus,the interface layout which matches the requirements of localization displaces when the software is run.

中图分类号: