<?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 &amp;quot;buttondruck&amp;quot;]]></title><description><![CDATA[<p>ich moechte gerne einen text in mein standart fenster auf knopfdruck ausgsgeben, habe aber keine ahnung wie ich dies machen kann?? koennte mir jemand ein beispiel code posten??</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/84039/text-auf-quot-buttondruck-quot</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 18:39:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/84039.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Aug 2004 13:01:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to text auf &amp;quot;buttondruck&amp;quot; on Thu, 26 Aug 2004 13:01:12 GMT]]></title><description><![CDATA[<p>ich moechte gerne einen text in mein standart fenster auf knopfdruck ausgsgeben, habe aber keine ahnung wie ich dies machen kann?? koennte mir jemand ein beispiel code posten??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/591872</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/591872</guid><dc:creator><![CDATA[Moh]]></dc:creator><pubDate>Thu, 26 Aug 2004 13:01:12 GMT</pubDate></item><item><title><![CDATA[Reply to text auf &amp;quot;buttondruck&amp;quot; on Thu, 26 Aug 2004 16:20:23 GMT]]></title><description><![CDATA[<p>Beim Klick auf den Button bekommst du eine WM_COMMAND-Nachricht. Dort setzt du dann eine statische Variable auf einen bestimmten Wert und fragst diesen dann in WM_PAINT ab und zeichnest dann in Abhängigkeit davon den Text <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/592169</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/592169</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 26 Aug 2004 16:20:23 GMT</pubDate></item><item><title><![CDATA[Reply to text auf &amp;quot;buttondruck&amp;quot; on Fri, 27 Aug 2004 16:45:21 GMT]]></title><description><![CDATA[<p>??, etwas ausfuehrlich bitte, ich versteh nicht so recht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/593390</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/593390</guid><dc:creator><![CDATA[Moh]]></dc:creator><pubDate>Fri, 27 Aug 2004 16:45:21 GMT</pubDate></item><item><title><![CDATA[Reply to text auf &amp;quot;buttondruck&amp;quot; on Fri, 27 Aug 2004 20:32:56 GMT]]></title><description><![CDATA[<p>So ungefähr:</p>
<pre><code class="language-cpp">LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	HDC hdc;
	PAINTSTRUCT ps;
	static bool pressed = false;
	static char text[] = &quot;Der Button wurde gedrückt&quot;;

	switch (message)
	{
		case WM_CREATE:
			CreateWindow(&quot;BUTTON&quot;,&quot;Klick mich&quot;,WS_CHILD|WS_VISIBLE,10,10,200,25,hwnd,(HMENU)1,((LPCREATESTRUCT)lParam)-&gt;hInstance,NULL);
			return (0);

		case WM_COMMAND:
			if(HIWORD(wParam) == BN_CLICKED)
			{
				switch(LOWORD(wParam))
				{
					case 1:
						pressed = !pressed;
						InvalidateRect(hwnd,NULL,true);
						break;
				}
			}
			return (0);

		case WM_PAINT:
			hdc = BeginPaint (hwnd, &amp;ps);
			if(pressed) TextOut (hdc, 10, 50, text, sizeof(text));
			EndPaint (hwnd, &amp;ps);
			return (0);

		case WM_DESTROY:
			PostQuitMessage (0);
			return (0);
	}
	return DefWindowProc (hwnd, message, wParam, lParam);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/593519</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/593519</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 27 Aug 2004 20:32:56 GMT</pubDate></item><item><title><![CDATA[Reply to text auf &amp;quot;buttondruck&amp;quot; on Sat, 28 Aug 2004 06:20:21 GMT]]></title><description><![CDATA[<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/593596</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/593596</guid><dc:creator><![CDATA[Moh]]></dc:creator><pubDate>Sat, 28 Aug 2004 06:20:21 GMT</pubDate></item></channel></rss>