<?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[WM_MEASUREITEM: MEASUREITEMSTRUCT mis = (MEASUREITEMSTRUCT)lParam, klappt nicht!]]></title><description><![CDATA[<p>Wieso geht das nicht????</p>
<pre><code class="language-cpp">case WM_MEASUREITEM: {

            MEASUREITEMSTRUCT mis = (MEASUREITEMSTRUCT)lParam;

            switch( mis.CtlID ) {

                case ID_LISTBOX: {

                    MessageBox( 0, &quot;&quot;, &quot;&quot;, MB_OK );                  
                    break;
                }
            }
            break;
        }
</code></pre>
<p>Gruß Tobi.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/204850/wm_measureitem-measureitemstruct-mis-measureitemstruct-lparam-klappt-nicht</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 15:33:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/204850.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Feb 2008 15:59:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WM_MEASUREITEM: MEASUREITEMSTRUCT mis = (MEASUREITEMSTRUCT)lParam, klappt nicht! on Thu, 07 Feb 2008 15:59:00 GMT]]></title><description><![CDATA[<p>Wieso geht das nicht????</p>
<pre><code class="language-cpp">case WM_MEASUREITEM: {

            MEASUREITEMSTRUCT mis = (MEASUREITEMSTRUCT)lParam;

            switch( mis.CtlID ) {

                case ID_LISTBOX: {

                    MessageBox( 0, &quot;&quot;, &quot;&quot;, MB_OK );                  
                    break;
                }
            }
            break;
        }
</code></pre>
<p>Gruß Tobi.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1451337</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1451337</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Thu, 07 Feb 2008 15:59:00 GMT</pubDate></item><item><title><![CDATA[Reply to WM_MEASUREITEM: MEASUREITEMSTRUCT mis = (MEASUREITEMSTRUCT)lParam, klappt nicht! on Thu, 07 Feb 2008 16:02:26 GMT]]></title><description><![CDATA[<p>hmm ok anscheint muss man LPMEASUREITEMSTRUCT benutzen.</p>
<p>gruß Tobi.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1451340</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1451340</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Thu, 07 Feb 2008 16:02:26 GMT</pubDate></item><item><title><![CDATA[Reply to WM_MEASUREITEM: MEASUREITEMSTRUCT mis = (MEASUREITEMSTRUCT)lParam, klappt nicht! on Thu, 07 Feb 2008 19:27:46 GMT]]></title><description><![CDATA[<p>aber evtl. doch noch in diesem Thread, weil wollte jetzt nicht extra ein neuen machen, wie mache ich es das ich die einzeln eingefuegten Elemente unterschiedlich färbe, weil so:</p>
<pre><code class="language-cpp">case WM_DRAWITEM: {

            LPDRAWITEMSTRUCT lpDis = (LPDRAWITEMSTRUCT)lParam;

            switch( lpDis-&gt;CtlID ) {

                case ID_LISTBOX: {

                    HBRUSH hBack = CreateSolidBrush( RGB( 235, 235, 255 ) );

                    if( ( SendMessage( lpDis-&gt;hwndItem, LB_GETCOUNT, 0, 0 ) % 2 ) != 0 ) {

                        ::FillRect( lpDis-&gt;hDC, &amp;lpDis-&gt;rcItem, hBack );
                    }
                    break;
                }
            }
            break;
        }
</code></pre>
<p>gehts nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1451486</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1451486</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Thu, 07 Feb 2008 19:27:46 GMT</pubDate></item><item><title><![CDATA[Reply to WM_MEASUREITEM: MEASUREITEMSTRUCT mis = (MEASUREITEMSTRUCT)lParam, klappt nicht! on Fri, 08 Feb 2008 11:56:17 GMT]]></title><description><![CDATA[<p>also ich such ja selber schon bei google ect. aber finden tue ich eigentlich nur MFC Kram.</p>
<p>Please Help! o.O</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1451877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1451877</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Fri, 08 Feb 2008 11:56:17 GMT</pubDate></item><item><title><![CDATA[Reply to WM_MEASUREITEM: MEASUREITEMSTRUCT mis = (MEASUREITEMSTRUCT)lParam, klappt nicht! on Fri, 08 Feb 2008 12:08:14 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">case WM_DRAWITEM:
            #define lpDis     ((DRAWITEMSTRUCT*) lParam)

            COLORREF bgColor;
            RECT rc;

            switch (lpDis-&gt;CtlID)
            {
                case ID_LISTBOX:
                    if (lpDis-&gt;itemState &amp; ODS_SELECTED)
                        bgColor = RGB (215, 230, 215);
                    else
                    {
                        if (lpDis-&gt;itemID % 2 == 0)
                            bgColor = RGB (255, 255, 255);
                        else
                            bgColor = RGB (245, 245, 245);
                    }

                    HBRUSH hbr = CreateSolidBrush (bgColor);
                    FillRect (lpDis-&gt;hDC, &amp;lpDis-&gt;rcItem, hbr);
                    DeleteObject (hbr);
                break;
            }

            #undef lpDis
        break;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1451891</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1451891</guid><dc:creator><![CDATA[Fake oder Echt]]></dc:creator><pubDate>Fri, 08 Feb 2008 12:08:14 GMT</pubDate></item><item><title><![CDATA[Reply to WM_MEASUREITEM: MEASUREITEMSTRUCT mis = (MEASUREITEMSTRUCT)lParam, klappt nicht! on Fri, 08 Feb 2008 13:49:32 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /> oh danke.</p>
<p>Gruß Tobi.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1451988</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1451988</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Fri, 08 Feb 2008 13:49:32 GMT</pubDate></item></channel></rss>