<?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 : CXTListTab.SetExtendedStyle Bug</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTListTab.SetExtendedStyle Bug]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 16:56:31 +0000</pubDate>
  <lastBuildDate>Mon, 03 Nov 2003 16:04:48 +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=209</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[CXTListTab.SetExtendedStyle Bug : I&amp;#039;ve noticed a invalid behavior...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=209&amp;PID=473&amp;title=cxtlisttab-setextendedstyle-bug#473</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=223">ysavourel</a><br /><strong>Subject:</strong> 209<br /><strong>Posted:</strong> 03 November 2003 at 4:04pm<br /><br /><P><FONT face="Courier New, Courier, mono" size=2>I've noticed a invalid behavior in the SetExtendedStyle method of CXTListCtrl (or more exactly of CXTListCtrlBase).</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>The code is currently:</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>AFX_INLINE <FONT color=#0000ff>void</FONT> CXTListCtrlBase::SetExtendedStyle(DWORD dwExStyle) {</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>ASSERT(::IsWindow(m_pListCtrl-&gt;GetSafeHwnd())); m_pListCtrl-&gt;SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, 0, GetExtendedStyle()|dwExStyle);</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>}</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>The use of GetExtendedStyle() prevent the switching on/off of a style. For example:</FONT></P><P><FONT face="Courier New, Courier, mono"><FONT size=2><FONT color=#0000ff>if</FONT> ( g_nOptions &amp; MAINOPTIONS_USEGRIDLINES )</FONT></FONT></P><P><FONT face="Courier New, Courier, mono" size=2> m_List.SetExtendedStyle(m_List.GetExtendedStyle()|LVS_EX_GRI DLINES);</FONT></P><P><FONT color=#0000ff><FONT face="Courier New, Courier, mono" size=2>else</FONT></P></FONT><P><FONT face="Courier New, Courier, mono"><FONT size=2> m_List.SetExtendedStyle(m_List.GetExtendedStyle()&amp;~LVS_E X_GRIDLINES);<FONT color=#008000></P></FONT></FONT></FONT><P><FONT face="Courier New, Courier, mono" size=2>does not work with CXTListCtrl, while is works with CListCtrl.</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>Is there a reason for XT to use "GetExtendedStyle()|dwExStyle" instead of just "dwExStyle" ?</FONT></P><P><FONT face="Courier New, Courier, mono" size=2></FONT>&nbsp;</P><P><FONT face="Courier New, Courier, mono" size=2>Thanks</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>-yves</FONT></P><P><FONT face="Courier New, Courier, mono" size=2></FONT>&nbsp;</P><P><FONT face="Courier New, Courier, mono" size=2></FONT>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 03 Nov 2003 16:04:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=209&amp;PID=473&amp;title=cxtlisttab-setextendedstyle-bug#473</guid>
  </item> 
 </channel>
</rss>