最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Visual Style中的shellstyle.dll文件修改方法

 更新時間:2007年05月13日 00:00:00   作者:  
Visual Style中的shellstyle.dll文件修改 
2007-3-8 11:25:00 
作者: Silencer 
shellstyle.dll修改 *部分內(nèi)容參考自whistl3r的Shellstyle Tutorial

預(yù)備知識
1.shellstyle.dll的結(jié)構(gòu)
UIFiles:
UIFile1:定義窗體及任務(wù)列表樣式
UIFile2:定義控制面板樣式

Resources:資源文件列表
10,11,12:音樂文件夾
13,14,15:圖片文件夾
16,17,18:查找
19,20,21:視頻文件夾
22,26:控制面板
25:系統(tǒng)文件夾
100,101,102,103,104,105,106,107:面板打開/關(guān)閉按鈕
110,112:面板頂欄
120:背景

Strings:定義常用字符串或數(shù)值(字體,字號)

CPWEBVW.CSS:定義用戶帳戶窗體樣式

2.資源的使用
rcstr(Str_ID)
Str_ID:Strings中編號

rcbmp(BMP_ID, STRETCHING, TRANSPARENT_COLOR, WIDTH, HEIGHT, SIZE_FLAG, MIRROR)
BMP_ID:Resources中編號
STRETCHING: 填充方式 1 = 正常, 3, = 重復(fù), 6 = 拉伸, 7 = 32bit位圖
TRANSPARENT_COLOR: 填充時忽略的顏色 #RRGGBB
WIDTH, HEIGHT:寬度,高度
SIZE_FLAG: 圖像大小 1 = 使用圖片默認(rèn)大小, 0 = 使用指定的大小
MIRROR: 反轉(zhuǎn) 0 = 正常, 1 = 反轉(zhuǎn)

rcint(Str_ID) //將字符串轉(zhuǎn)為數(shù)值
Str_ID:Strings中編號

Dtb(handlemap(a),b,c) //猜測是一種獲取當(dāng)前主題中圖像的方法,但a,b,c各值所代表的圖像不是很明確

sysmetric(ID) //系統(tǒng)變量表
ID可取值:
0 Screen width
1 Screen height
2 Width of sizable window frame
3 Height of sizable window frame
4 Width of scroll arrows on vertical scroll bar
5 Height of scroll arrows on vertical scroll bar
6 Width of scroll arrows on horizontal scroll bar
7 Height of scroll arrows on horizontal scroll bar
8 Height of window title
9 Width of non-sizable window frame
10 Height of non-sizable window frame
11 Width of DOUBLE or PANEL window frame
12 Height of DOUBLE or PANEL window frame
13 Scroll box width on horizontal scroll bar in text editing windows
14 Scroll box height on vertical scroll bar in text editing windows
15 Minimized window icon width
16 Minimized window icon height
17 Maximum insertion point width
18 Maximum insertion point height
19 Single-line menu bar height
20 Maximized window width
21 Maximized window height
22 Kanji window height
23 Minimum sizable window width
24 Minimum sizable window height
25 Minimum window width
26 Minimum window height
27 Window controls width
28 Window controls height
29 1 if mouse hardware present; otherwise 0
30 1 for Microsoft Windows debugging version; otherwise 0
31 1 if mouse buttons swapped; otherwise 0
32 Width of a button in a half-caption window's caption or title bar
33 Height of half-caption window caption area

核心部分
UIFile的編寫
UIFile中的內(nèi)容是許多結(jié)構(gòu)為
<style resid=***>
...
Element [id=atom(*****)]
{...}
Element [id=atom(*****)]
{...}
...
...
</style>
的代碼段,用于定義特定部分的樣式及其內(nèi)部元素的樣式
其中可包含的屬性有
contentalign: //元素位置??捎幸韵轮?
top: topleft, topright, topcenter
middle: middleleft, middleright, middlecenter
bottom: bottomleft, bottomright, bottomcenter
wrap: wrapleft, wrapright, wrapcenter //只可用于文本

background: //背景顏色
foreground: //前景顏色
bordercolor: //邊界顏色 這3個屬性可有以下值
rgb(red,green,blue) //RGB顏色
argb(alpha,red,green,blue) //包含alpha通道
gradient(argb(alpha,red,green,blue), argb(alpha,red,green,blue), Direction) //漸變色,第1個顏色變量為左上,第2個右下 Driection:方向 0 = 水平, 1 = 垂直
black, white, red, green, blue, ... //直接描述
window, windowtext, buttonface, buttonshadow, buttonlight, buttontext, scrollbar, hotlight, activecaption, captiontext... //系統(tǒng)顏色

