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 此函數(shù)用來設(shè)置沒有非客戶區(qū)和菜單條的特殊的窗口。這樣的窗口可以使任何形狀的,甚至是半透明的。 4.SetSingleDialogSkin 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制界面,它對于某些消息有截斷,但是對大部分消息還是可以重載的。 |
|