<?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[DialogBox ohne Hintergrund]]></title><description><![CDATA[<p>hi,<br />
hab leider keinen besseren titel fuer mein problem finden koennen. also folgendes problem: habe wie immer einen dialog erstellt, aber alles bis auf die buttons, die texte, icons... also eigentlich der ganze hintergrund, ist durchsichtig. kein hintergrund, keine captionbar... sieht komisch aus? ist aber so! hab keine ahnunng woran das liegen koennte, also poste ich mal allen wichtigen code:</p>
<pre><code class="language-cpp">// WndProc
  // Aufruf
DialogBox ( reinterpret_cast &lt; HINSTANCE &gt; ( GetWindowLongPtr ( hwnd, GWLP_HINSTANCE ) ), &quot;HelpBox&quot;, hwnd, reinterpret_cast &lt; DLGPROC &gt; ( DlgProc ) );
</code></pre>
<pre><code class="language-cpp">// DlgProc
bool CALLBACK DlgProc ( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam )  {
	if ( message == WM_INITDIALOG )
		return true;
  else if ( message == WM_COMMAND &amp;&amp; LOWORD ( wParam ) == IDOK )  {  
		EndDialog ( hwnd, 0 );
		return true;
	}
	else
	  return false;
};
</code></pre>
<pre><code>// die resource datei
HELPBOX DIALOG DISCARDABLE  32, 32, 186, 90
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
CAPTION &quot;Help&quot;
FONT 8, &quot;MS Sans Serif&quot;
BEGIN
    DEFPUSHBUTTON   &quot;OK&quot;,IDOK,68,63,50,14
    LTEXT           &quot;Help not yet implemented&quot;,IDC_STATIC,51,33,82,8
END
</code></pre>
<p>ich kann leider keine ungereimtheiten entdecken. bedanke mich schon mal im voraus fuer eure hilfe.</p>
<p>was auch immer</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/80860/dialogbox-ohne-hintergrund</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 10:00:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/80860.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 25 Jul 2004 18:40:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DialogBox ohne Hintergrund on Sun, 25 Jul 2004 18:40:23 GMT]]></title><description><![CDATA[<p>hi,<br />
hab leider keinen besseren titel fuer mein problem finden koennen. also folgendes problem: habe wie immer einen dialog erstellt, aber alles bis auf die buttons, die texte, icons... also eigentlich der ganze hintergrund, ist durchsichtig. kein hintergrund, keine captionbar... sieht komisch aus? ist aber so! hab keine ahnunng woran das liegen koennte, also poste ich mal allen wichtigen code:</p>
<pre><code class="language-cpp">// WndProc
  // Aufruf
DialogBox ( reinterpret_cast &lt; HINSTANCE &gt; ( GetWindowLongPtr ( hwnd, GWLP_HINSTANCE ) ), &quot;HelpBox&quot;, hwnd, reinterpret_cast &lt; DLGPROC &gt; ( DlgProc ) );
</code></pre>
<pre><code class="language-cpp">// DlgProc
bool CALLBACK DlgProc ( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam )  {
	if ( message == WM_INITDIALOG )
		return true;
  else if ( message == WM_COMMAND &amp;&amp; LOWORD ( wParam ) == IDOK )  {  
		EndDialog ( hwnd, 0 );
		return true;
	}
	else
	  return false;
};
</code></pre>
<pre><code>// die resource datei
HELPBOX DIALOG DISCARDABLE  32, 32, 186, 90
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
CAPTION &quot;Help&quot;
FONT 8, &quot;MS Sans Serif&quot;
BEGIN
    DEFPUSHBUTTON   &quot;OK&quot;,IDOK,68,63,50,14
    LTEXT           &quot;Help not yet implemented&quot;,IDC_STATIC,51,33,82,8
END
</code></pre>
<p>ich kann leider keine ungereimtheiten entdecken. bedanke mich schon mal im voraus fuer eure hilfe.</p>
<p>was auch immer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/568033</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568033</guid><dc:creator><![CDATA[was auch immer]]></dc:creator><pubDate>Sun, 25 Jul 2004 18:40:23 GMT</pubDate></item><item><title><![CDATA[Reply to DialogBox ohne Hintergrund on Sun, 25 Jul 2004 20:33:03 GMT]]></title><description><![CDATA[<p>mir ist grad aufgefallen, dass waehrend der dialog aktiv ist die cpu auslastung auf 100 % steigt; aber ich kann keine endlosschleife oder aehnliches sehen.</p>
<p>was auch immer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/568094</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568094</guid><dc:creator><![CDATA[was auch immer]]></dc:creator><pubDate>Sun, 25 Jul 2004 20:33:03 GMT</pubDate></item><item><title><![CDATA[Reply to DialogBox ohne Hintergrund on Sun, 25 Jul 2004 20:57:43 GMT]]></title><description><![CDATA[<p>problem geloest. hab den code folgendermassen abgeeandert:</p>
<pre><code class="language-cpp">bool CALLBACK DlgProc ( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam )  {
	switch ( message )  {
		case WM_INITDIALOG:
			return true;

		case WM_COMMAND:
			switch ( LOWORD ( wParam ) )  {
	    	case IDOK:
					EndDialog ( hwnd, 0 );
					return true;
			}
			break;
	};
	return false;
};
</code></pre>
<p>was ich aber nicht verstehe: ist doch das selbe? aber wenigstens funktioniert es jetzt.</p>
<p>was auch immer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/568112</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/568112</guid><dc:creator><![CDATA[was auch immer]]></dc:creator><pubDate>Sun, 25 Jul 2004 20:57:43 GMT</pubDate></item></channel></rss>