<?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[2 Fragen ( Kontxtmenü, Fenster Problem )]]></title><description><![CDATA[<p>Hi Jungs,<br />
ich hab nun eine ListBox und möchte gerne wenn man da mit der Rechten maus rein clickt das ein Menü kommt wo man z.B auf Löschen drücken kann so das wäre das erste.<br />
Das zweite ich habe ein Fenster gemacht :</p>
<pre><code>Parent :
HWND hwnd;  
hwnd=CreateDialog(hI,MAKEINTRESOURCE(IDD_MAIN),0,DlgProc);

Child :
HWND hChat;
hChat=CreateDialog(hI,MAKEINTRESOURCE(IDD_CHAT),hwnd,DlgChat);

int CALLBACK DlgChat(HWND hChat, UINT message, WPARAM wParam, LPARAM lParam) {

		switch (message) {

		case WM_INITDIALOG:	// Initialisierung der Elemente

		break;

		case WM_CLOSE:
			MessageBox(hChat,&quot;ENDE...&quot;,&quot;...&quot;,NULL);
			DestroyWindow(hChat);
		break;

		}

	return 0;
}
</code></pre>
<p>Aber das Fenster ist total komisch es überdeckt das Parent Fenster obwohl das Parent den Focus hat es überdeckt es einfach außerdem wenn ich auf das X drücke verschwindet es zwar, aber ich kann es nicht nochmal aufrufen<br />
Was mache ich falsch ?</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/98849/2-fragen-kontxtmenü-fenster-problem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 03:47:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/98849.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Jan 2005 11:04:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 2 Fragen ( Kontxtmenü, Fenster Problem ) on Sun, 23 Jan 2005 11:04:55 GMT]]></title><description><![CDATA[<p>Hi Jungs,<br />
ich hab nun eine ListBox und möchte gerne wenn man da mit der Rechten maus rein clickt das ein Menü kommt wo man z.B auf Löschen drücken kann so das wäre das erste.<br />
Das zweite ich habe ein Fenster gemacht :</p>
<pre><code>Parent :
HWND hwnd;  
hwnd=CreateDialog(hI,MAKEINTRESOURCE(IDD_MAIN),0,DlgProc);

Child :
HWND hChat;
hChat=CreateDialog(hI,MAKEINTRESOURCE(IDD_CHAT),hwnd,DlgChat);

int CALLBACK DlgChat(HWND hChat, UINT message, WPARAM wParam, LPARAM lParam) {

		switch (message) {

		case WM_INITDIALOG:	// Initialisierung der Elemente

		break;

		case WM_CLOSE:
			MessageBox(hChat,&quot;ENDE...&quot;,&quot;...&quot;,NULL);
			DestroyWindow(hChat);
		break;

		}

	return 0;
}
</code></pre>
<p>Aber das Fenster ist total komisch es überdeckt das Parent Fenster obwohl das Parent den Focus hat es überdeckt es einfach außerdem wenn ich auf das X drücke verschwindet es zwar, aber ich kann es nicht nochmal aufrufen<br />
Was mache ich falsch ?</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/703698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/703698</guid><dc:creator><![CDATA[Dummie]]></dc:creator><pubDate>Sun, 23 Jan 2005 11:04:55 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Fragen ( Kontxtmenü, Fenster Problem ) on Sun, 23 Jan 2005 19:30:38 GMT]]></title><description><![CDATA[<p>Für dein erstes Problem musst du afaik die Listbox subclassen. Zum zweiten Problem:</p>
<blockquote>
<p>Typically, the dialog box procedure should return TRUE if it processed the message, and FALSE if it did not. If the dialog box procedure returns FALSE, the dialog manager performs the default dialog operation in response to the message.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/704067</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/704067</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 23 Jan 2005 19:30:38 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Fragen ( Kontxtmenü, Fenster Problem ) on Sun, 23 Jan 2005 19:32:36 GMT]]></title><description><![CDATA[<p>AFAIK nicht.</p>
<blockquote>
<p>If a window is a child window, DefWindowProc sends the message to the parent.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/704068</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/704068</guid><dc:creator><![CDATA[def.]]></dc:creator><pubDate>Sun, 23 Jan 2005 19:32:36 GMT</pubDate></item></channel></rss>