<?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 : Display problem if bitmap used in a menu</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : Display problem if bitmap used in a menu]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 18:50:30 +0000</pubDate>
  <lastBuildDate>Wed, 18 May 2011 14:08:38 +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=17306</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[Display problem if bitmap used in a menu : Yes, you need to be current to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=64462&amp;title=display-problem-if-bitmap-used-in-a-menu#64462</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 17306<br /><strong>Posted:</strong> 18 May 2011 at 2:08pm<br /><br />Yes, you need to be current to get the latest versions and fixes.]]>
   </description>
   <pubDate>Wed, 18 May 2011 14:08:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=64462&amp;title=display-problem-if-bitmap-used-in-a-menu#64462</guid>
  </item> 
  <item>
   <title><![CDATA[Display problem if bitmap used in a menu :   i created the issue in the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=64451&amp;title=display-problem-if-bitmap-used-in-a-menu#64451</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5098">Asim</a><br /><strong>Subject:</strong> 17306<br /><strong>Posted:</strong> 18 May 2011 at 6:30am<br /><br />i created the issue in the issuetracker , but unfortunatley my assistance subscription faild on Oct-2010.<div>That's why issue not get submitted .</div><div><br></div><div>What to do know.</div><div><br></div><div>How can i get this resolved issue file. For this i have to active the subscription or anything else.</div><div><br></div><div>pl revert.</div><div><br></div><div>thnx</div><div><br></div><div><br></div><div><i><u>Hi Oleg;<br><br>Please go through the link : <a href="http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=63819#63819" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=63819#63819</a><br><br>Now give me modified files , in which u fix this problem.<br><br>Notes: <br>-------------------------------------------<br>****Note by Customer Service,&nbsp; 14 Apr 2011:&nbsp; <br><br>I am sorry for this trouble. The maintenance for your order #76686 (ComponentSource 280264) for the Xtreme ToolkitPro bundle expired 13-OCT-10.&nbsp; Technical help and version upgrades are available with active maintenance subscriptions only. I am unable to assign your issue for assistance without an active maintenance contract.&nbsp; Please contact <a href="mailto:sales@codejock.com" target="_blank">sales@codejock.com</a> for assistance purchasing.</u></i><br></div>]]>
   </description>
   <pubDate>Wed, 18 May 2011 06:30:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=64451&amp;title=display-problem-if-bitmap-used-in-a-menu#64451</guid>
  </item> 
  <item>
   <title><![CDATA[Display problem if bitmap used in a menu : Hi,Code is updated for next release....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=63819&amp;title=display-problem-if-bitmap-used-in-a-menu#63819</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17306<br /><strong>Posted:</strong> 11 April 2011 at 6:51am<br /><br />Hi,<div><br></div><div>Code is updated for next release. If you want to test it before next release, create new issue in our issuetrack, I will attach changed files</div><div><br></div><div>Thanks</div>]]>
   </description>
   <pubDate>Mon, 11 Apr 2011 06:51:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=63819&amp;title=display-problem-if-bitmap-used-in-a-menu#63819</guid>
  </item> 
  <item>
   <title><![CDATA[Display problem if bitmap used in a menu : Not yet :( ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=63712&amp;title=display-problem-if-bitmap-used-in-a-menu#63712</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17306<br /><strong>Posted:</strong> 05 April 2011 at 4:27am<br /><br />Not yet :(&nbsp;]]>
   </description>
   <pubDate>Tue, 05 Apr 2011 04:27:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=63712&amp;title=display-problem-if-bitmap-used-in-a-menu#63712</guid>
  </item> 
  <item>
   <title><![CDATA[Display problem if bitmap used in a menu :   oleg wrote:Thanks, we will...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=63648&amp;title=display-problem-if-bitmap-used-in-a-menu#63648</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5684">archies</a><br /><strong>Subject:</strong> 17306<br /><strong>Posted:</strong> 31 March 2011 at 1:49am<br /><br /> <table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />Thanks, we will review it</td></tr></table> <br /><br />Hi Oleg ;<br /><br />have you reviewed this issue ?]]>
   </description>
   <pubDate>Thu, 31 Mar 2011 01:49:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=63648&amp;title=display-problem-if-bitmap-used-in-a-menu#63648</guid>
  </item> 
  <item>
   <title><![CDATA[Display problem if bitmap used in a menu : Thanks, we will review it ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=63202&amp;title=display-problem-if-bitmap-used-in-a-menu#63202</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17306<br /><strong>Posted:</strong> 09 March 2011 at 11:46am<br /><br />Thanks, we will review it]]>
   </description>
   <pubDate>Wed, 09 Mar 2011 11:46:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=63202&amp;title=display-problem-if-bitmap-used-in-a-menu#63202</guid>
  </item> 
  <item>
   <title><![CDATA[Display problem if bitmap used in a menu : Hi; me also facing same problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=63168&amp;title=display-problem-if-bitmap-used-in-a-menu#63168</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5684">archies</a><br /><strong>Subject:</strong> 17306<br /><strong>Posted:</strong> 08 March 2011 at 3:37am<br /><br />Hi;<br />me also facing same problem .<br /><br />I need to insert a Bitmap in the menuItem.<br /><br />But i have skinned framework:-<br />XTPSkinManager()-&gt;SetApplyOptions(xtpSkinApplyMetrics|xtpSkinApplyFrame|xtpSkinApplyColors|xtpSkinApplyMenus);<br /><br /><br /><strong>* if we use "xtpSkinApplyMenus" Bitpmap coming wrong ,, but without "xtpSkinApplyMenus" bitmap coming right (from AppendMenu method)</strong><br /><br />thnx]]>
   </description>
   <pubDate>Tue, 08 Mar 2011 03:37:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=63168&amp;title=display-problem-if-bitmap-used-in-a-menu#63168</guid>
  </item> 
  <item>
   <title><![CDATA[Display problem if bitmap used in a menu :  Hi everybody,I have a little...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=60431&amp;title=display-problem-if-bitmap-used-in-a-menu#60431</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4901">MikeM</a><br /><strong>Subject:</strong> 17306<br /><strong>Posted:</strong> 23 September 2010 at 8:30am<br /><br />Hi everybody,<br><br>I have a little display problem when I use a bitmap in my context menu.<br><br>This problem is only visible when I use skinned mode.<br><br><u>With skin</u> :<br><br><img src="uploads/4901/3255_with_skin.JPG" height="261" width="279" border="0" /><br><br><u>Without skin</u> :<br><br><img src="uploads/4901/3255_without_skin.JPG" height="268" width="287" border="0" /><br><br>In skinned mode, the bitmap is shifted to the left where this is not the case in normal mode.<br><br>Any idea ?<br><br>Here's a part of the sample source code :<br><br><font face="Courier New, Courier, mono" size="1">BOOL InsertMenuItemEx(CMenu *pMenu, UINT nPos, CBitmap *pBitmap, LPCTSTR lpszText, UINT nID, ULONG_PTR nItemData)<br>&nbsp;{<br>&nbsp; if (nPos == -1) nPos = pMenu-&gt;GetMenuItemCount();<br><br>&nbsp; HBITMAP hBitmap = (HBITMAP)pBitmap-&gt;GetSafeHandle();<br><br>&nbsp; MENUITEMINFO stMII;<br><br>&nbsp; memset(&amp;stMII, 0, sizeof(stMII));<br><br>&nbsp; stMII.cbSize = sizeof(stMII);<br><br>&nbsp; stMII.fMask = MIIM_BITMAP;<br><br>&nbsp; stMII.hbmpItem = hBitmap;<br><br>&nbsp; if (lpszText &amp;&amp; lpszText&#091;0&#093;)<br>&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; stMII.fMask |= MIIM_STRING;<br><br>&nbsp;&nbsp;&nbsp; stMII.dwTypeData = (LPSTR)lpszText;<br>&nbsp;&nbsp; }<br><br>&nbsp; if (nID)<br>&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; stMII.fMask |= MIIM_ID;<br><br>&nbsp;&nbsp;&nbsp; stMII.wID = nID;<br>&nbsp;&nbsp; }<br><br>&nbsp; if (nItemData)<br>&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; stMII.fMask |= MIIM_DATA;<br><br>&nbsp;&nbsp;&nbsp; stMII.dwItemData = nItemData;<br>&nbsp;&nbsp; }<br>&nbsp; <br>&nbsp; return pMenu-&gt;InsertMenuItem(nPos, &amp;stMII, TRUE);<br>&nbsp;}<br><br><br><br>CTEST_3255Dlg::CTEST_3255Dlg(CWnd* pParent)&nbsp;&nbsp;&nbsp; : CDialog(CTEST_3255Dlg::IDD, pParent)<br>{<br>&nbsp; &nbsp;&nbsp;&nbsp; m_hIcon = AfxGetApp()-&gt;LoadIcon(IDR_MAINFRAME);<br><br>&nbsp;&nbsp;&nbsp; m_bContextMenuOpened = FALSE;<br><br>&nbsp;&nbsp;&nbsp; m_cAudioEffectBitmap&#091;0&#093;.LoadBitmap(IDB_BITMAP1);<br>&nbsp;&nbsp;&nbsp; m_cAudioEffectBitmap&#091;1&#093;.LoadBitmap(IDB_BITMAP2);<br>&nbsp;&nbsp;&nbsp; m_cAudioEffectBitmap&#091;2&#093;.LoadBitmap(IDB_BITMAP3);<br>&nbsp;&nbsp;&nbsp; m_cAudioEffectBitmap&#091;3&#093;.LoadBitmap(IDB_BITMAP4);<br>}<br><br>BEGIN_MESSAGE_MAP(CTEST_3255Dlg, CDialog)<br>&nbsp;&nbsp;&nbsp; ON_WM_PAINT()<br>&nbsp;&nbsp;&nbsp; ON_WM_QUERYDRAGICON()<br>&nbsp; ON_WM_CONTEXTMENU()<br>END_MESSAGE_MAP()<br><br><br>BOOL CTEST_3255Dlg::OnInitDialog()<br>{<br>&nbsp;&nbsp;&nbsp; CDialog::OnInitDialog();<br><br>&nbsp;&nbsp;&nbsp; SetIcon(m_hIcon, TRUE);<br>&nbsp;&nbsp;&nbsp; SetIcon(m_hIcon, FALSE);<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; return TRUE;<br>}<br><br>void CTEST_3255Dlg::OnPaint()<br>{<br>&nbsp;&nbsp;&nbsp; if (IsIconic())<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CPaintDC dc(this); // device context for painting<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SendMessage(WM_ICONERASEBKGND, reinterpret_cast&lt;WPARAM&gt;(dc.GetSafeHdc()), 0);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Center icon in client rectangle<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int cxIcon = GetSystemMetrics(SM_CXICON);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int cyIcon = GetSystemMetrics(SM_CYICON);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CRect rect;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetClientRect(&amp;rect);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int x = (rect.Width() - cxIcon + 1) / 2;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int y = (rect.Height() - cyIcon + 1) / 2;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Draw the icon<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dc.DrawIcon(x, y, m_hIcon);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CDialog::OnPaint();<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>HCURSOR CTEST_3255Dlg::OnQueryDragIcon()<br>{<br>&nbsp;&nbsp;&nbsp; return static_cast&lt;HCURSOR&gt;(m_hIcon);<br>}<br><br>void CTEST_3255Dlg::OnContextMenu(CWnd *pWnd, CPoint point)<br>{<br>&nbsp;&nbsp;&nbsp; CPoint ptClient = point;<br><br>&nbsp;&nbsp;&nbsp; ScreenToClient(&amp;ptClient);<br><br>&nbsp;&nbsp;&nbsp; CMenu cTopMenu;<br><br>&nbsp;&nbsp;&nbsp; BOOL bRet = cTopMenu.LoadMenu(IDR_CONTEXT_MENU);<br><br>&nbsp;&nbsp;&nbsp; if (!bRet) return;<br><br>&nbsp;&nbsp;&nbsp; CMenu *pContextMenu = cTopMenu.GetSubMenu(0);<br><br>&nbsp;&nbsp;&nbsp; if (!pContextMenu) return;<br><br>&nbsp;&nbsp;&nbsp; ConstructContextMenu(pContextMenu, ptClient);<br><br>&nbsp;&nbsp;&nbsp; if (m_bContextMenuOpened)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SendMessage(WM_CANCELMODE);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CRect rect;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GetWindowRect(&amp;rect);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( rect.PtInRect(ptClient) )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PostMessage(WM_CONTEXTMENU, (WPARAM)pWnd-&gt;GetSafeHwnd(), MAKELPARAM(ptClient.x,ptClient.y));<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; m_bContextMenuOpened = TRUE;<br><br>&nbsp;&nbsp;&nbsp; pContextMenu-&gt;TrackPopupMenu(TPM_LEFTALIGN, point.x, point.y, this);<br><br>&nbsp;&nbsp;&nbsp; m_bContextMenuOpened = FALSE;<br>}<br><br>#define AUDIO_TRANSITION_FX 1<br><br>void CTEST_3255Dlg::ConstructContextMenu(CMenu *pContextMenu, CPoint pt)<br>{<br>&nbsp;&nbsp;&nbsp; UINT nDynamicID = 20000;<br><br>&nbsp;&nbsp;&nbsp; CMenu *pSubMenu = pContextMenu-&gt;GetSubMenu(0);<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; if (!pSubMenu) return;<br><br>&nbsp;&nbsp;&nbsp; UINT nIndex = 0;<br><br>&nbsp;&nbsp;&nbsp; InsertMenuItemEx(pSubMenu, nIndex++, &amp;m_cAudioEffectBitmap&#091;0&#093;, "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ", nDynamicID++, MAKELONG(AUDIO_TRANSITION_FX,0));<br><br>&nbsp;&nbsp;&nbsp; InsertMenuItemEx(pSubMenu, nIndex++, &amp;m_cAudioEffectBitmap&#091;1&#093;, "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ", nDynamicID++, MAKELONG(AUDIO_TRANSITION_FX,1));<br><br>&nbsp;&nbsp;&nbsp; InsertMenuItemEx(pSubMenu, nIndex++, &amp;m_cAudioEffectBitmap&#091;2&#093;, "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ", nDynamicID++, MAKELONG(AUDIO_TRANSITION_FX,2));<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; InsertMenuItemEx(pSubMenu, nIndex++, &amp;m_cAudioEffectBitmap&#091;3&#093;, "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ", nDynamicID++, MAKELONG(AUDIO_TRANSITION_FX,3));<br>}<br></font><br>]]>
   </description>
   <pubDate>Thu, 23 Sep 2010 08:30:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17306&amp;PID=60431&amp;title=display-problem-if-bitmap-used-in-a-menu#60431</guid>
  </item> 
 </channel>
</rss>