fontsize: //字號
使用Strings表中值

fontface: //字體
使用Strings表中值

fontstyle: //字體樣式
使用normal, bold, italic, underline等制

borderthickness: rect(left,top,right,bottom); //邊框?qū)挾?

margin: rect(left,top,right,bottom); //縮放時保持不變的邊緣寬度
padding: rect(left,top,right,bottom); //元素位置

以XP默認(rèn)主題Luna的UIFile1為例
<style resid=main> //主窗體
DUIListView [id=atom(listview)] //列表瀏覽
{
contentalign: middlecenter;
fontsize: sysmetric(-16); //sysmetric是系統(tǒng)變量表,對應(yīng)的變量類型見前表
fontweight: sysmetric(-17);
fontstyle: sysmetric(-18);
fontface: sysmetricstr(6);
}
DUIAxHost [id=atom(preview)] //幻燈片瀏覽
{
contentalign: middlecenter;
borderthickness: rect(20rp,20rp,20rp,20rp);
bordercolor: rgb(255,0,0);
}
Element
{
background: argb(0,0,0,0);
}
Element [id=atom(blockade)] //系統(tǒng)文件夾
{
background: rgb(99,117,214);
borderthickness: rect(0rp,0rp,1rp,1rp);
bordercolor: white;
}
Element [id=atom(blockadeaccent)] //主窗口與側(cè)邊欄間的分割線
{
background: gradient(argb(0,148,187,255), argb(0,99,117,214), 1);
}
Element [id=atom(blockadeclient)] //系統(tǒng)文件夾背景圖片
{
contentalign: bottomright;
padding: rect (10rp,0rp,0rp,0rp);
}
Element [id=atom(blockadetitle)] //標(biāo)題("這些文件是隱藏的")
{
fontface: rcstr(2);
fontsize: rcint(18)pt;
fontweight: rcint(11);
foreground: rgb(214,223,245);
background: argb(0,0,0,0);
padding: rect (0rp,20rp,10rp,0rp);
contentalign: wrapleft;
}
Element [id=atom(blockademessage)] //標(biāo)題("此文件夾包含使您系統(tǒng)...")
{
fontface: rcstr(2);
fontsize: rcint(17)pt;
fontweight: rcint(12);
foreground: white;
background: argb(0,0,0,0);
padding: rect (1rp,15rp,10rp,0rp);
contentalign: wrapleft;
}
Element [id=atom(blockadeclear)] //"顯示此文件夾內(nèi)容"一般狀態(tài)
{
margin: rect(0rp,20rp,0rp,0rp);
}
Button [id=atom(blockadeclearbutton)][keyfocused] //"顯示此文件夾內(nèi)容"鍵盤觸發(fā)
{
contentalign: focusrect;
}
Element [id=atom(blockadecleartext)]
{
fontface: rcstr(1);
fontsize: rcint(15)pt;
fontweight: rcint(10);
foreground: white;
background: argb(0,0,0,0);
contentalign: wrapleft;
padding: rect (3rp,0rp,0rp,0rp);
}
Element [id=atom(blockadecleartext)][mousefocused] //"顯示此文件夾內(nèi)容"鼠標(biāo)觸發(fā)
{
cursor: hand;
fontstyle: underline;
}
</style>
//以下各塊中元素不再贅述,功能請參閱whistl3r的Shellstyle Tutorial
<style resid=mainsectionss>
<style resid=mainsectiontaskss>
<style resid=sectionss>
<style resid=sectiontaskss>
<style resid=taskpane>
<style resid=NameSpaceItemInfoList>

相關(guān)文章

最新評論

黄山市| 郸城县| 乌拉特中旗| 南涧| 惠水县| 自治县| 湘乡市| 秦皇岛市| 紫金县| 乌苏市| 织金县| 翁源县| 江安县| 陇南市| 宿州市| 遂川县| 灵川县| 监利县| 庆云县| 安义县| 罗源县| 远安县| 和林格尔县| 新泰市| 锡林浩特市| 海林市| 大埔区| 揭东县| 将乐县| 河曲县| 绥江县| 汶川县| 商都县| 成安县| 宁阳县| 股票| 云霄县| 盖州市| 郓城县| 华阴市| 钦州市|