能源监测管理系统:【原创】SkinMegic部分函数的使用 - lvan的日志 - 网易博客

来源:百度文库 编辑:九乡新闻网 时间:2024/04/26 03:27:23

1.SetDialogSkin

int SetDialogSkin(        LPCTSTR pszName       //Specifies the name of the skin object.        );
Use SetDialogSkin to set default dialog skin. newly-created dialog will automatically be skinned after this function called. SetDialogSkin have no effect on dialog before the function called. If the dialog has menu, must use SetWindowSkin to set the dialog skin.
    这个函数用来设置对话框的默认的皮肤。如果是新创建的对话框,那么会自动的套用此函数所设置的对话框样式。如果是此函数调用之前创建的对话框则没有任何作用。而且如果创建的对话框有菜单,则必须调用此函数。
2.SetWindowSkin
int SetWindowSkin(        HWND  hWnd,           //Handle to the window to be set skin        LPCTSTR pszName       //Specifies the name of the skin object.        );
Use SetWindowSkin to skin the standard windows - with rectangular opaque client area and region-based non-client area, menu bar, system/maximize/minimize/close buttons, caption and sizing edges and corners. 
这个函数用来设置标准窗口的皮肤。所谓标准窗口,就是有矩形客户区和非客户区,菜单条,系统/最大/最小/关闭按钮,标题以及可变化的边缘。(一般情况下就是说的单文档窗口)
3.SetShapeWindowSkin
int SetShapeWindowSkin(        HWND  hWnd,           //Handle to the window to be set skin        LPCTSTR pszName       //Specifies the name of the skin object.        );

Use SetShapeWindowSkin function to skin application-specific windows without non-client area and menu bar. These windows can have absolutely any shape or even be translucent。

此函数用来设置没有非客户区和菜单条的特殊的窗口。这样的窗口可以使任何形状的,甚至是半透明的。
4.SetSingleDialogSkin
int SetSingleDialogSkin(        HWND  hWnd,           //Handle to the window to be set skin        LPCTSTR pszName       //Specifies the name of the skin object.        );

Use SetSingleDialogSkin to skin the standard dialog If the dialog has menu, must use SetWindowSkin to set the dialog skin.

这个函数用来设置单个的对话框的皮肤,就是说它只对当前使用的对话框窗口起作用。但是如果对话框带有菜单,则必须要调用SetWindowSkin 函数。

 

5.SetControlSkin

int SetControlSkin(        HWND  hWnd,           //Handle to the window to be set skin        LPCTSTR pszName,       //Specifies the name of the skin object.        LPCTSTR pszOwnerSkinName //Specifies the owner name of the pszName.        );
pszOwnerSkinName
[in] Specifies the Owner name of the skin control object. SkinMagic use a tree to organize all skin objects, the owner is the parent object of a child object.

Use SetControlSkin to skin the individual control. you only use this API with the standard controls.

你可以使用此函数来对标准的控件进行换肤。

 

6.LoadSkinFile

int LoadSkinFile(        LPCTSTR pszFileName        //the name of the skin file        );
LoadSkinFile function load skin resource from disk file.
此函数用来加载皮肤文件。
        

其它函数我觉得没有太大用处。如果我们使用了皮肤,我们仍然可以自己绘制界面,它对于某些消息有截断,但是对大部分消息还是可以重载的。
【原创】SkinMegic部分函数的使用 - lvan的日志 - 网易博客 【原创】知道手机使用的窍门吗? - QQQ (开心果)的日志 - 网易博客 拒绝使用电灯和汽车的美国少数民族(原创) - 李文波的日志 - 网易博客 js 匿名函数 闭包 - phperwuhan的日志 - 网易博客 【引用】【原创】使用PS拼接全景图 - 朋友的日志 - 网易博客 网易博客“日志编辑器”的使用 网易博客“日志编辑器”的使用 部分网站打不开如何处理? - 至死不渝的日志 - 网易博客 部分网站打不开如何处理? - 理睬的日志 - 网易博客 【原创】最新流行时尚日志边框 - 滴墨斋主的日志 - 网易博客 QQ不为人知的使用技巧 - 理睬的日志 - 网易博客 【煮梅客】音符的颜色【原创】 - 煮梅客的日志 - 网易博客 【原创随笔】花开的声音 - 刘彦萍的日志 - 网易博客 疲倦的心(原创) - 缘分天空的日志 - 网易博客 【原创】爱凉的月光 - 江流的日志 - 网易博客 【原创】春天的沉思 - 海 砾的日志 - 网易博客 入夏【原创】 - 秋的私语的日志 - 网易博客 诗歌原创:春天的疯狂 - 徐兆宝的日志 - 网易博客 【冷柔儿原创】情感的朗诵; - 冷柔儿的日志 - 网易博客 【原创】一首诗的夜 - 梦梅的日志 - 网易博客 网易博客代码(四)(图片类)5部分 - 香儿的日志 - 网易博客 网易博客代码(四)(图片类)4部分 - 香儿的日志 - 网易博客 网易博客代码(四)(图片类)3部分 - 香儿的日志 - 网易博客 网易博客代码(四)(图片类)2部分 - 香儿的日志 - 网易博客