<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : How to skin tray menu?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How to skin tray menu?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 01:45:03 +0000</pubDate>
  <lastBuildDate>Sun, 17 Jan 2010 21:56:11 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=16011</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[How to skin tray menu? : Help pls.  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16011&amp;PID=56189&amp;title=how-to-skin-tray-menu#56189</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4545">ryotyankou</a><br /><strong>Subject:</strong> 16011<br /><strong>Posted:</strong> 17 January 2010 at 9:56pm<br /><br />Help pls.]]>
   </description>
   <pubDate>Sun, 17 Jan 2010 21:56:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16011&amp;PID=56189&amp;title=how-to-skin-tray-menu#56189</guid>
  </item> 
  <item>
   <title><![CDATA[How to skin tray menu? : I use toolkit pro 13.2.1. This...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16011&amp;PID=56154&amp;title=how-to-skin-tray-menu#56154</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4545">ryotyankou</a><br /><strong>Subject:</strong> 16011<br /><strong>Posted:</strong> 15 January 2010 at 1:29am<br /><br />I use toolkit pro 13.2.1. This is what i did in my project.(MFC dialog based application.)<br>1. Add <br>#include &lt;XTToolkitPro.h&gt; to stdafx.h.<br>2. Initialize the skin in CXXXApp::InitInstance<br>&nbsp;&nbsp;&nbsp; void InitializeSkin()<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CString pathToSkinFiles = GetSkinFolderPath() ;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; XTPSkinManager()-&gt;SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyColors | xtpSkinApplyMetrics);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; XTPSkinManager()-&gt;LoadSkin(pathToSkinFiles, _T("default.INI"));<br>&nbsp;&nbsp;&nbsp; }<br>3. Change every used CDialog to CXTResizeDialog.<br> I add a tray menu to my application. Everything(dialog skin) ok, except the tray menu. What should i do to skin the menu? My code is:<br>LRESULT CXXXXDlg::OnNotify(WPARAM wParam, LPARAM lParam)<br>{<br>&nbsp;&nbsp;&nbsp; if((UINT)wParam == IDR_MAINFRAME)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; UINT eventID = static_cast&lt;UINT&gt;(lParam);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(eventID == WM_LBUTTONDBLCLK)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OnShoworHideMainWindow(!iswindowshow_, 0);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(eventID == WM_RBUTTONDOWN)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SetForegroundWindow();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; POINT pt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetCursorPos(&amp;pt);//get mouse pos<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; HMENU hMenu = LoadMenu(AfxGetApp()-&gt;m_hInstance, MAKEINTRESOURCE(IDR_TRAY_MENU));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; HMENU hSubMenu = GetSubMenu(hMenu, 0);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SetMenuDefaultItem(hSubMenu, ID_APP_CONFIG, FALSE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TrackPopupMenuEx(hSubMenu, TPM_RIGHTALIGN,&nbsp;&nbsp;&nbsp; pt.x, pt.y, m_hWnd, NULL);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DestroyMenu(hMenu);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; return 0;<br>}<br>TIA.<br>]]>
   </description>
   <pubDate>Fri, 15 Jan 2010 01:29:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16011&amp;PID=56154&amp;title=how-to-skin-tray-menu#56154</guid>
  </item> 
 </channel>
</rss>