<?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[Was bedeutet Owner Drawn??]]></title><description><![CDATA[<p>hallo</p>
<p>kann mir irgend wer erklären was genau &quot;owner drawn&quot; bedeutet??</p>
<p>danke</p>
<p>flocki</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/54641/was-bedeutet-owner-drawn</link><generator>RSS for Node</generator><lastBuildDate>Mon, 01 Jun 2026 18:45:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/54641.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Nov 2003 13:31:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Was bedeutet Owner Drawn?? on Sun, 09 Nov 2003 13:31:16 GMT]]></title><description><![CDATA[<p>hallo</p>
<p>kann mir irgend wer erklären was genau &quot;owner drawn&quot; bedeutet??</p>
<p>danke</p>
<p>flocki</p>
]]></description><link>https://www.c-plusplus.net/forum/post/390125</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/390125</guid><dc:creator><![CDATA[flocki]]></dc:creator><pubDate>Sun, 09 Nov 2003 13:31:16 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet Owner Drawn?? on Sun, 09 Nov 2003 13:45:50 GMT]]></title><description><![CDATA[<p>flocki schrieb:</p>
<blockquote>
<p>hallo<br />
kann mir irgend wer erklären was genau &quot;owner drawn&quot; bedeutet??</p>
</blockquote>
<p>wahrscheinlich meinst du die style einstellung con CButton.</p>
<p>hier ein auszug aus der msdn, that explains a lot!</p>
<pre><code>// NOTE: CMyButton is a class derived from CButton. The CMyButton
// object was created as follows:
//
// CMyButton myButton;
// myButton.Create(_T(&quot;My button&quot;), 
//      WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON|BS_OWNERDRAW, 
//      CRect(10,10,100,30), pParentWnd, 1);
//

// This example implements the DrawItem method for a CButton-derived 
// class that draws the button's text using the color red.
void CMyButton::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) 
{
   UINT uStyle = DFCS_BUTTONPUSH;

   // This code only works with buttons.
   ASSERT(lpDrawItemStruct-&gt;CtlType == ODT_BUTTON);

   // If drawing selected, add the pushed style to DrawFrameControl.
   if (lpDrawItemStruct-&gt;itemState &amp; ODS_SELECTED)
      uStyle |= DFCS_PUSHED;

   // Draw the button frame.
   ::DrawFrameControl(lpDrawItemStruct-&gt;hDC, &amp;lpDrawItemStruct-&gt;rcItem, 
      DFC_BUTTON, uStyle);

   // Get the button's text.
   CString strText;
   GetWindowText(strText);

   // Draw the button text using the text color red.
   COLORREF crOldColor = ::SetTextColor(lpDrawItemStruct-&gt;hDC, RGB(255,0,0));
   ::DrawText(lpDrawItemStruct-&gt;hDC, strText, strText.GetLength(), 
      &amp;lpDrawItemStruct-&gt;rcItem, DT_SINGLELINE|DT_VCENTER|DT_CENTER);
   ::SetTextColor(lpDrawItemStruct-&gt;hDC, crOldColor);
}
</code></pre>
<p>mit hilfe von owner draw kannst du unter anderem bitmaps auf die buttons bringen, oder insgesamt den style der buttons verändern.</p>
<p>für weitere einzelheiten gibt es in der msdn beispiele...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/390140</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/390140</guid><dc:creator><![CDATA[alex-t]]></dc:creator><pubDate>Sun, 09 Nov 2003 13:45:50 GMT</pubDate></item></channel></rss>