<?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[Listview&#x2F;Treeview nicht sichtbar]]></title><description><![CDATA[<p>Hallo!<br />
Ich hab ein Problem mit List- und Treeview:<br />
Ich erstelle sie mit CreateWindow(...), füge etwas inhalt ein und Compiliere. Das funktioniert auch einwandfrei, aber List- und Treeview sind nicht da. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /><br />
Hier mal mein Code, der bei WM_CREATE aufgerufen wird:</p>
<pre><code class="language-cpp">ListView1 = CreateWindowEx(0L,WC_LISTVIEW,&quot;LV&quot;,
                WS_CHILD|WS_VISIBLE|WS_BORDER |LVS_REPORT|LVS_EDITLABELS|LVS_SHOWSELALWAYS,
                10,10,200,100,
                hwnd,(HMENU)4,
                (HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL); 

                LV_COLUMN LvCol;
                memset(&amp;LvCol, 0, sizeof(LvCol));
                LVITEM LvItem;
                LvCol.mask = LVCF_TEXT | LVCF_WIDTH | LVCF_SUBITEM; // Type of mask
                LvCol.cx = 0x0; // width between each coloum
                LvCol.pszText = &quot;Date&quot;; // First Header
                LvCol.cx = 0x40;

                // Inserting Couloms as much as we want
                SendMessage(ListView1, LVM_INSERTCOLUMN, 0, (LPARAM) &amp;LvCol);
                // Insert/Show the coloum

                LvCol.cx = 0x110;
                LvCol.pszText = &quot;Item&quot;;
                SendMessage(ListView1, LVM_INSERTCOLUMN, 2, (LPARAM) &amp;LvCol);
                static HWND hwndTree;
                 hwndTree = CreateWindow (
                 WC_TREEVIEW,                // window class
                 &quot;&quot;,                         // no default text
                 WS_VISIBLE | WS_CHILD | WS_BORDER | TVS_HASLINES | 
                    TVS_HASBUTTONS | TVS_LINESATROOT,
                    10, 120,                      // x,y
                    100,   // cx
                    100,  // cy 
                    hwnd,                 // parent
                    (HMENU) 5,        // identifier
                    (HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), // instance
                    NULL );
</code></pre>
<p>Ich mach's eigentlich genau so, wie in der MSDN und einigen Tut's beschrieben... &gt;.&gt;</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/197964/listview-treeview-nicht-sichtbar</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 13:54:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/197964.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Nov 2007 12:49:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Listview&#x2F;Treeview nicht sichtbar on Fri, 16 Nov 2007 12:49:29 GMT]]></title><description><![CDATA[<p>Hallo!<br />
Ich hab ein Problem mit List- und Treeview:<br />
Ich erstelle sie mit CreateWindow(...), füge etwas inhalt ein und Compiliere. Das funktioniert auch einwandfrei, aber List- und Treeview sind nicht da. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /><br />
Hier mal mein Code, der bei WM_CREATE aufgerufen wird:</p>
<pre><code class="language-cpp">ListView1 = CreateWindowEx(0L,WC_LISTVIEW,&quot;LV&quot;,
                WS_CHILD|WS_VISIBLE|WS_BORDER |LVS_REPORT|LVS_EDITLABELS|LVS_SHOWSELALWAYS,
                10,10,200,100,
                hwnd,(HMENU)4,
                (HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL); 

                LV_COLUMN LvCol;
                memset(&amp;LvCol, 0, sizeof(LvCol));
                LVITEM LvItem;
                LvCol.mask = LVCF_TEXT | LVCF_WIDTH | LVCF_SUBITEM; // Type of mask
                LvCol.cx = 0x0; // width between each coloum
                LvCol.pszText = &quot;Date&quot;; // First Header
                LvCol.cx = 0x40;

                // Inserting Couloms as much as we want
                SendMessage(ListView1, LVM_INSERTCOLUMN, 0, (LPARAM) &amp;LvCol);
                // Insert/Show the coloum

                LvCol.cx = 0x110;
                LvCol.pszText = &quot;Item&quot;;
                SendMessage(ListView1, LVM_INSERTCOLUMN, 2, (LPARAM) &amp;LvCol);
                static HWND hwndTree;
                 hwndTree = CreateWindow (
                 WC_TREEVIEW,                // window class
                 &quot;&quot;,                         // no default text
                 WS_VISIBLE | WS_CHILD | WS_BORDER | TVS_HASLINES | 
                    TVS_HASBUTTONS | TVS_LINESATROOT,
                    10, 120,                      // x,y
                    100,   // cx
                    100,  // cy 
                    hwnd,                 // parent
                    (HMENU) 5,        // identifier
                    (HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), // instance
                    NULL );
</code></pre>
<p>Ich mach's eigentlich genau so, wie in der MSDN und einigen Tut's beschrieben... &gt;.&gt;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404348</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404348</guid><dc:creator><![CDATA[Extinction]]></dc:creator><pubDate>Fri, 16 Nov 2007 12:49:29 GMT</pubDate></item><item><title><![CDATA[Reply to Listview&#x2F;Treeview nicht sichtbar on Fri, 16 Nov 2007 13:03:31 GMT]]></title><description><![CDATA[<p>ih weiß nicht obs daran liegt, aber ich glaube du musst InitCommonControls() zuvor aufrufen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404362</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404362</guid><dc:creator><![CDATA[Black Shadow]]></dc:creator><pubDate>Fri, 16 Nov 2007 13:03:31 GMT</pubDate></item><item><title><![CDATA[Reply to Listview&#x2F;Treeview nicht sichtbar on Fri, 16 Nov 2007 18:58:20 GMT]]></title><description><![CDATA[<p>Joa, das hab ich auch schon versucht, allerdings bekomm ich dann einen Linker Fehler:<br />
ld returned 1 exit status</p>
<p>Btw: Ich benutze Bloodshed v4.9.9.2</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404630</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404630</guid><dc:creator><![CDATA[Extinction]]></dc:creator><pubDate>Fri, 16 Nov 2007 18:58:20 GMT</pubDate></item><item><title><![CDATA[Reply to Listview&#x2F;Treeview nicht sichtbar on Fri, 16 Nov 2007 19:46:37 GMT]]></title><description><![CDATA[<p>yeah, versuchs mit nem Rechner neustart oder leg nen neues projekt an... das sind so die kleinen Fehler mit denen Dev C++ versucht den Axtverkauf anzukurbeln xP</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404648</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404648</guid><dc:creator><![CDATA[gosha16]]></dc:creator><pubDate>Fri, 16 Nov 2007 19:46:37 GMT</pubDate></item></channel></rss>