<?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 : CXTTipWindow::CreateShadow() bug</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : CXTTipWindow::CreateShadow() bug]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 10:51:28 +0000</pubDate>
  <lastBuildDate>Tue, 04 Jan 2011 11:02:49 +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=17743</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[CXTTipWindow::CreateShadow() bug : Hi Oleg,thank you for the quick...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17743&amp;PID=62069&amp;title=cxttipwindowcreateshadow-bug#62069</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1779">VolkerE</a><br /><strong>Subject:</strong> 17743<br /><strong>Posted:</strong> 04 January 2011 at 11:02am<br /><br />Hi Oleg,<br><br>thank you for the quick response. Works fine now...<br><br>Regards,<br>Volker<br><br>]]>
   </description>
   <pubDate>Tue, 04 Jan 2011 11:02:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17743&amp;PID=62069&amp;title=cxttipwindowcreateshadow-bug#62069</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTipWindow::CreateShadow() bug : Thanks a lot. Please also change...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17743&amp;PID=62066&amp;title=cxttipwindowcreateshadow-bug#62066</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17743<br /><strong>Posted:</strong> 04 January 2011 at 10:35am<br /><br />Thanks a lot. Please also change Create method as<div><br></div><div><div>BOOL CXTPTipWindow::Create(CWnd* pParentWnd)</div><div>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>// register the wnd class.</div><div><span ="Apple-tab-span" style="white-space:pre">	</span><b>XTPDrawHelpers()-&gt;RegisterWndClass(0, _T("XTPTipWindow"), CS_SAVEBITS | CS_HREDRAW | CS_VREDRAW);</b></div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>// call the base class for creation.</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if (!CWnd::CreateEx(0, _T("<b>XTPTipWindow</b>"), _T(""), WS_POPUP, 0, 0, 0, 0, pParentWnd-&gt;m_hWnd, 0, NULL))</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div></div><div>...</div>]]>
   </description>
   <pubDate>Tue, 04 Jan 2011 10:35:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17743&amp;PID=62066&amp;title=cxttipwindowcreateshadow-bug#62066</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTipWindow::CreateShadow() bug : To correctly modify the window...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17743&amp;PID=62058&amp;title=cxttipwindowcreateshadow-bug#62058</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1779">VolkerE</a><br /><strong>Subject:</strong> 17743<br /><strong>Posted:</strong> 04 January 2011 at 3:42am<br /><br />To correctly modify the window class style in lines 109 and 114, GetClassLong() must be called instead of GetWindowLong() (which returns 0 instead of the current style).<br><br>But even after fixing this: this implemention will cause an assertion in the debug build each time a tip window with m_dwTipStyle == (TWS_XT_ALPHASHADOW | TWS_XT_DROPSHADOW) has been displayed. Next time a tip window is created the following assertion in AfxRegisterWndClass() will fail:<br><br>&nbsp;<font face="Courier New, Courier, mono">&nbsp;&nbsp; // see if the class already exists<br>&nbsp;&nbsp;&nbsp; WNDCLASS wndcls;<br>&nbsp;&nbsp;&nbsp; if (::AfxCtxGetClassInfo(hInst, lpszName, &amp;wndcls))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // already registered, assert everything is good<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</font><font color="#ff0000" face="Courier New, Courier, mono"> ASSERT(wndcls.style == nClassStyle);</font><br><br>]]>
   </description>
   <pubDate>Tue, 04 Jan 2011 03:42:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17743&amp;PID=62058&amp;title=cxttipwindowcreateshadow-bug#62058</guid>
  </item> 
 </channel>
</rss>