<?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[Child-Window-Fehler]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein ziemlich dummes Problem. Ich möchte ein Child-Window erstellen, nur leider meint mein Computer das anders. Dieser gibt nämlich nur immer den Fehler 1407 an (ungülltige HWND-Struktur angegeben).</p>
<p>Ich habe das Erstellen schon überal in meinem Programm versucht, z.B., nach dem erstellen des Main-fensters:</p>
<pre><code class="language-cpp">m_hInst = hInstance;

	HWND hWnd;
	WNDCLASS wc;

	wc.style			= CS_HREDRAW | CS_VREDRAW;
	wc.lpfnWndProc		= static_cast&lt;WNDPROC&gt;(WndProc);
	wc.cbClsExtra		= 0;
	wc.cbWndExtra		= 0;
	wc.hInstance		= hInstance;
	wc.hIcon			= LoadIcon(hInstance, (LPCTSTR)IDI_ICON1);
	wc.hCursor			= LoadCursor(NULL, IDC_ARROW);
	wc.hbrBackground	= reinterpret_cast&lt;HBRUSH&gt;(COLOR_WINDOW+1);
	wc.lpszMenuName		= reinterpret_cast&lt;LPCSTR&gt;(IDR_MENU1);
	wc.lpszClassName	= &quot;WindowClass&quot;;
	if(!RegisterClass(&amp;wc))
		ERROR_MESSAGE(&quot;RegisterClass&quot;, -1);

	hWnd = CreateWindow(&quot;WindowClass&quot;,
		WINDOW_TEXT, WS_OVERLAPPEDWINDOW,
		0,
		0,
		m_Config.m_Conf_Direct3D.VideoMode.Width,
		m_Config.m_Conf_Direct3D.VideoMode.Height,
		NULL,
		NULL,
		hInstance,
		NULL);

	if(!hWnd) 
		ERROR_MESSAGE(&quot;CreateWindow&quot;, -1);

	if(Load(hWnd))
		ERROR_MESSAGE(&quot;Load&quot;, -1);

	ShowWindow(hWnd, nCmdShow);

	CreateWindow(  &quot;TEST&quot;,
                                 NULL,
                                 WS_CHILD | WS_VISIBLE | WS_DLGFRAME,
                                 5,
                                 100 - 35,
                                 100 - 10,
                                 30,
                                 hWnd,
                                 NULL,
                                hInstance,
                                 NULL);

	CLog::WriteToLog(&quot;%i&quot;, GetLastError());

	UpdateWindow(hWnd);

	return 0;
