📄 csdn_文档中心_使用skinmagic toolkit美化界面.htm
字号:
lang=EN-US>SkinMagic</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,这一步必不可少。在应用程序类的</SPAN><SPAN
lang=EN-US>InitInstance()</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">函数中行加入如下代码(粗体部分):</SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN lang=EN-US
style="FONT-FAMILY: 宋体"><SPAN style="mso-tab-count: 1"><FONT
size=3> </FONT></SPAN></SPAN><SPAN lang=EN-US
style="COLOR: #999999; FONT-FAMILY: 宋体; FONT-SIZE: 9pt; mso-font-kerning: 0pt">CWinApp::InitInstance();</SPAN><SPAN
lang=EN-US
style="COLOR: #999999; FONT-FAMILY: 宋体"><o:p></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: 21pt"><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="COLOR: gray; FONT-SIZE: 9pt">VERIFY( 1 ==
InitSkinMagicLib(AfxGetInstanceHandle(), NULL ,
<o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="COLOR: gray; FONT-SIZE: 9pt"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN
style="mso-tab-count: 2">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>NULL, NULL ));<o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="COLOR: gray; FONT-SIZE: 9pt"><o:p> </o:p></SPAN></B></P><PRE><FONT size=3><FONT face=宋体>说明<SPAN lang=EN-US>:</SPAN></FONT></FONT></PRE><PRE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">int InitSkinMagicLib(<SPAN style="mso-tab-count: 2"> </SPAN></SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold">//</SPAN></STRONG><STRONG><SPAN style="COLOR: #339966; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">初始化</SPAN></STRONG><FONT face=宋体><SPAN lang=EN-US style="COLOR: #339966; FONT-SIZE: 9pt">SkinMagic</SPAN><SPAN style="COLOR: #339966; FONT-SIZE: 9pt">工具库</SPAN><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"><o:p></o:p></SPAN></STRONG></FONT></PRE><PRE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">HINSTANCE</SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #0000cc; FONT-FAMILY: Arial; FONT-SIZE: 10pt"> </SPAN></STRONG><CODE><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: Arial; FONT-SIZE: 10pt">hInstance</SPAN></CODE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">, <SPAN style="mso-tab-count: 2"> </SPAN></SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold">//</SPAN></STRONG><STRONG><SPAN style="COLOR: #339966; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">应用程序句柄</SPAN></STRONG><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold"><o:p></o:p></SPAN></STRONG></PRE><PRE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">char* </SPAN></STRONG><CODE><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: Arial; FONT-SIZE: 10pt">szApplication</SPAN></CODE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> , <SPAN style="mso-tab-count: 2"> </SPAN></SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold">//</SPAN></STRONG><STRONG><SPAN style="COLOR: #339966; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">皮肤文件中定义的应用程序名,置为</SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold">NULL</SPAN></STRONG><STRONG><SPAN style="COLOR: #339966; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">即可</SPAN></STRONG><B><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"><o:p></o:p></SPAN></B></PRE><PRE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">char* </SPAN></STRONG><CODE><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: Arial; FONT-SIZE: 10pt">szRegCode</SPAN></CODE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">,<SPAN style="mso-tab-count: 3"> </SPAN></SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt">//</SPAN></STRONG><FONT face=宋体><SPAN lang=EN-US style="COLOR: #339966; FONT-SIZE: 9pt">SkinMagic</SPAN><SPAN style="COLOR: #339966; FONT-SIZE: 9pt">的使用</SPAN><STRONG><SPAN style="COLOR: #339966; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">注册码。若无置为</SPAN></STRONG></FONT><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold">NULL</SPAN></STRONG><B><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"><o:p></o:p></SPAN></B></PRE><PRE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">char* </SPAN></STRONG><CODE><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: Arial; FONT-SIZE: 10pt">szReserved2</SPAN></CODE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> <SPAN style="mso-tab-count: 3"> </SPAN></SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold">//</SPAN></STRONG><STRONG><SPAN style="COLOR: #339966; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">保留位,为</SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold">NULL</SPAN></STRONG><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold"><o:p></o:p></SPAN></STRONG></PRE><PRE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">);</SPAN></STRONG><CODE><SPAN lang=EN-US><o:p></o:p></SPAN></CODE></PRE>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
lang=EN-US><o:p><FONT size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-SIZE: 12pt">2</SPAN></B><B
style="mso-bidi-font-weight: normal"><SPAN
style="FONT-FAMILY: 宋体; FONT-SIZE: 12pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、调入皮肤文件:</SPAN></B><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-SIZE: 12pt"><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
lang=EN-US><SPAN
style="mso-tab-count: 1">
</SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">皮肤的调用有两种方法,一是直接从皮肤文件中调用,另一种方法是从资源文件中调用,分别说明如下:</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
lang=EN-US><SPAN
style="mso-tab-count: 1">
</SPAN>1</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">)从皮肤文件中调用皮肤:紧接上句,加入如下代码</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="COLOR: #999999; FONT-FAMILY: 宋体; FONT-SIZE: 9pt; mso-font-kerning: 0pt">VERIFY(
1 == LoadSkinFile("corona.smf"));<o:p></o:p></SPAN></B></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT size=3><SPAN
lang=EN-US>2</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">)从资源文件中调用皮肤:</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="COLOR: #999999; FONT-FAMILY: 新宋体; FONT-SIZE: 9pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">VERIFY(1
==
LoadSkinFromResource(NULL,"FUTURA","skin"));<o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="COLOR: #999999; FONT-FAMILY: 新宋体; FONT-SIZE: 9pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt"><o:p> </o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT
size=3>说明:</FONT></SPAN></P><PRE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">int LoadSkinFromResource(<o:p></o:p></SPAN></STRONG></PRE><PRE style="tab-stops: 45.8pt 91.6pt 137.4pt 163.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">HMODULE </SPAN></STRONG><CODE><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: Arial; FONT-SIZE: 10pt">hModule</SPAN></CODE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">, <SPAN style="mso-tab-count: 2"> </SPAN></SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold">//</SPAN></STRONG><STRONG><SPAN style="COLOR: #339966; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">包含皮肤文件的模块句柄,若</SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold">NULL</SPAN></STRONG><STRONG><SPAN style="COLOR: #339966; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">表面在本模块中</SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #99cc00; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold"><o:p></o:p></SPAN></STRONG></PRE><PRE style="tab-stops: 45.8pt 91.6pt 137.4pt 163.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">char* </SPAN></STRONG><CODE><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: Arial; FONT-SIZE: 10pt">lpSkinName</SPAN></CODE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> , <SPAN style="mso-tab-count: 2"> </SPAN></SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt">/</SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold">/</SPAN></STRONG><STRONG><SPAN style="COLOR: #339966; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">皮肤资源的名称</SPAN></STRONG><B><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt"><o:p></o:p></SPAN></B></PRE><PRE style="tab-stops: 45.8pt 91.6pt 137.4pt 163.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">char* </SPAN></STRONG><CODE><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: Arial; FONT-SIZE: 10pt">lpType</SPAN></CODE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">);<SPAN style="mso-tab-count: 3"> </SPAN></SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold">//</SPAN></STRONG><STRONG><SPAN style="COLOR: #339966; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">资源的类型</SPAN></STRONG><CODE><SPAN lang=EN-US style="COLOR: #339966"><o:p></o:p></SPAN></CODE></PRE>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
lang=EN-US><o:p><FONT size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-SIZE: 12pt">3</SPAN></B><B
style="mso-bidi-font-weight: normal"><SPAN
style="FONT-FAMILY: 宋体; FONT-SIZE: 12pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、为窗口添加皮肤:</SPAN></B><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-SIZE: 12pt"><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">1)为标准窗口(拥有标题栏、系统菜单、可变大小等特征,比如文档</SPAN><SPAN
lang=EN-US>/</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">视图结构和有菜单的对话框)添加皮肤,通常用于主窗口。在应用程序类的</SPAN><SPAN
lang=EN-US>InitInstance()</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">函数的底部加入如下代码:</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-FAMILY: 新宋体; FONT-SIZE: 9pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt"><SPAN
style="mso-tab-count: 1"> </SPAN><B
style="mso-bidi-font-weight: normal"><SPAN
style="COLOR: #999999">VERIFY( 1 == SetWindowSkin(
m_pMainWnd->m_hWnd , "MainFrame"
));<o:p></o:p></SPAN></B></SPAN></P>
<P align=left class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"><SPAN
lang=EN-US
style="FONT-FAMILY: 新宋体; FONT-SIZE: 9pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt"><SPAN
style="mso-tab-count: 1"> </SPAN><SPAN
style="COLOR: #999999">m_pMainWnd->ShowWindow(SW_SHOW);<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="COLOR: #999999; FONT-FAMILY: 新宋体; FONT-SIZE: 9pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt"><SPAN
style="mso-tab-count: 1">
</SPAN>m_pMainWnd->UpdateWindow();<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="COLOR: #999999; FONT-FAMILY: 新宋体; FONT-SIZE: 9pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-size: 10.5pt"><FONT
size=3>说明:<SPAN lang=EN-US><o:p></o:p></SPAN></FONT></SPAN></P><PRE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">int SetWindowSkin(<o:p></o:p></SPAN></STRONG></PRE><PRE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">HWND </SPAN></STRONG><CODE><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: Arial; FONT-SIZE: 10pt">hWnd</SPAN></CODE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">, <SPAN style="mso-tab-count: 3"> </SPAN></SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt">/</SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold">/</SPAN></STRONG><STRONG><SPAN style="COLOR: #339966; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">要使用皮肤的窗口句柄</SPAN></STRONG><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"><o:p></o:p></SPAN></STRONG></PRE><PRE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">char* </SPAN></STRONG><CODE><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: Arial; FONT-SIZE: 10pt">lpSkinName</SPAN></CODE><STRONG><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> <SPAN style="mso-tab-count: 3"> </SPAN></SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt">/</SPAN></STRONG><STRONG><SPAN lang=EN-US style="COLOR: #339966; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold">/</SPAN></STRONG><STRONG><SPAN style="COLOR: #339966; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; FONT-WEIGHT: normal; mso-bidi-font-weight: bold; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">为</SPAN></STRONG><FONT face=宋体><SPAN lang=EN-US style="COLOR: #339966; FONT-SIZE: 9pt">skinFrameWnd</SPAN><SPAN style="COLOR: #339966; FONT-SIZE: 9pt">对象指定的名称</SPAN></FONT><B><SPAN lang=EN-US style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"><BR>
<STRONG><SPAN style="FONT-FAMILY: Arial">);</SPAN></STRONG></SPAN></B><CODE><SPAN lang=EN-US><o:p></o:p></SPAN></CODE></PRE>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-bidi-font-size: 10.5pt"><o:p><FONT
size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
lang=EN-US style="mso-bidi-font-size: 10.5pt">2</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">)为对话框添加皮肤</SPAN><SPAN
lang=EN-US
style="mso-bidi-font-size: 10.5pt"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">在对话框显示之前调用,通常在应用程序初始化函数中调用</SPAN><SPAN
lang=EN-US
style="mso-bidi-font-size: 10.5pt"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-FAMILY: 新宋体; FONT-SIZE: 9pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt"><SPAN
style="mso-tab-count: 1"> </SPAN><B
style="mso-bidi-font-weight: normal"><SPAN
style="COLOR: #999999">VERIFY( 1 == SetWindowSkin(
m_pMainWnd->m_hWnd , "MainFrame"
));<o:p></o:p></SPAN></B></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="COLOR: #999999; FONT-FAMILY: 新宋体; FONT-SIZE: 9pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">VERIFY(
1 == SetDialogSkin( "Dialog" ) );<o:p></o:p></SPAN></B></P>
<P align=left class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"><SPAN
lang=EN-US
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -