SkinUI5.0官方文档

SkinUI5.0官方文档


托盘图标

<h2>1 属性和相关方法</h2> <h4>1.1 设置托盘图标</h4> <ul> <li>通过config.xml设置对应的托盘。 <pre><code class="language-xml">&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ConfigTable&gt; &lt;Config Name="TrayMenu"&gt;TrayMenu.xml&lt;/Config&gt; &lt;/ConfigTable&gt;</code></pre></li> </ul> <h4>1.2 修改托盘图标</h4> <ul> <li>通过C++程序代码调用方法如下: <pre><code class="language-c">void CDialog::ModifyTrayIcon(const String&amp; strTips, HICON hIcon);</code></pre></li> </ul> <h4>1.3 闪烁托盘图标</h4> <ul> <li> <p>通过C++程序代码调用方法如下:</p> <pre><code class="language-c">void FlashTrayIcon(BOOL bFlash);</code></pre> </li> <li>参考下面的示例代码 <pre><code class="language-c">void CDemoTrayIconLayout::OnBtnClickedFlashIcon(UINT uNotifyCode, int nID, CView* pView) { CTextView* pChildView = dynamic_cast&lt;CTextView*&gt;(pView-&gt;GetChildById(ID_TEXTVIEW)); if(pChildView) { String strFlash = SkinUI::GetString(_T("IDS_FLASH_TRAY_ICON")); String strStopFlash = SkinUI::GetString(_T("IDS_STOP_FLASH_TRAY_ICON")); if(pChildView-&gt;GetText() == strFlash) { GetOwner()-&gt;FlashTrayIcon(TRUE); pChildView-&gt;SetText(strStopFlash); pView-&gt;Redraw(); } else if(pChildView-&gt;GetText() == strStopFlash) { GetOwner()-&gt;FlashTrayIcon(FALSE); pChildView-&gt;SetText(strFlash); pView-&gt;Redraw(); } else { assert(false); } } }</code></pre></li> </ul>

页面列表

ITEM_HTML