<?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[Dialog...]]></title><description><![CDATA[<p>Hi Leute<br />
Ich hab ehrlich gesagt keine Ahnung, ob das hier hier hin oder eher in eine der Kategorien oben hin gehört, ich hoffe ihr sehts nem armen noob wie mir nach^^<br />
Also, ich habe in einer resource Datei einen Dialog, nur wenn ich ihn aufrufe<br />
kommt kein Dialog, das Hauptfenster wird allerdings so als ob ein Dialog vorhanden wäre.<br />
Compiler: gnu compiler<br />
die resource Datei:</p>
<pre><code class="language-cpp">...
IDD_HILFE DIALOGEX 0, 0, 316, 118
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION &quot;Dialog&quot;
FONT 8, &quot;MS Shell Dlg&quot;, 400, 0, 0x1
BEGIN
    DEFPUSHBUTTON   &quot;OK&quot;,IDOK,259,97,50,14
    GROUPBOX        &quot;Steuerung des Spiels&quot;,IDC_STATIC,17,7,136,89
    LTEXT           &quot;F1: Neues Spiel&quot;,IDC_STATIC,19,22,119,8
    LTEXT           &quot;F2: Pause(ein/aus)&quot;,IDC_STATIC,19,38,119,8
    LTEXT           &quot;F3: Schneller&quot;,IDC_STATIC,19,52,119,8
    LTEXT           &quot;F4: Langsamer&quot;,IDC_STATIC,19,67,119,8
    LTEXT           &quot;F5: Sound(ein/aus)&quot;,IDC_STATIC,19,81,119,8
    GROUPBOX        &quot;Steuerung des Spiels&quot;,IDC_STATIC,173,7,136,89
    LTEXT           &quot;J oder Cursor left:links&quot;,IDC_STATIC,175,22,119,8
    LTEXT           &quot;L oder Cursor right: Rechts&quot;,IDC_STATIC,175,38,119,8
    LTEXT           &quot;K oder Cursor Down: Linksdrehung&quot;,IDC_STATIC,175,52,119,8
    LTEXT           &quot;I oder Cursor Up: Rechtsdrehung&quot;,IDC_STATIC,175,67,119,8
    LTEXT           &quot;Space: Stein fallen lassen&quot;,IDC_STATIC,175,81,119,8
END
...
</code></pre>
<p>Der Teil der Resourcedatei ist übrigens mit Visual Studio erstellt, allerdings hab ich sonst ein paar Probleme mit Visual Studio, daher hab ich den Teil der oben zu sehen ist einfach rauskopiert und in die Resourcedatei meines Projektes kopiert. (es handelt sich übrigens um ein Projekt zum lernen von DirectX mit der Win API und/oder Dialogen hatte ich noch nicht viel zu tun...)<br />
und aufgerufen wirds hier:</p>
<pre><code class="language-cpp">...
 case WM_COMMAND:
            switch(LOWORD(wParam))
            {
                case IDM_CLOSE:
                    SendMessage(hwnd, WM_DESTROY, wParam, lParam);
                    break;
                case ID_INFO_HILFE:
                case IDM_HELP:
                    DialogBox(UltrisInstance, MAKEINTRESOURCE(IDD_HILFE), UltrisWindow, helpdialog);
                    break;
            }
            break;
...
</code></pre>
<p>Ich hoffe ihr könnt mir helfen:)</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/193130/dialog</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 14:33:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/193130.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Sep 2007 13:09:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dialog... on Sat, 22 Sep 2007 14:25:38 GMT]]></title><description><![CDATA[<p>Hi Leute<br />
Ich hab ehrlich gesagt keine Ahnung, ob das hier hier hin oder eher in eine der Kategorien oben hin gehört, ich hoffe ihr sehts nem armen noob wie mir nach^^<br />
Also, ich habe in einer resource Datei einen Dialog, nur wenn ich ihn aufrufe<br />
kommt kein Dialog, das Hauptfenster wird allerdings so als ob ein Dialog vorhanden wäre.<br />
Compiler: gnu compiler<br />
die resource Datei:</p>
<pre><code class="language-cpp">...
IDD_HILFE DIALOGEX 0, 0, 316, 118
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION &quot;Dialog&quot;
FONT 8, &quot;MS Shell Dlg&quot;, 400, 0, 0x1
BEGIN
    DEFPUSHBUTTON   &quot;OK&quot;,IDOK,259,97,50,14
    GROUPBOX        &quot;Steuerung des Spiels&quot;,IDC_STATIC,17,7,136,89
    LTEXT           &quot;F1: Neues Spiel&quot;,IDC_STATIC,19,22,119,8
    LTEXT           &quot;F2: Pause(ein/aus)&quot;,IDC_STATIC,19,38,119,8
    LTEXT           &quot;F3: Schneller&quot;,IDC_STATIC,19,52,119,8
    LTEXT           &quot;F4: Langsamer&quot;,IDC_STATIC,19,67,119,8
    LTEXT           &quot;F5: Sound(ein/aus)&quot;,IDC_STATIC,19,81,119,8
    GROUPBOX        &quot;Steuerung des Spiels&quot;,IDC_STATIC,173,7,136,89
    LTEXT           &quot;J oder Cursor left:links&quot;,IDC_STATIC,175,22,119,8
    LTEXT           &quot;L oder Cursor right: Rechts&quot;,IDC_STATIC,175,38,119,8
    LTEXT           &quot;K oder Cursor Down: Linksdrehung&quot;,IDC_STATIC,175,52,119,8
    LTEXT           &quot;I oder Cursor Up: Rechtsdrehung&quot;,IDC_STATIC,175,67,119,8
    LTEXT           &quot;Space: Stein fallen lassen&quot;,IDC_STATIC,175,81,119,8
END
...
</code></pre>
<p>Der Teil der Resourcedatei ist übrigens mit Visual Studio erstellt, allerdings hab ich sonst ein paar Probleme mit Visual Studio, daher hab ich den Teil der oben zu sehen ist einfach rauskopiert und in die Resourcedatei meines Projektes kopiert. (es handelt sich übrigens um ein Projekt zum lernen von DirectX mit der Win API und/oder Dialogen hatte ich noch nicht viel zu tun...)<br />
und aufgerufen wirds hier:</p>
<pre><code class="language-cpp">...
 case WM_COMMAND:
            switch(LOWORD(wParam))
            {
                case IDM_CLOSE:
                    SendMessage(hwnd, WM_DESTROY, wParam, lParam);
                    break;
                case ID_INFO_HILFE:
                case IDM_HELP:
                    DialogBox(UltrisInstance, MAKEINTRESOURCE(IDD_HILFE), UltrisWindow, helpdialog);
                    break;
            }
            break;
...
</code></pre>
<p>Ich hoffe ihr könnt mir helfen:)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1370649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1370649</guid><dc:creator><![CDATA[Ankou]]></dc:creator><pubDate>Sat, 22 Sep 2007 14:25:38 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Sat, 22 Sep 2007 13:27:58 GMT]]></title><description><![CDATA[<p>du hast den falschen dialog geposted, der hat ID IDD_CONTROLS.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1370657</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1370657</guid><dc:creator><![CDATA[tenchou]]></dc:creator><pubDate>Sat, 22 Sep 2007 13:27:58 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Sat, 22 Sep 2007 14:27:53 GMT]]></title><description><![CDATA[<p>ups^^ sorry jetz is richtig<br />
also... woran könnts liegen <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/1370680</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1370680</guid><dc:creator><![CDATA[Ankou]]></dc:creator><pubDate>Sat, 22 Sep 2007 14:27:53 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Sat, 22 Sep 2007 14:52:24 GMT]]></title><description><![CDATA[<p>Ist UltrisInstance gültig? Wie ist helpdialog deklariert? Was machst du dadrin?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1370689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1370689</guid><dc:creator><![CDATA[tenchou]]></dc:creator><pubDate>Sat, 22 Sep 2007 14:52:24 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Sat, 22 Sep 2007 15:04:34 GMT]]></title><description><![CDATA[<p>öhm, am besten poste ich mal nochn stück mehr Code...<br />
also, das is die main.cpp in der das ganze stattfindet:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &quot;resources.h&quot;
#include &quot;ressource.h&quot;
#include &quot;Sounds.h&quot;
#include &quot;Display.h&quot;
#include &quot;forms.h&quot;
#include &lt;fstream&gt;

HINSTANCE UltrisInstance;
HWND UltrisWindow;
HMENU UltrisMenu;
const int UltrisNettoHoehe = 520;
const int UltrisNettoBreite = 360;
int UltrisBruttoHoehe;
int UltrisBruttoBreite;
Sounds sounds;
Display display;
int testform;
std::ofstream debug(&quot;Debug.txt&quot;);
BOOL CALLBACK helpdialog(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    switch(message)
    {
        case WM_COMMAND:
            switch(LOWORD(wParam))
            {
                case IDOK:
                    EndDialog(hwnd, wParam);
                    return TRUE;
            }
            break;
    DefWindowProc(hwnd, message, wParam, lParam);
    return FALSE;
    }
}
LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    switch(message)
    {
        case WM_COMMAND:
            switch(LOWORD(wParam))
            {
                case IDM_CLOSE:
                    SendMessage(hwnd, WM_DESTROY, wParam, lParam);
                    break;
                case ID_INFO_HILFE:
                case IDM_HELP:
                    DialogBox(UltrisInstance, MAKEINTRESOURCE(IDD_HILFE), UltrisWindow, helpdialog);
                    break;
            }
            break;
        case WM_DESTROY:
            PostQuitMessage(0);
            break;
        case WM_KEYDOWN:
            switch(wParam)
            {
                case 84:
                //T - Test
                    testform = (testform+1)%35;
                    PostMessage(hwnd, WM_PAINT, 0, 0);
                    break;
            }
            break;
        case WM_PAINT:
            int variante, x, y, z;
            const form *f;
            display.Background();
            for(variante = 0; variante &lt; 4; variante++)
            {
                z = 1 + 5*variante;
                f = ultris_form[testform][variante];
                for(x = 0; x &lt; f-&gt;b; x++)
                    for(y = 0; y &lt; f-&gt;h; y++)
                    {
                        if(f-&gt;data[y][x])
                        {
                            display.Fallingbrick(z+y, 3+x, 0);
                        }
                    }
            }
            display.Present();
            break;
        default:
            DefWindowProc(hwnd, message, wParam, lParam);
            break;
    }
}

int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreviousInstance, LPSTR pCmdLine, int nCmdShow)

