CN100530099C - Process for keeping consistent software skin with able-board topics under windows platform - Google Patents
Process for keeping consistent software skin with able-board topics under windows platform Download PDFInfo
- Publication number
- CN100530099C CN100530099C CNB2007100499575A CN200710049957A CN100530099C CN 100530099 C CN100530099 C CN 100530099C CN B2007100499575 A CNB2007100499575 A CN B2007100499575A CN 200710049957 A CN200710049957 A CN 200710049957A CN 100530099 C CN100530099 C CN 100530099C
- Authority
- CN
- China
- Prior art keywords
- software
- theme
- skin
- desktop
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Abstract
The present invention discloses a method which can keep the software skin consistent with the desktop theme under a Windows platform. The resources of the desktop theme are stored in the directory of the system disk: \Windows\Resources\Themes\ (WinXP), under the directory, files with suffixes of dll, theme and msstyles are provided. The present invention is characterized in that the GetCurrentThemeName function is automatically called to attain the current desktop theme file to analyze the file cognominal dll, theme, and msstyules when software starts to run, so as to get the resource file which is correlative with the desktop theme, then the picture resource file is read, and the read picture resource file is loaded to be the current skin of the software; the present invention can allow the skin of the software to match with the desktop theme under the condition that the computer user collocates any desktop theme, all the different skins used when the current desktop theme is loaded keep consistent with the desktop themes, thus making the visual effect of the computer user more comfortable.
Description
Technical field
The present invention relates to the windows platform interface programming, is a kind of a kind of method that improves the interface ornamental.
Background technology
The user is according to the selected skin configuration of liking of the hobby of oneself often for the desktop theme of computing machine, and the desktop theme normally customizes the desktop of your computer of the look and feel in a kind of interesting mode.Independence when the skin of regular software is developed because of it, oneself skin configuration is independently arranged, software skin is meant by professional art designing to be the graphical interfaces in order to alternative Windows default style of application customization, the skin configuration that software is fixing often when in use, with operating system be antipathetic; Even the skin of regular software configuration has the function of changing skin, also need and must write the function that skin is changed in loading in advance by the developer earlier, also need the skin resource that provides a large amount of simultaneously, this can strengthen the construction cycle of regular software again.
At above two problems, the best way is when not influencing software development, and software is matched with the desktop theme, but does not also have extraordinary way to solve now.
Summary of the invention
The present invention is in order to solve the problem that software and desktop theme are complemented one another, the method that allows software skin and desktop theme be consistent under a kind of windows platform is provided, can allow software use different software skins, thereby reach the software purpose consistent with the desktop theme according to different desktop themes.
Technical scheme of the present invention is as follows:
The method that allows software skin and desktop theme be consistent under a kind of windows platform, the resource of described desktop theme all is kept at the system disk of this machine: Windows Resources in Themes (WinXP) catalogue, having under this catalogue with dll (dynamic link library file), theme (windows desktop subject document) and msstyles (visual document style) are the file of suffix, it is characterized in that: when software brings into operation, call GetCurrentThemeName function (obtaining) automatically and obtain when the front desktop subject document when the front desktop proposition function, the dll of the same name (dynamic link library file) to file, theme (windows desktop subject document) and msstyles (visual document style) analyze, obtain the resource file relevant with the desktop theme, read the picture resource file then, and the picture resource file load that obtains is the current skin of software.
Described read that the picture resource file is to use generally read the figure sheet mode, promptly use API that Microsoft provides (application programming interfaces) to read, concrete acquisition methods can be with reference to Image related content among the MSDN (developer's of software-oriented of Microsoft information service).
Described is the common skin software institute use-pattern of changing that the current skin of software is to use with the picture resource file load that obtains, be about to the set that all controls all are split as a plurality of pictures, and can determine control required picture this moment by different zone bits, be read configuration.
Monitor windows messaging, when receiving WM_THEMECHANGED message (desktop theme change message), then represent to change when the front desktop theme, obtain the situation of change of desktop theme by using the GetCurrentThemeName function this moment, analytical procedure when repetition software brings into operation after the desktop theme changes, make the skin of software follow change synchronously, and it is identical with other mode that loads skin to shift gears, and only needs to carry out certain adjustment according to the default form of picture in the theme resource.
Described is that the file of suffix is desktop theme associated documents with theme (windows desktop subject document), has write down the configuration information of this desktop theme; With msstyles (visual document style) is that the file of suffix is desktop outward appearance configuration information and main resource file; Be then to be the detailed description of associated appearance configuration in the file of suffix with d11 (dynamic link library file).
Described is that the file of suffix is an INI (configuration file) file with theme (windows desktop subject document), can obtain control position and the colouring information relevant with the desktop theme easily to this ini file analysis; With msstyles (visual document style) is the file of suffix and the file that is suffix all is a dynamic link library file with dll, only needs just can obtain wherein control configuration information and control resource requirement file according to the analysis to dynamic link library.
Described ini file is the configuration file that a kind of Microsoft provides, and detailed structure can be introduced with reference to the official of Microsoft.To the detailed function interface that the analysis Microsoft of INI also provides, related function and implementation method can be obtained from MSDN (developer's of software-oriented of Microsoft information service).
Described dynamic link library file has mainly provided a kind of method, makes process can call the function that does not belong to its executable code; The relevant dynamic link library file of desktop theme mainly be in order to store needed relevant configuration of desktop theme and resource file, concrete acquisition methods can be with reference to ImageHlp related content among the MSDN (developer's of software-oriented of Microsoft information service).
Beneficial effect of the present invention is as follows:
The present invention can allow the computer user under the situation of any desktop theme of configuration, the skin of software all can be complementary with the desktop theme, load when the employed different skin of front desktop theme, software all can be consistent with the desktop theme, can make computer user's visual effect more comfortable like this.
Description of drawings
Fig. 1 is a processing flow chart of the present invention
Fig. 2 is part configuration and a resource information in the msstyles file of the present invention
Fig. 3 by theme of the present invention the basic skin resource legend of correspondence
Embodiment
Embodiment
The method that allows software skin and desktop theme be consistent under a kind of windows platform, the resource of described desktop theme all is kept at the system disk of this machine: Windows Resources in Themes (WinXP) catalogue, having under this catalogue with dll, theme and msstyles are the file of suffix, when software brings into operation, call the GetCurrentThemeName function automatically and obtain current desktop subject document, the dll of the same name to file, theme and msstyles analyze, obtain the resource file relevant with the desktop theme, read the picture resource file then, and the picture resource file load that obtains is the current skin of software.
Described read that the picture resource file is to use generally read the figure sheet mode, promptly use API that Microsoft provides (application programming interfaces) to read, concrete acquisition methods can be with reference to Image related content among the MSDN (developer's of software-oriented of Microsoft information service).
Described is that the current skin of software is to use the common skin software institute use-pattern of changing with the picture resource file load that obtains, be about to the set that all controls all are split as a plurality of pictures, and can determine control required picture this moment by different zone bits, be read configuration.
Monitor windows messaging, when receiving WM_THEMECHANGED message, then represent to change when the front desktop theme, obtain the situation of change of desktop theme by using the GetCurrentThemeName function this moment, analytical procedure when repetition software brings into operation after the desktop theme changes, make the skin of software follow change synchronously, and it is identical with other mode that loads skin to shift gears, and only needs to carry out certain adjustment according to the default form of picture in the theme resource.
Described is that the file of suffix is desktop theme associated documents with theme, has write down the configuration information of this desktop theme; The file that with msstyles is suffix is desktop outward appearance configuration information and main resource file; Be then to be the detailed description of associated appearance configuration in the file of suffix with dll.
Described is that the file of suffix is an ini file with theme, can obtain control position and the colouring information relevant with the desktop theme easily to this ini file analysis; Is that the file of suffix all is a dynamic link library file with the file that is suffix with d11 with msstyles, only needs just can obtain wherein control configuration information and control resource requirement file, see shown in Figure 2 according to analysis to dynamic link library.
Described ini file is the configuration file that a kind of Microsoft provides, and detailed structure can be introduced with reference to the official of Microsoft.To the detailed function interface that the analysis Microsoft of INI also provides, related function and implementation method can be obtained from MSDN.
Described dynamic link library file has mainly provided a kind of method, makes process can call the function that does not belong to its executable code; The relevant dynamic link library file of desktop theme mainly be in order to store needed relevant configuration of desktop theme and resource file, concrete acquisition methods can be with reference to ImageHlp related content among the MSDN (developer's of software-oriented of Microsoft information service).
Claims (3)
1, the method that allows software skin and desktop theme be consistent under a kind of windows platform, the resource of desktop theme all is kept at this machine system disk: Windows Resources in the Themes catalogue, having under this catalogue with dll, theme and msstyles are the file of suffix, it is characterized in that: when software brings into operation, call the GetCurrentThemeName function automatically and obtain current desktop subject document, the dll of the same name to file, theme and msstyles analyze, obtain the picture resource file relevant with the desktop theme, read the picture resource file then, and the picture resource file load that obtains is the current skin of software; In the software running process, by monitoring windows messaging, when receiving WM_THEMECHANGED message, then represent to change when the front desktop theme, analytical procedure when repetition software brings into operation after the desktop theme changes, make the skin of software follow change synchronously, default form according to picture in the theme resource is adjusted, and skin and the desktop theme with software is consistent then.
2, the method that allows software skin and desktop theme be consistent under a kind of windows platform according to claim 1 is characterized in that: described read that the picture resource file is to use generally read the figure sheet mode.
3, the method that allows software skin and desktop theme be consistent under a kind of windows platform according to claim 1 is characterized in that: described with the picture resource file load that obtains be the current skin of software be to use change skin software institute use-pattern.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007100499575A CN100530099C (en) | 2007-09-06 | 2007-09-06 | Process for keeping consistent software skin with able-board topics under windows platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007100499575A CN100530099C (en) | 2007-09-06 | 2007-09-06 | Process for keeping consistent software skin with able-board topics under windows platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101118496A CN101118496A (en) | 2008-02-06 |
CN100530099C true CN100530099C (en) | 2009-08-19 |
Family
ID=39054627
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007100499575A Active CN100530099C (en) | 2007-09-06 | 2007-09-06 | Process for keeping consistent software skin with able-board topics under windows platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100530099C (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101826008A (en) * | 2009-03-05 | 2010-09-08 | 宏碁股份有限公司 | Scene subject changing method and computer system |
CN101741984B (en) * | 2009-12-21 | 2014-08-20 | 华为终端有限公司 | Theme switching method and device and mobile terminal and background software device |
CN101976191A (en) * | 2010-10-15 | 2011-02-16 | 无敌科技(西安)有限公司 | Method and device for changing user interface theme along with outside change |
WO2011150870A2 (en) * | 2011-06-09 | 2011-12-08 | 华为终端有限公司 | Theme display method and device thereof |
CN102622385A (en) * | 2011-06-30 | 2012-08-01 | 北京小米科技有限责任公司 | Method for skin change of third-party application program |
CN102331934B (en) * | 2011-10-21 | 2013-07-31 | 广州市久邦数码科技有限公司 | Method for implementing desktop component based on GO desktop system |
CN102662643A (en) * | 2012-02-28 | 2012-09-12 | 浪潮电子信息产业股份有限公司 | Method for replacing software skin based on Linux platform |
CN102629208A (en) * | 2012-03-06 | 2012-08-08 | 百度在线网络技术(北京)有限公司 | Method, device and equipment for determining system interface |
EP3309679B1 (en) * | 2014-03-28 | 2019-09-04 | Huawei Device Co., Ltd. | Method, apparatus, and terminal device for determining color of interface control |
CN104156240B (en) * | 2014-07-29 | 2018-04-10 | 北京奇虎科技有限公司 | Skin template replacing method, device, client and the electronic equipment of client |
CN104679390B (en) * | 2015-03-20 | 2018-01-02 | 杭州网易云音乐科技有限公司 | A kind of method, apparatus and equipment of the skin that application is set in operating system platform |
CN106126239B (en) * | 2016-06-27 | 2018-09-04 | 腾讯科技(深圳)有限公司 | The processing method and processing system of terminal interface |
CN106371701A (en) * | 2016-09-05 | 2017-02-01 | 深圳铂睿智恒科技有限公司 | Automatic switching method and system of dynamic festival calendar icon on basis of mobile terminal |
CN112379962A (en) * | 2020-11-25 | 2021-02-19 | Oppo(重庆)智能科技有限公司 | Desktop theme adjusting method, mobile terminal, server and storage medium |
-
2007
- 2007-09-06 CN CNB2007100499575A patent/CN100530099C/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN101118496A (en) | 2008-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100530099C (en) | Process for keeping consistent software skin with able-board topics under windows platform | |
US7490298B2 (en) | Creating documentation screenshots on demand | |
Rädle et al. | Codestrates: Literate computing with webstrates | |
US8627227B2 (en) | Allocation of space in an immersive environment | |
US7930343B2 (en) | Scalable user interface system | |
CN103530018B (en) | The method for building up and mobile terminal at widget interface in Android operation system | |
US20150058744A1 (en) | Systems and methods for managing graphical user interfaces | |
Ardito et al. | User-driven visual composition of service-based interactive spaces | |
WO2009126591A1 (en) | Systems and methods for programming mobile devices | |
US20120167005A1 (en) | Creating an immersive environment | |
JP4893108B2 (en) | Information processing apparatus, information processing method, and computer program | |
KR20080094915A (en) | Text box numbering and linking visual aids | |
Xu et al. | Uiwear: Easily adapting user interfaces for wearable devices | |
EP3467681B1 (en) | Data migration method and device | |
US8700802B2 (en) | Method and system for providing advertising content suitable for multiple platforms | |
CN102662643A (en) | Method for replacing software skin based on Linux platform | |
CN107256162A (en) | Based on Windows visual characteristics and personalized desktop management method | |
Mohomed | Enabling mobile application mashups with Merlion | |
Wang et al. | Building experiments with Pygame | |
Villanueva et al. | Distributing web components in a display ecosystem using Proxywork | |
Helesic et al. | Content management applications for Juki-Lux media Pylon | |
Bradley | An Infinite-Pane, Zooming User Interface Window Manager and Survey of X Window Managers | |
CN116204241A (en) | Creation of computer macros | |
JP2020204985A (en) | Computer program, server device, terminal device, program generation method, and method | |
Yun et al. | Downloadable user interface for mobile devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |