<?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[Text auf Button wird nicht ausgegeben (BS_OWNERDRAW)]]></title><description><![CDATA[<pre><code class="language-cpp">LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) 
{
    static BITMAP bitmap; 
    static HBITMAP hBitmap; 
    HINSTANCE hInstance; 
	static HWND hwndSmaller;
	LPDRAWITEMSTRUCT pDis;
	RECT rect;
     switch (message) 
     { 
     case WM_CREATE:
		 {
		  hwndSmaller=CreateWindow(TEXT(&quot;BUTTON&quot;),0,
									WS_CHILD|WS_VISIBLE|BS_OWNERDRAW,
									100,100,100,100,
									hwnd,(HMENU)3000,hInstance,NULL);
		  SendMessage(hwndSmaller,BM_SETIMAGE , (WPARAM) IMAGE_BITMAP, (LPARAM) hBitmap);

		 }
          return 0 ; 
	 case WM_DRAWITEM:
		 {
			pDis=(LPDRAWITEMSTRUCT)lParam;
			DrawText(pDis-&gt;hDC, TEXT(&quot;A&quot;), -1,&amp;rect, DT_SINGLELINE|DT_CENTER|DT_VCENTER);
		 }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/95984/text-auf-button-wird-nicht-ausgegeben-bs_ownerdraw</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 21:17:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/95984.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Dec 2004 15:51:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Text auf Button wird nicht ausgegeben (BS_OWNERDRAW) on Sun, 26 Dec 2004 15:51:28 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) 
{
    static BITMAP bitmap; 
    static HBITMAP hBitmap; 
    HINSTANCE hInstance; 
	static HWND hwndSmaller;
	LPDRAWITEMSTRUCT pDis;
	RECT rect;
     switch (message) 
     { 
     case WM_CREATE:
		 {
		  hwndSmaller=CreateWindow(TEXT(&quot;BUTTON&quot;),0,
									WS_CHILD|WS_VISIBLE|BS_OWNERDRAW,
									100,100,100,100,
									hwnd,(HMENU)3000,hInstance,NULL);
		  SendMessage(hwndSmaller,BM_SETIMAGE , (WPARAM) IMAGE_BITMAP, (LPARAM) hBitmap);

		 }
          return 0 ; 
	 case WM_DRAWITEM:
		 {
			pDis=(LPDRAWITEMSTRUCT)lParam;
			DrawText(pDis-&gt;hDC, TEXT(&quot;A&quot;), -1,&amp;rect, DT_SINGLELINE|DT_CENTER|DT_VCENTER);
		 }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/681162</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/681162</guid><dc:creator><![CDATA[achso,aehm]]></dc:creator><pubDate>Sun, 26 Dec 2004 15:51:28 GMT</pubDate></item><item><title><![CDATA[Reply to Text auf Button wird nicht ausgegeben (BS_OWNERDRAW) on Sun, 26 Dec 2004 16:14:52 GMT]]></title><description><![CDATA[<p>Und was ist deine Frage?</p>
<p>Lies bitte <a href="http://www.lugbz.org/documents/smart-questions_de.html#id2752220" rel="nofollow">das</a>.</p>
<p>p.s.: Schau dir mal den 4. Parameter von DrawText genau an...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/681172</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/681172</guid><dc:creator><![CDATA[Christoph]]></dc:creator><pubDate>Sun, 26 Dec 2004 16:14:52 GMT</pubDate></item></channel></rss>