{
	MSG msg;
	HACCEL acc;
	WNDCLASSEX wcx;
	wcx.cbSize = sizeof(wcx);
	wcx.lpszClassName = TEXT(&quot;Ultris&quot;);
	wcx.lpfnWndProc = WindowProcedure;
	wcx.style = CS_VREDRAW | CS_HREDRAW;
	wcx.hInstance = hInstance;
	wcx.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON));
	wcx.hIconSm = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_SMALLICON));
	wcx.hCursor = LoadCursor(NULL, IDC_ARROW);
	wcx.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
	wcx.lpszMenuName = MAKEINTRESOURCE(IDR_MENU);
	wcx.cbClsExtra = 0;
	wcx.cbWndExtra = 0;

	if(!RegisterClassEx(&amp;wcx))
		return 0;

	//acc = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_DIRECTXLERNAPPLIKATION));

	UltrisBruttoHoehe = UltrisNettoHoehe + 2 * GetSystemMetrics(SM_CYSIZEFRAME) + GetSystemMetrics(SM_CYMENU) + GetSystemMetrics(SM_CYCAPTION);
	UltrisBruttoBreite = UltrisNettoBreite + 2 * GetSystemMetrics(SM_CXSIZEFRAME);

	UltrisWindow = CreateWindowEx(0, TEXT(&quot;ULTRIS&quot;), TEXT(&quot;ULTRIS&quot;), WS_OVERLAPPEDWINDOW &amp; ~WS_MAXIMIZEBOX, CW_USEDEFAULT, CW_USEDEFAULT, UltrisBruttoBreite, UltrisBruttoHoehe, NULL, NULL, hInstance, NULL);
	if(!UltrisWindow)
		return 0;
	MoveWindow(UltrisWindow, (GetSystemMetrics(SM_CXSCREEN) - UltrisBruttoBreite)/2, (GetSystemMetrics(SM_CYSCREEN) - UltrisBruttoHoehe)/2, UltrisBruttoBreite, UltrisBruttoHoehe, TRUE);
	ShowWindow(UltrisWindow, nCmdShow);

	UltrisInstance = hInstance;
	UltrisMenu = GetMenu(UltrisWindow);

    sounds.Initialize(UltrisWindow);
    display.Initialize(UltrisWindow);

    while(TRUE)
	{
		if(PeekMessage(&amp;msg, NULL, 0, 0, PM_NOREMOVE))
		{
			if(GetMessage(&amp;msg, NULL, 0, 0) == 0)
				return 0;
			if(TranslateAccelerator(UltrisWindow, acc, &amp;msg) == 0)
			{
				TranslateMessage(&amp;msg);
				DispatchMessage(&amp;msg);
			}
		}
		else
		{
		    HRESULT hr;
		    hr = display.cooperative();
		    if(hr &lt; 0)
		    {
		        switch(hr)
		        {
		            case DDERR_EXCLUSIVEMODEALREADYSET:
                        Sleep(10);
                        break;
                    case DDERR_WRONGMODE:
                        display.FreeAll();
                        display.Initialize(UltrisWindow);
                        PostMessage(UltrisWindow, WM_PAINT, 0, 0);
                        break;
		        }
		    }
		    else
		    {

		    }
		}

	}
}
</code></pre>
<p>das die ganze Resource(der auskommentierte Teil war der den ich noch einigermaßen selbst geschrieben habe(in der Blocks IDE is ja kein Resourcedesigner), der Teil der aktuell in verwendung ist, hab ich aus visual studios kopiert...</p>
<pre><code class="language-cpp">// Microsoft Visual C++ generated resource script.
//
#include &quot;resources.h&quot;

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include &lt;windows.h&gt;
#include &lt;afxres.h&gt;
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// German (Germany) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
#ifdef _WIN32
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// Menu
//

IDR_MENU MENU DISCARDABLE
BEGIN
    POPUP &quot;Ultris&quot;
    BEGIN
        MENUITEM &quot;Neues Spiel&quot;,                 ID_ULTRIS_NEUESSPIEL
        MENUITEM &quot;Pause&quot;,                       ID_ULTRIS_PAUSE
        MENUITEM &quot;Sound&quot;,                       ID_ULTRIS_SOUND
        MENUITEM SEPARATOR
        MENUITEM &quot;Ende&quot;,                        IDM_EXIT
    END
    POPUP &quot;Einstellungen&quot;
    BEGIN
        MENUITEM &quot;Konfiguration&quot;,               ID_EINSTELLUNGEN_KONFIGURATION

    END
    POPUP &quot;Info&quot;
    BEGIN
        MENUITEM &quot;Hilfe&quot;,                       ID_INFO_HILFE
        MENUITEM &quot;Highscores&quot;,                  ID_INFO_HIGHSCORES
        MENUITEM &quot;Ultris&quot;,                      ID_INFO_ULTRIS
    END
END

/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_MAIN                ICON                    &quot;Icon.ico&quot;

/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//

IDR_ACCEL ACCELERATORS
BEGIN
    &quot;T&quot;,            IDM_TEST,               VIRTKEY, CONTROL, NOINVERT
    VK_ESCAPE,      IDM_EXIT,               VIRTKEY, NOINVERT
    VK_F5,          ID_ULTRIS_SOUND,        VIRTKEY, NOINVERT
END

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_HILFE DIALOGEX 0, 0, 316, 118
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION &quot;Dialog&quot;
FONT 8, &quot;MS Shell Dlg&quot;, 400, 0, 0x1
BEGIN
    DEFPUSHBUTTON   &quot;OK&quot;,IDOK,259,97,50,14
    GROUPBOX        &quot;Steuerung des Spiels&quot;,IDC_STATIC,17,7,136,89
    LTEXT           &quot;F1: Neues Spiel&quot;,IDC_STATIC,19,22,119,8
    LTEXT           &quot;F2: Pause(ein/aus)&quot;,IDC_STATIC,19,38,119,8
    LTEXT           &quot;F3: Schneller&quot;,IDC_STATIC,19,52,119,8
    LTEXT           &quot;F4: Langsamer&quot;,IDC_STATIC,19,67,119,8
    LTEXT           &quot;F5: Sound(ein/aus)&quot;,IDC_STATIC,19,81,119,8
    GROUPBOX        &quot;Steuerung des Spiels&quot;,IDC_STATIC,173,7,136,89
    LTEXT           &quot;J oder Cursor left:links&quot;,IDC_STATIC,175,22,119,8
    LTEXT           &quot;L oder Cursor right: Rechts&quot;,IDC_STATIC,175,38,119,8
    LTEXT           &quot;K oder Cursor Down: Linksdrehung&quot;,IDC_STATIC,175,52,119,8
    LTEXT           &quot;I oder Cursor Up: Rechtsdrehung&quot;,IDC_STATIC,175,67,119,8
    LTEXT           &quot;Space: Stein fallen lassen&quot;,IDC_STATIC,175,81,119,8
END

/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
    IDD_DIALOG1, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 309
        TOPMARGIN, 7
        BOTTOMMARGIN, 111
    END
END
#endif    // APSTUDIO_INVOKED

#endif    // German (Germany) resources
/////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE
BEGIN
    &quot;resource.h\0&quot;
END

2 TEXTINCLUDE
BEGIN
    &quot;#include &lt;windows.h&gt;\r\n&quot;
    &quot;#include &lt;afxres.h&gt;\0&quot;
END

3 TEXTINCLUDE
BEGIN
    &quot;\r\n&quot;
    &quot;\0&quot;
END

#endif    // APSTUDIO_INVOKED

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////

#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

/*#include &quot;ressource.h&quot;
#include &lt;windows.h&gt;

IDI_ICON ICON &quot;Icon.ico&quot;
IDI_SMALL ICON &quot;Icon.ico&quot;

ID_MENU MENU
BEGIN
    POPUP &quot;Datei&quot;
    BEGIN
        MENUITEM &quot;Neues Spiel&quot;, IDM_NEWGAME
        MENUITEM &quot;Pause&quot;, IDM_PAUSE
        MENUITEM SEPARATOR
        MENUITEM &quot;Schließen&quot;, IDM_CLOSE
    END
    POPUP &quot;Einstellungen&quot;
    BEGIN
        MENUITEM &quot;Konfiguration&quot;, IDM_CONFIG
    END
    POPUP &quot;Hilfe&quot;
    BEGIN
        MENUITEM &quot;Steuerung&quot;, IDM_HELP
        MENUITEM &quot;Highscores&quot;, IDM_HIGHSCORES
    END
END
IDD_CONTROLS DIALOG 0, 0, 316, 118
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION &quot;Dialog&quot;
//FONT 8, &quot;MS Shell Dlg&quot;, 400, 0, 0x1
BEGIN
    DEFPUSHBUTTON   &quot;OK&quot;,IDOK,259,97,50,14
    GROUPBOX        &quot;Steuerung des Spiels&quot;,IDC_STATIC,17,7,136,89
    LTEXT           &quot;F1: Neues Spiel&quot;,IDC_STATIC,19,22,119,8
    LTEXT           &quot;F2: Pause(ein/aus)&quot;,IDC_STATIC,19,38,119,8
    LTEXT           &quot;F3: Schneller&quot;,IDC_STATIC,19,52,119,8
    LTEXT           &quot;F4: Langsamer&quot;,IDC_STATIC,19,67,119,8
    //LTEXT           &quot;F5: Sound(ein/aus)&quot;,IDC_STATIC,19,81,119,8
    GROUPBOX        &quot;Steuerung des Spiels&quot;,IDC_STATIC,173,7,136,89
    LTEXT           &quot;J oder Cursor left:links&quot;,IDC_STATIC,175,22,119,8
    LTEXT           &quot;L oder Cursor right: Rechts&quot;,IDC_STATIC,175,38,119,8
    LTEXT           &quot;K oder Cursor Down: Linksdrehung&quot;,IDC_STATIC,175,52,119,8
    LTEXT           &quot;I oder Cursor Up: Rechtsdrehung&quot;,IDC_STATIC,175,67,119,8
    LTEXT           &quot;Space: Stein fallen lassen&quot;,IDC_STATIC,175,81,119,8
END
*/
</code></pre>
<p>Der Rest hat damit nix zu tun oder enthält nur die defines^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1370695</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1370695</guid><dc:creator><![CDATA[Ankou]]></dc:creator><pubDate>Sat, 22 Sep 2007 15:04:34 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Sat, 22 Sep 2007 16:20:32 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">BOOL CALLBACK helpdialog(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    switch(message)
    {
        case WM_COMMAND:
            switch(LOWORD(wParam))
            {
                case IDOK:
                    EndDialog(hwnd, wParam);
                    return TRUE;
            }
            break;
    DefWindowProc(hwnd, message, wParam, lParam);
    return FALSE;
    }
}
</code></pre>
<p>Ein Dialog sollte ned DefWindowProc aufrufen, mach das mal weg. Windows ruft automatisch DefDlgProc auf, wenn du in deiner DialogProc FALSE zurückgibst. Und mach das return FALSE ans Ende der Funktion, nicht im Switch Statement.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1370721</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1370721</guid><dc:creator><![CDATA[tenchou]]></dc:creator><pubDate>Sat, 22 Sep 2007 16:20:32 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Sat, 22 Sep 2007 16:57:25 GMT]]></title><description><![CDATA[<p>ok, hat aber auch nicht geholfen^^</p>
<p>aber ich hab jetzt herausgefunden, dass der Dialog doch da ist, wenn ich den Taskmanager z.B. öffne dann sehe ich teile der Schriftzüge auf ihm, aber irgendwie scheint das alles entweder abgestürtzt zu sein oder sonst was, es ist zumindest da, aber ich kann nichts mehr amchen und in einem eigenen Fenster sehen wie es sein sollte tue ich es auch nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1370737</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1370737</guid><dc:creator><![CDATA[Ankou]]></dc:creator><pubDate>Sat, 22 Sep 2007 16:57:25 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Sun, 23 Sep 2007 12:17:25 GMT]]></title><description><![CDATA[<p>Hast du die Resource File So übernommen wie du sie gepostet hast oder hast du die spezifischen merkmale von Visual Studio Entfernt - denn soweit ich gelesen hab verwendest du als IDE - Blocks</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1370999</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1370999</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Sun, 23 Sep 2007 12:17:25 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Mon, 24 Sep 2007 15:55:11 GMT]]></title><description><![CDATA[<p>so übernommen, was sind denn die spezifischen Merkmale von Visual Studio?<br />
Denn der Externe Ressourcendesigner verursacht nur Errors und im Internet finde ich auch nirgens eine BEschreibung wie man Ressourcefiles erstellt(wenn jemand eine kennt, her damit^^), extra ein Buch deswegen fand ich übertrieben, also hab ich mir einfach mal angeguckt wie das bei Visual Studio so rauskommt, verwende aber Blocks, weil das die bisher einzige ist die so funktioniert wie ich will, aber das ist eine ander geschichte...<br />
edit:<br />
so... mit WS_VISIBLE sehe ich es schonmal, allerdings sieht das noch nicht nach nem Fenster aus sondern nach nem weißen Fleck mit Steuerelementen drauf und das Fenster im Hintergrund wird auch weiß<br />
edit2:<br />
also so<br />
<a href="http://rpgmakerxpdreams.rp.funpic.de/Bilderupload/daten/1190649171_wiekanndassein.PNG" rel="nofollow">http://rpgmakerxpdreams.rp.funpic.de/Bilderupload/daten/1190649171_wiekanndassein.PNG</a><br />
das sind 2 verschiedene Zeitpunkte</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371620</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371620</guid><dc:creator><![CDATA[Ankou]]></dc:creator><pubDate>Mon, 24 Sep 2007 15:55:11 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Mon, 24 Sep 2007 18:03:06 GMT]]></title><description><![CDATA[<p>Also nen Kleines Tut im Sachen Resourcen gipts hier <a href="http://pronix.linuxdelta.de/C/win32/win32_3.shtml" rel="nofollow">Kapitel 3: Resourcen</a></p>
<p>die static kannst mit dem res-style WS_EX_TRANSPARENT transparent machen</p>
<p>MFG Ascharan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371856</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371856</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Mon, 24 Sep 2007 18:03:06 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Mon, 24 Sep 2007 18:06:14 GMT]]></title><description><![CDATA[<p>was soll ich transparent machen?</p>
<p>danke für den Link</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371860</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371860</guid><dc:creator><![CDATA[Ankou]]></dc:creator><pubDate>Mon, 24 Sep 2007 18:06:14 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Mon, 24 Sep 2007 18:08:46 GMT]]></title><description><![CDATA[<p>Der Hintergrund von den Text wo steht bsp.: F1: Neues Spiel usw. is nur n Vorschlag</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371862</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371862</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Mon, 24 Sep 2007 18:08:46 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Mon, 24 Sep 2007 18:10:55 GMT]]></title><description><![CDATA[<p>mhm, aber wenn das Fenster dahinter komplett weiß wird, bringt transparenz auch nix zur Schönheit^^<br />
außerdem muss ja auch irgendwie ein Fenster anzuzeigen sein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371866</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371866</guid><dc:creator><![CDATA[Ankou]]></dc:creator><pubDate>Mon, 24 Sep 2007 18:10:55 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Mon, 24 Sep 2007 18:11:16 GMT]]></title><description><![CDATA[<p>hmm Wird wohl so sein</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371868</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371868</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Mon, 24 Sep 2007 18:11:16 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Mon, 24 Sep 2007 18:20:40 GMT]]></title><description><![CDATA[<p>Interessant:P</p>
<p>ich lad das Projekt mal hoch, vieleich ist ja jemand so nett sich das ma anzugucken?<br />
<a href="http://www.ysites.de/v5.zip" rel="nofollow">www.ysites.de/v5.zip</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371874</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371874</guid><dc:creator><![CDATA[Ankou]]></dc:creator><pubDate>Mon, 24 Sep 2007 18:20:40 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Mon, 24 Sep 2007 18:42:38 GMT]]></title><description><![CDATA[<p>Frage wo hast du den style gesetzt doch nich etwa da</p>
<p>EXSTYLE WS_EX_OVERLAPPEDWINDOW | WS_EX_TRANSPARENT</p>
<p>sollte eigentlich so sein</p>
<pre><code>CAPTION &quot;Dialog&quot;
FONT 8, &quot;MS Shell Dlg&quot;, 400, 0, 0x1
BEGIN
    DEFPUSHBUTTON   &quot;OK&quot;,IDOK,259,97,50,14
    GROUPBOX        &quot;Steuerung des Spiels&quot;,IDC_STATIC,17,7,136,89,WS_EX_TRANSPARENT
    LTEXT           &quot;F1: Neues Spiel&quot;,IDC_STATIC,19,22,119,8,WS_EX_TRANSPARENT
    LTEXT           &quot;F2: Pause(ein/aus)&quot;,IDC_STATIC,19,38,119,8,WS_EX_TRANSPARENT
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1371895</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371895</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Mon, 24 Sep 2007 18:42:38 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Mon, 24 Sep 2007 18:47:49 GMT]]></title><description><![CDATA[<p>tenchou schrieb:</p>
<blockquote>
<pre><code class="language-cpp">BOOL CALLBACK helpdialog(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    switch(message)
    {
        case WM_COMMAND:
            switch(LOWORD(wParam))
            {
                case IDOK:
                    EndDialog(hwnd, wParam);
                    return TRUE;
            }
            break;
    DefWindowProc(hwnd, message, wParam, lParam);
    return FALSE;
    }
}
</code></pre>
<p>Ein Dialog sollte ned DefWindowProc aufrufen, mach das mal weg. Windows ruft automatisch DefDlgProc auf, wenn du in deiner DialogProc FALSE zurückgibst. Und mach das return FALSE ans Ende der Funktion, nicht im Switch Statement.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1371899</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371899</guid><dc:creator><![CDATA[tenchou]]></dc:creator><pubDate>Mon, 24 Sep 2007 18:47:49 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog... on Mon, 24 Sep 2007 20:25:34 GMT]]></title><description><![CDATA[<p>oh... den hinteren Teil des Satzes hab ich voll übersehne o.o<br />
sorryy^^ und danke!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371972</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371972</guid><dc:creator><![CDATA[Ankou]]></dc:creator><pubDate>Mon, 24 Sep 2007 20:25:34 GMT</pubDate></item></channel></rss>