日韩黑丝制服一区视频播放|日韩欧美人妻丝袜视频在线观看|九九影院一级蜜桃|亚洲中文在线导航|青草草视频在线观看|婷婷五月色伊人网站|日本一区二区在线|国产AV一二三四区毛片|正在播放久草视频|亚洲色图精品一区

分享

【原創(chuàng)】SkinMegic部分函數(shù)的使用 - lvan的日志 - 網(wǎng)易博客

 xihayouyi 2011-01-08

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.
    這個函數(shù)用來設(shè)置對話框的默認的皮膚。如果是新創(chuàng)建的對話框,那么會自動的套用此函數(shù)所設(shè)置的對話框樣式。如果是此函數(shù)調(diào)用之前創(chuàng)建的對話框則沒有任何作用。而且如果創(chuàng)建的對話框有菜單,則必須調(diào)用此函數(shù)。
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. 
這個函數(shù)用來設(shè)置標(biāo)準(zhǔn)窗口的皮膚。所謂標(biāo)準(zhǔn)窗口,就是有矩形客戶區(qū)和非客戶區(qū),菜單條,系統(tǒng)/最大/最小/關(guān)閉按鈕,標(biāo)題以及可變化的邊緣。(一般情況下就是說的單文檔窗口)
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。

此函數(shù)用來設(shè)置沒有非客戶區(qū)和菜單條的特殊的窗口。這樣的窗口可以使任何形狀的,甚至是半透明的。
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.

這個函數(shù)用來設(shè)置單個的對話框的皮膚,就是說它只對當(dāng)前使用的對話框窗口起作用。但是如果對話框帶有菜單,則必須要調(diào)用SetWindowSkin 函數(shù)。

 

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.

你可以使用此函數(shù)來對標(biāo)準(zhǔn)的控件進行換膚。

 

6.LoadSkinFile

int LoadSkinFile(
        LPCTSTR pszFileName        //the name of the skin file
        );
LoadSkinFile function load skin resource from disk file.
此函數(shù)用來加載皮膚文件。

        

其它函數(shù)我覺得沒有太大用處。如果我們使用了皮膚,我們?nèi)匀豢梢宰约豪L制界面,它對于某些消息有截斷,但是對大部分消息還是可以重載的。

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多