</code></pre>
<p>oder in der Nachrichtenschleife:</p>
<pre><code class="language-cpp">LRESULT CALLBACK CExporter::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	switch( message ) 
	{	
	case WM_CREATE:

		SetTimer(hWnd, 0, 25, NULL);

                  CreateWindow(  &quot;TEST&quot;,
                                 NULL,
                                 WS_CHILD | WS_VISIBLE | WS_DLGFRAME,
                                 5,
                                 100 - 35,
                                 100 - 10,
                                 30,
                                 hWnd,
                                 NULL,
                                 ((LPCREATESTRUCT) lParam)-&gt;hInstance,
                                 NULL);
		break;
</code></pre>
<p>Aber, Es kommt immer wieder dieser Dumme Fehler.</p>
<p>Kann mir jemand helfen???</p>
<p>Danke,</p>
<p>Chrissi</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/74439/child-window-fehler</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 17:13:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/74439.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 May 2004 16:29:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Child-Window-Fehler on Thu, 20 May 2004 16:29:10 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein ziemlich dummes Problem. Ich möchte ein Child-Window erstellen, nur leider meint mein Computer das anders. Dieser gibt nämlich nur immer den Fehler 1407 an (ungülltige HWND-Struktur angegeben).</p>
<p>Ich habe das Erstellen schon überal in meinem Programm versucht, z.B., nach dem erstellen des Main-fensters:</p>
<pre><code class="language-cpp">m_hInst = hInstance;

	HWND hWnd;
	WNDCLASS wc;

	wc.style			= CS_HREDRAW | CS_VREDRAW;
	wc.lpfnWndProc		= static_cast&lt;WNDPROC&gt;(WndProc);
	wc.cbClsExtra		= 0;
	wc.cbWndExtra		= 0;
	wc.hInstance		= hInstance;
	wc.hIcon			= LoadIcon(hInstance, (LPCTSTR)IDI_ICON1);
	wc.hCursor			= LoadCursor(NULL, IDC_ARROW);
	wc.hbrBackground	= reinterpret_cast&lt;HBRUSH&gt;(COLOR_WINDOW+1);
	wc.lpszMenuName		= reinterpret_cast&lt;LPCSTR&gt;(IDR_MENU1);
	wc.lpszClassName	= &quot;WindowClass&quot;;
	if(!RegisterClass(&amp;wc))
		ERROR_MESSAGE(&quot;RegisterClass&quot;, -1);

	hWnd = CreateWindow(&quot;WindowClass&quot;,
		WINDOW_TEXT, WS_OVERLAPPEDWINDOW,
		0,
		0,
		m_Config.m_Conf_Direct3D.VideoMode.Width,
		m_Config.m_Conf_Direct3D.VideoMode.Height,
		NULL,
		NULL,
		hInstance,
		NULL);

	if(!hWnd) 
		ERROR_MESSAGE(&quot;CreateWindow&quot;, -1);

	if(Load(hWnd))
		ERROR_MESSAGE(&quot;Load&quot;, -1);

	ShowWindow(hWnd, nCmdShow);

	CreateWindow(  &quot;TEST&quot;,
                                 NULL,
                                 WS_CHILD | WS_VISIBLE | WS_DLGFRAME,
                                 5,
                                 100 - 35,
                                 100 - 10,
                                 30,
                                 hWnd,
                                 NULL,
                                hInstance,
                                 NULL);

	CLog::WriteToLog(&quot;%i&quot;, GetLastError());

	UpdateWindow(hWnd);

	return 0;
</code></pre>
<p>oder in der Nachrichtenschleife:</p>
<pre><code class="language-cpp">LRESULT CALLBACK CExporter::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	switch( message ) 
	{	
	case WM_CREATE:

		SetTimer(hWnd, 0, 25, NULL);

                  CreateWindow(  &quot;TEST&quot;,
                                 NULL,
                                 WS_CHILD | WS_VISIBLE | WS_DLGFRAME,
                                 5,
                                 100 - 35,
                                 100 - 10,
                                 30,
                                 hWnd,
                                 NULL,
                                 ((LPCREATESTRUCT) lParam)-&gt;hInstance,
                                 NULL);
		break;
</code></pre>
<p>Aber, Es kommt immer wieder dieser Dumme Fehler.</p>
<p>Kann mir jemand helfen???</p>
<p>Danke,</p>
<p>Chrissi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/524103</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/524103</guid><dc:creator><![CDATA[*chrissi]]></dc:creator><pubDate>Thu, 20 May 2004 16:29:10 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Thu, 20 May 2004 16:35:31 GMT]]></title><description><![CDATA[<p>Ach ja,</p>
<p>vielleicht hilft das weiter: Aus irgendeinem Grund startet meine Anwenung nur im Minimierten Modus. Sonst ist aber alles OK!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/524112</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/524112</guid><dc:creator><![CDATA[*chrissi]]></dc:creator><pubDate>Thu, 20 May 2004 16:35:31 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Thu, 20 May 2004 18:45:44 GMT]]></title><description><![CDATA[<p>Hast du überhaupt eine MessageLoop?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/524197</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/524197</guid><dc:creator><![CDATA[D*niel *chumann]]></dc:creator><pubDate>Thu, 20 May 2004 18:45:44 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Thu, 20 May 2004 18:56:20 GMT]]></title><description><![CDATA[<p>Schuldigung, ich meine natürlich Nachrichtenbehandlungscallbackfunktion (oder wie das auch immer heißt). Also das eben, mit den Nachrichten!!! <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>
<p>Das mit dem minimierten Modus hat sich schon erledigt. Es lag an einer falschen Config-Einstellung.</p>
<p>Falls mein Problem nicht gefunden werden kann, könnte mir jemand vielleicht den Code einer Windows-Anwendung posten, die ein Fenster erstellt und zusätzlich ein Childfenster. Vielleicht sehe ich dann im Vergleich, was ich falsch gemacht habe!</p>
<p>Danke,</p>
<p>Chrissi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/524201</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/524201</guid><dc:creator><![CDATA[*chrissi]]></dc:creator><pubDate>Thu, 20 May 2004 18:56:20 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Thu, 20 May 2004 19:31:29 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;

#define IDC_BTN 100

HINSTANCE hInstGlobal;

LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	hInstGlobal = hInstance;

	WNDCLASS WndMain;
	WndMain.style         = CS_HREDRAW | CS_VREDRAW;
	WndMain.cbClsExtra    = 0;
	WndMain.cbWndExtra    = 0;
	WndMain.lpfnWndProc   = WndProc;
	WndMain.hbrBackground = (HBRUSH) COLOR_WINDOW;
	WndMain.hCursor       = LoadCursor(NULL, IDC_ARROW);
	WndMain.hIcon         = LoadIcon(NULL, IDI_APPLICATION);
	WndMain.hInstance     = hInstance;
	WndMain.lpszClassName = &quot;WndClass&quot;;
	WndMain.lpszMenuName  = 0;

	RegisterClass(&amp;WndMain);

	HWND hWndMain;
	hWndMain = CreateWindowEx(
		0,
		&quot;WndClass&quot;,
		&quot;SomeWindow&quot;,
		WS_OVERLAPPEDWINDOW,
		(int) (GetSystemMetrics(SM_CXSCREEN) / 2) - 300, 
		(int) (GetSystemMetrics(SM_CYSCREEN) / 2) - 250, 
		600, 
		500,
		NULL,
		NULL,
		hInstance,
		NULL
	);

	ShowWindow(hWndMain, nCmdShow);
	UpdateWindow(hWndMain);

	MSG msg;

          // Das ist die MessageLoop, die bei Dir Fehlt
	while (GetMessage(&amp;msg, NULL, 0, 0))
	{
		TranslateMessage(&amp;msg);
		DispatchMessage(&amp;msg);
	}

	return (msg.wParam);
}

LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
	static HWND hBtn;

	switch(msg)
	{
	case WM_CREATE:
		hBtn = CreateWindowEx(0, &quot;BUTTON&quot;, &quot;Test&quot;, 
				WS_CHILD | WS_VISIBLE, 2, 200, 75, 25, hWnd, (HMENU) IDC_BTN, hInstGlobal, NULL);
		return 0;
	case WM_COMMAND:
		switch (HIWORD(wParam))
		{
		case BN_CLICKED:
			switch (LOWORD(wParam))
			{
			case IDC_BTN:
				MessageBox(hWnd, &quot;Hallo&quot;, &quot;Test&quot;, MB_OK);
				return 0;
			}

			return 0;
		}
		return 0;
	case WM_DESTROY:
		PostQuitMessage(0);
		return 0;
	default:
		return DefWindowProc(hWnd, msg, wParam, lParam);
	}
}
</code></pre>
<p>MfG<br />
tuküe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/524213</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/524213</guid><dc:creator><![CDATA[tuküe]]></dc:creator><pubDate>Thu, 20 May 2004 19:31:29 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Thu, 20 May 2004 20:20:26 GMT]]></title><description><![CDATA[<p>Wo registrierst du denn überhaupt deine verwendete Fensterklasse &quot;TEST&quot; <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/524241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/524241</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 20 May 2004 20:20:26 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Fri, 21 May 2004 18:58:45 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>erstmal vielen Dank für die Antworten.</p>
<p>Ich habe war die Fensterklasse regestriert und eine Nachrichtenschleife habe ich auch (in einer externen Funktion), aber funktioniert hat es noch nicht. Jetzt habe ich die ganze Anwendung neu gecodet, aber herausgekommen ist nicht die Lösung meines Problemes.</p>
<p>ich wollte nämlich was anderes:</p>
<p>Es soll ein extra verschiebbares Fenster (Mit Symbolleiste etc.) zu dem Hauptfenster erstellt werden, welches auch Aktionen im Hauptfenster auslösen kann. (z.B. neuer Hintergrund...). Eben soetwas wie bei GIMP, dort gibt es nämlich einmal gibt es das Hauptfenster mit dem Bild und einmal gib es das Werkzeugfenster.</p>
<p>Danke,<br />
Chrissi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/524861</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/524861</guid><dc:creator><![CDATA[*chrissi]]></dc:creator><pubDate>Fri, 21 May 2004 18:58:45 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Fri, 21 May 2004 19:33:03 GMT]]></title><description><![CDATA[<p>Was ist jetzt dein Problem <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/524877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/524877</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 21 May 2004 19:33:03 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Fri, 21 May 2004 20:10:31 GMT]]></title><description><![CDATA[<p>Ich weiß nicht, wie ich solch ein Fenster, welches Aktionen im Main-Fenster auslösen kann, erstelle. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Ich hoffe, jemand kennt die Antwort auf mein Problem,</p>
<p>Schüssi,</p>
<p>Chrissi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/524888</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/524888</guid><dc:creator><![CDATA[*chrissi]]></dc:creator><pubDate>Fri, 21 May 2004 20:10:31 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Fri, 21 May 2004 20:54:40 GMT]]></title><description><![CDATA[<p>Du erstellst einfach für jedes (unterschiedliche) Fenster eine Fensterklasse mit eigener WndProc. Aus dieser heraus kannst du ja (selbstdefinierte) Messages an dein Hauptfenster schicken <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/524902</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/524902</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 21 May 2004 20:54:40 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Fri, 21 May 2004 21:31:08 GMT]]></title><description><![CDATA[<p>~chrissi schrieb:</p>
<blockquote>
<p>...soetwas wie bei GIMP, dort gibt es nämlich einmal gibt es das Hauptfenster mit dem Bild und einmal gib es das Werkzeugfenster...</p>
</blockquote>
<p>das klingt für mich nach MDI...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/524912</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/524912</guid><dc:creator><![CDATA[dot]]></dc:creator><pubDate>Fri, 21 May 2004 21:31:08 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Fri, 21 May 2004 21:43:07 GMT]]></title><description><![CDATA[<p>Ich denke nicht, dass er sowas meint <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /><br />
Ich hatte das so verstanden, dass er einfach eine Anwendung will, die auf mehreren Fenstern besteht, die alle andere Aufgaben haben <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/524919</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/524919</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 21 May 2004 21:43:07 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Fri, 21 May 2004 22:13:20 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/6496">@dot</a><br />
Schon mal <a href="http://www.gimp.org/screenshots/" rel="nofollow">Gimp</a> gesehen? Sieht nicht nach MDI aus.</p>
<p>@~chrissi<br />
ich hab auch mal sowas ähnliches gemacht. Hier der Code, falls du noch Probleme damit hast:</p>
<pre><code class="language-cpp">LRESULT CALLBACK ChildProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
	static HWND hBtnChild;
	static HWND hParent;

    switch(msg)
    {
    case WM_CREATE:
		hParent = (HWND) GetWindowLong(hWnd, GWL_HWNDPARENT);
        hBtnChild = CreateWindowEx(0, &quot;BUTTON&quot;, &quot;foo&quot;, WS_CHILD | WS_VISIBLE, 
			10, 150, 75, 25, hWnd, (HMENU) IDC_BTNCHILD, hInstGlobal, NULL);
        return 0;
    case WM_COMMAND:
        switch (HIWORD(wParam))
        {
        case BN_CLICKED:
            switch (LOWORD(wParam))
            {
            case IDC_BTNCHILD:
				SendMessage(hParent, WM_SETTEXT, 0, (LPARAM) &quot;foo&quot;);
				return 0;
            }

            return 0;
        }
        return 0;
    case WM_DESTROY:
		EnableWindow(hBtn, TRUE);
        SendMessage(hWnd, WM_CLOSE, 0, 0);
        return 0;
    default:
        return DefWindowProc(hWnd, msg, wParam, lParam);
    }
}

HWND CreateChild(HWND hParent, HINSTANCE hInst)
{
	WNDCLASS WndChild;
    WndChild.style         = CS_HREDRAW | CS_VREDRAW;
    WndChild.cbClsExtra    = 0;
    WndChild.cbWndExtra    = 0;
    WndChild.lpfnWndProc   = ChildProc;
    WndChild.hbrBackground = (HBRUSH) COLOR_WINDOW;
    WndChild.hCursor       = LoadCursor(NULL, IDC_ARROW);
    WndChild.hIcon         = LoadIcon(NULL, IDI_APPLICATION);
    WndChild.hInstance     = hInst;
    WndChild.lpszClassName = &quot;ChildClass&quot;;
    WndChild.lpszMenuName  = 0;

    RegisterClass(&amp;WndChild);

    HWND hWnd;
    hWnd = CreateWindowEx(
        0,
        &quot;ChildClass&quot;,
        &quot;ChildWindow&quot;,
        WS_OVERLAPPEDWINDOW,
        (int) (GetSystemMetrics(SM_CXSCREEN) / 2) - 300,
        (int) (GetSystemMetrics(SM_CYSCREEN) / 2) - 300,
        300,
        300,
        hParent,
        NULL,
        hInst,
        NULL
    );

	return hWnd;
}

// Aufruf in der Haupt-WndProc

    case WM_COMMAND:
        switch (HIWORD(wParam))
        {
        case BN_CLICKED:
            switch (LOWORD(wParam))
            {
            case IDC_BTN:
				hChild = CreateChild(hWnd, hInstGlobal);
				ShowWindow(hChild, SW_SHOW);
				EnableWindow(hBtn, FALSE);
				return 0;
            }

            return 0;
        }
        return 0;
</code></pre>
<p>MfG<br />
tuküe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/524932</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/524932</guid><dc:creator><![CDATA[tuküe]]></dc:creator><pubDate>Fri, 21 May 2004 22:13:20 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Sat, 22 May 2004 11:58:41 GMT]]></title><description><![CDATA[<p>tuküe schrieb:</p>
<blockquote>
<p>Hallo,</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/6496">@dot</a><br />
Schon mal <a href="http://www.gimp.org/screenshots/" rel="nofollow">Gimp</a> gesehen? Sieht nicht nach MDI aus.</p>
</blockquote>
<p>nein hatts noch nicht gesehn<br />
hast aber recht, sieht nicht nach MDI aus...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/525068</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/525068</guid><dc:creator><![CDATA[dot]]></dc:creator><pubDate>Sat, 22 May 2004 11:58:41 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Sat, 22 May 2004 12:06:03 GMT]]></title><description><![CDATA[<p>Ganz normale Tool-Windows denke ich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/525073</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/525073</guid><dc:creator><![CDATA[denker]]></dc:creator><pubDate>Sat, 22 May 2004 12:06:03 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Sat, 22 May 2004 19:46:01 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>jetzt funktioniert es. Nur noch zwei Fragen:</p>
<p>1. Wie mache ich, dass das &quot;Child&quot;-Fenster nach dem Erstellen im Vordergrund (und aktiviert) ist, zusätzlich zu dem Hauptfenster(welches auch aktiviert bleibt!)???</p>
<p>2. Warum funktioniert dies nicht:</p>
<p>[cpp]ss &lt;&lt; &quot;CHILDWINDOWCLASS_FOR_&quot; &lt;&lt; sWindowTitle &lt;&lt; &quot;_&quot; &lt;&lt; CExporter::m_iNumCreatedChildWindows++;<br />
ex.lpszClassName=ss.str().c_str();[cpp]</p>
<p>Vielen Dank nochmal,</p>
<p>Chrissi</p>
<p>[EDIT]Gibt es eigentlich eine Funktion, die überprüft, ob eine bestimmte HWND-Struktur gülltig ist, bzw die checkt, ob das Fenster einer HWND-Struktur erstellt oder nicht erstellt ist???[/EDIT]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/525274</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/525274</guid><dc:creator><![CDATA[*chrissi]]></dc:creator><pubDate>Sat, 22 May 2004 19:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Sat, 22 May 2004 20:27:18 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>1. in meinem Beispiel sollte doch das Fenster aktiviert und im Vordergrund sein, oder was meinst du? Das beide gleichzeitig den Fokus haben? Das geht nicht.</p>
<p>2. Weiss ich nicht. Aber näher Angaben was genau nicht funktioniert und was überhaupt da gemacht wird wären hilfreich.</p>
<blockquote>
<p>Gibt es eigentlich eine Funktion, die überprüft, ob eine bestimmte HWND-Struktur gülltig ist, bzw die checkt, ob das Fenster einer HWND-Struktur erstellt oder nicht erstellt ist</p>
</blockquote>
<p>Wenn du eine Funktion aufrufst, die ein HWND zurückgibt, einfach überprüfen, ob dieser 0 ist.</p>
<p>MfG<br />
tuküe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/525308</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/525308</guid><dc:creator><![CDATA[tuküe]]></dc:creator><pubDate>Sat, 22 May 2004 20:27:18 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Sun, 23 May 2004 12:22:34 GMT]]></title><description><![CDATA[<p>tuküe schrieb:</p>
<blockquote>
<p>In meinem Beispiel sollte doch das Fenster aktiviert und im Vordergrund sein, oder was meinst du? Das beide gleichzeitig den Fokus haben? Das geht nicht.</p>
</blockquote>
<p><a href="http://www.catch22.org.uk/tuts/docking1.asp" rel="nofollow">Hier</a> wird u.a. erklärt, wie du genau dies erreichen kannst (&quot;Prevent window deactivation&quot; &amp; &quot;Proper window activation&quot;)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/525574</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/525574</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 23 May 2004 12:22:34 GMT</pubDate></item><item><title><![CDATA[Reply to Child-Window-Fehler on Mon, 24 May 2004 18:26:46 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>vielen Dank für die Antworten. Jetzt funktioniert alles. Frage 1 hat sich erledigt, bei Frage 2 nehme ich jetzt uncoole c-Strings mit sprintf, was aber funktioniert <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /> , und Frage 3 hat sich auch erledigt.</p>
<p>@ Flenders: Der Link hört sich interessant an. Werde gleich mal reinschauen.</p>
<p>Vielen Dank nochmals,</p>
<p>Schüssi,</p>
<p>Chrissi</p>
<p>[EDIT]Wer deutsch kann, ist hier eindeutig im Vorteil...[/EDIT]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/526499</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/526499</guid><dc:creator><![CDATA[*chrissi]]></dc:creator><pubDate>Mon, 24 May 2004 18:26:46 GMT</pubDate></item></channel></rss>