<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Style vom ListView wird nicht übernommen]]></title><description><![CDATA[<p>hallo miteinander!<br />
habe folgendes problem: wenn ich von meinem treeview den style definieren möchte und das programm starte dann wird dieser style nicht eingestellt.<br />
hab kein steuerelement sondern nur ein fenster von der klasse Ctreectrl.</p>
<p>mein bisheriger code:</p>
<pre><code>CListCtrl&amp; list = GetListCtrl();
long lStyle,lStyleOld
lStyle = LVS_REPORT;

lStyleOld = GetWindowLong(list.m_hWnd, GWL_STYLE);
lStyleOld &amp;= ~(LVS_TYPEMASK);	// alten Style löschen
lStyleOld |= lStyle;		// neuen Style setzen
SetWindowLong(list.m_hWnd, GWL_STYLE, lStyleOld);

CMainFrame* main = (CMainFrame*) GetParentOwner();
const CWnd* pView = main-&gt;GetRightPane();

main-&gt;SetWindowPos(pView,100,100,0,0,SWP_NOSIZE);
</code></pre>
<p>vielen dank schon mal im voraus!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/48760/style-vom-listview-wird-nicht-übernommen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 00:34:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/48760.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Sep 2003 07:27:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Style vom ListView wird nicht übernommen on Fri, 12 Sep 2003 07:27:11 GMT]]></title><description><![CDATA[<p>hallo miteinander!<br />
habe folgendes problem: wenn ich von meinem treeview den style definieren möchte und das programm starte dann wird dieser style nicht eingestellt.<br />
hab kein steuerelement sondern nur ein fenster von der klasse Ctreectrl.</p>
<p>mein bisheriger code:</p>
<pre><code>CListCtrl&amp; list = GetListCtrl();
long lStyle,lStyleOld
lStyle = LVS_REPORT;

lStyleOld = GetWindowLong(list.m_hWnd, GWL_STYLE);
lStyleOld &amp;= ~(LVS_TYPEMASK);	// alten Style löschen
lStyleOld |= lStyle;		// neuen Style setzen
SetWindowLong(list.m_hWnd, GWL_STYLE, lStyleOld);

CMainFrame* main = (CMainFrame*) GetParentOwner();
const CWnd* pView = main-&gt;GetRightPane();

main-&gt;SetWindowPos(pView,100,100,0,0,SWP_NOSIZE);
</code></pre>
<p>vielen dank schon mal im voraus!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/351988</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/351988</guid><dc:creator><![CDATA[unbennant]]></dc:creator><pubDate>Fri, 12 Sep 2003 07:27:11 GMT</pubDate></item></channel></rss>