<?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[einfache GUI Anwendung]]></title><description><![CDATA[<p>hallo ,ich habe folgendes problem und zwar hab ich diesen code geschrieben,es soll mir einen dialog(fenster) ,den ich mittels resource eingebunden habe anzeigen.</p>
<pre><code>#include &quot;resource.h&quot;
#include &quot;WinApi.h&quot;

BOOL CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);

int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
                    PSTR szCmdLine, int iCmdShow)
{

 DialogBox (hInstance,MAKEINTRESOURCE(IDD_PROPPAGE_LARGE),0,WndProc);

 return 0;

}

BOOL CALLBACK WndProc (HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam)
{

	switch(message)
	{
		case WM_INITDIALOG:
		hwnd;
		return TRUE;

		case WM_CLOSE:
			EndDialog (hwnd,0);
			return TRUE;

		case WM_COMMAND:

			switch(message)
			{
			case IDC_BUTTON1:
				EndDialog(hwnd,0);
				return TRUE;
			}
	}
	return FALSE;
}
</code></pre>
<p>also im prinzip ganz simpel ,mein compiler compiliert das ganze mit (0x0) nur bekomme ich kein dialog angezeigt,weiss einer rat?<br />
danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/148536/einfache-gui-anwendung</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 08:12:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/148536.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 May 2006 19:08:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to einfache GUI Anwendung on Sat, 27 May 2006 19:08:01 GMT]]></title><description><![CDATA[<p>hallo ,ich habe folgendes problem und zwar hab ich diesen code geschrieben,es soll mir einen dialog(fenster) ,den ich mittels resource eingebunden habe anzeigen.</p>
<pre><code>#include &quot;resource.h&quot;
#include &quot;WinApi.h&quot;

BOOL CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);

int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
                    PSTR szCmdLine, int iCmdShow)
{

 DialogBox (hInstance,MAKEINTRESOURCE(IDD_PROPPAGE_LARGE),0,WndProc);

 return 0;

}

BOOL CALLBACK WndProc (HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam)
{

	switch(message)
	{
		case WM_INITDIALOG:
		hwnd;
		return TRUE;

		case WM_CLOSE:
			EndDialog (hwnd,0);
			return TRUE;

		case WM_COMMAND:

			switch(message)
			{
			case IDC_BUTTON1:
				EndDialog(hwnd,0);
				return TRUE;
			}
	}
	return FALSE;
}
</code></pre>
<p>also im prinzip ganz simpel ,mein compiler compiliert das ganze mit (0x0) nur bekomme ich kein dialog angezeigt,weiss einer rat?<br />
danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066354</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066354</guid><dc:creator><![CDATA[burnout]]></dc:creator><pubDate>Sat, 27 May 2006 19:08:01 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sat, 27 May 2006 20:05:19 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Also glaube du hast keinen 'normalen Dialog' verwendet, sondern irg. was 'dazwischen' <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> ...</p>
<pre><code class="language-cpp">IDD_PROPPAGE_LARGE
</code></pre>
<p>hmm...ich würd vor dem Erstellen des Dialogs mal die CommonConrols initialisieren...kann sein das dein &quot;&quot;Dialog&quot;&quot; das braucht^^...<br />
Außerdem aktivier mal in den Eigenschaften des Dialogs im Resourceneditor das Feld 'Sichtbar'!</p>
<p>Hoffe konnte helfen</p>
<p>MfG CodeFinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066381</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066381</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sat, 27 May 2006 20:05:19 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sat, 27 May 2006 20:34:52 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &quot;resource.h&quot;
#include &quot;WinApi.h&quot;

int __stdcall WndProc(::HWND__*, unsigned int, unsigned int, long);

int __stdcall WinMain(::HINSTANCE__* hInstance, ::HINSTANCE__* hPrevInstance, PSTR szCmdLine, int iCmdShow)
{
    return DialogBox(hInstance, MAKEINTRESOURCE(IDD_MYDIALOG), 0, WndProc);
}

int __stdcall WndProc(::HWND__* hWnd, unsigned int nMsg, unsigned int wParam, long lParam)
{
    switch(nMsg)
    {
    case WM_INITDIALOG:
        return 1;
    case WM_CLOSE:
        ::EndDialog(hWnd, 0);
        return 1;
    case WM_COMMAND:
    {
        switch(LOWORD(wParam))
        {
        case IDC_BUTTON1:
           ::EndDialog(hWnd, 0);
           return 1;
        default:
            break;
        }
        return 0;
    }
    return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1066394</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066394</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sat, 27 May 2006 20:34:52 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sat, 27 May 2006 20:55:36 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">::HINSTANCE__*
</code></pre>
<p>lachhaft.</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/10774">@burnout</a>: Bleib bloß bei deinem Code, den du hast, der ist 100 mal besser als der den (D)Evil geposted hat. Dein Code ist auch soweit in Ordnung, schau mal ob CodeFinders Ratschläge dein Problem lösen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066403</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066403</guid><dc:creator><![CDATA[SpectorX]]></dc:creator><pubDate>Sat, 27 May 2006 20:55:36 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sat, 27 May 2006 21:23:19 GMT]]></title><description><![CDATA[<p><strong>SpectorX</strong><br />
Hmm. Klar das __* ist unnütz. Wobei es eigentlich ein nur Verdeutlich. es ist ein Pointer.<br />
Das :: hat einen Grund... jo, jetzt nur noch wissen welcher, nee??! Ui das weiß das kleine Dummerchen SpectorX natürlich nicht... mist.</p>
<p><strong>burnout</strong><br />
Mach was de willst... wobei 1. das hwnd; unnütz war und du bei WM_COMMAND nen default vergessen hast.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066423</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066423</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sat, 27 May 2006 21:23:19 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sat, 27 May 2006 21:32:23 GMT]]></title><description><![CDATA[<p>Diese Diskussion wurde erst kürzlich ausgiebig geführt, also müssen wir es hier nicht wiederholen, aber deine Variante bietet NUR Nachteile und KEINEN Vorteil. Lirum Larum, Microsoft hat sich die Bezeichner nicht zum Spaß ausgedacht und theoretisch könnte aus WINAPI oder CALLBACK irgendwann mal was anderes als __stdcall werden und dann bist du GE*RSCHT mit deinem Code, stell dir vor dein Projekt wäre riesengroß...viel Spass dann tagelang Typen auszutauschen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066425</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066425</guid><dc:creator><![CDATA[SpectorX]]></dc:creator><pubDate>Sat, 27 May 2006 21:32:23 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sat, 27 May 2006 21:34:24 GMT]]></title><description><![CDATA[<p>Tach nochmal,<br />
Also ich lass niemanden dumm sterben <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
...</p>
<blockquote>
<p>Das :: hat einen Grund... jo, jetzt nur noch wissen welcher, nee??! Ui das weiß das kleine Dummerchen SpectorX natürlich nicht... mist.</p>
</blockquote>
<p>Das :: sorgt dafür, das die Definition des ensprechenden Objekts(Typ, Funktion, Klasse, etc.) in den globalen Namensbereich importiert wird...</p>
<p>Also noch mal zu dem CodePosting von (D)Evil:<br />
Ich find schon der Code sieht verdammt geil aus, aber hilfreich ist er hier ganz bestimmt nicht...=&gt; viel zu unübersichtlich, wobei das warscheinlich jedem selbst überlassen ist <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>MfG CodeFinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066426</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066426</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sat, 27 May 2006 21:34:24 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sat, 27 May 2006 21:45:33 GMT]]></title><description><![CDATA[<p><strong>CodeFinder</strong><br />
Jo... hmm schon. Hab aber auch die Fehler die drin waren raus gemacht <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="😉"
    /> Aber hast schon recht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p><strong>SpectorX</strong><br />
Hab auch keinen Bock auf ne Diskussion. Aber imo werd ich meine Projekte in 10 Jahren eh nicht neu compilieren -.-</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066427</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066427</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sat, 27 May 2006 21:45:33 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sun, 28 May 2006 00:02:03 GMT]]></title><description><![CDATA[<p>ich hätte nicht gedacht das meine bescheidende frage so ein wirbel auslöst <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
aber danke für die antworten!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066449</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066449</guid><dc:creator><![CDATA[burnout]]></dc:creator><pubDate>Sun, 28 May 2006 00:02:03 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sun, 28 May 2006 10:55:46 GMT]]></title><description><![CDATA[<p>hallo ,hab jetzt unter eigenschaften-&gt;verhalten-&gt;sichtbar auf true gesetzt ,aber immer noch kein fenster nach dem kompilieren zu sehen und das mit dem commoncontrols initialisieren hab ich noch nie gehört !musste vorher auch commoncontrols initialisieren ,bis auf einmal gings nicht mehr!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066540</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066540</guid><dc:creator><![CDATA[burnout]]></dc:creator><pubDate>Sun, 28 May 2006 10:55:46 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sun, 28 May 2006 11:03:55 GMT]]></title><description><![CDATA[<p>zeig mal was in deiner .rc datei drinne is</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066544</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066544</guid><dc:creator><![CDATA[Bully 1]]></dc:creator><pubDate>Sun, 28 May 2006 11:03:55 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sun, 28 May 2006 11:49:24 GMT]]></title><description><![CDATA[<pre><code>//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by WinApi.rc
//
#define IDI_ICON1                       101
#define IDD_PROPPAGE_LARGE              107
#define IDC_LIST1                       108
#define IDC_BUTTON1                     109 

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        103
#define _APS_NEXT_COMMAND_VALUE         40001
#define _APS_NEXT_CONTROL_VALUE         1001
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif
</code></pre>
<p>und in der WinApi.rc ist halt nur das dialog IDD_PROPPAGE_LARGE und IDI_ICON1 ,hier ist alles in ordnung,die exe zeigt mir ja auch das icon an was ich gemalt habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066567</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066567</guid><dc:creator><![CDATA[burnout]]></dc:creator><pubDate>Sun, 28 May 2006 11:49:24 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sun, 28 May 2006 12:09:13 GMT]]></title><description><![CDATA[<p>Du hast ja auch einen Property Sheet Dialog erstellt. Der hat völlig verkorkste Flags, z.B. WS_CHILD obwohl er bei dir gar kein Child ist und außerdem ist er standardmäßig auf Disabled gestellt. Stell das in den Eigenschaften im Resoruce Editor mal alles richtig ein, also Popup und nicht Child oder ändere es in deiner .RC Datei</p>
<pre><code class="language-cpp">/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_PROPPAGE_LARGE DIALOG DISCARDABLE  0, 0, 235, 156
STYLE WS_POPUP | WS_CAPTION
CAPTION &quot;Property Page&quot;
FONT 8, &quot;MS Sans Serif&quot;
BEGIN
    LTEXT           &quot;TODO: layout property page&quot;,IDC_STATIC,73,74,90,8
END
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1066584</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066584</guid><dc:creator><![CDATA[Bully 1]]></dc:creator><pubDate>Sun, 28 May 2006 12:09:13 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sun, 28 May 2006 13:14:50 GMT]]></title><description><![CDATA[<p>sorry für die dumme frage,aber wie kann ich auf meine rc* also WinApi.rc* datei zugreifen bzw. im editor öffnen unter dem projekt-explorer sehe ich die datei nicht und auch nicht unter resource ansicht!?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066646</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066646</guid><dc:creator><![CDATA[burnout]]></dc:creator><pubDate>Sun, 28 May 2006 13:14:50 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sun, 28 May 2006 13:16:08 GMT]]></title><description><![CDATA[<p>die kannste auch mit nem normalen editor wie notepad.exe editieren ist auch nur ne normale text datei.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066647</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066647</guid><dc:creator><![CDATA[Bully 1]]></dc:creator><pubDate>Sun, 28 May 2006 13:16:08 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sun, 28 May 2006 13:44:33 GMT]]></title><description><![CDATA[<p>ja danke hat soweit funktioniert,sehe aber nur mein button und listbox,das dialog an sich ist durchsichtig,bei verhalten hab ich es aber auf true gestellt?!wo kann ich die ganze flags nachlesen was sie bewirken ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066663</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066663</guid><dc:creator><![CDATA[burnout]]></dc:creator><pubDate>Sun, 28 May 2006 13:44:33 GMT</pubDate></item><item><title><![CDATA[Reply to einfache GUI Anwendung on Sun, 28 May 2006 13:51:59 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Das kannst du in der MSDN nachlesen:<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/WindowsUserInterface/Windowing/Windows/WindowReference/WindowStyles.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/WindowsUserInterface/Windowing/Windows/WindowReference/WindowStyles.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066670</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066670</guid><dc:creator><![CDATA[Bully 1]]></dc:creator><pubDate>Sun, 28 May 2006 13:51:59 GMT</pubDate></item></channel></rss>