<?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[String aus Dialog Box auslesen]]></title><description><![CDATA[<p>Hey,<br />
ich habe folgende dialog box:</p>
<pre><code>[b]rsrc.rc[/b]

IDD_SAVEAS DIALOGEX 20, 20, 100, 80
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
CAPTION &quot;Save As...&quot;
FONT 10, &quot;Times New Roman&quot;
BEGIN
     LTEXT &quot;Please type in the new filename.\r&quot;
           &quot;Don't forget the ending! (*.txt, *.dat, ... )&quot;, IDD_LTEXT1, 9, 8, 90, 40
     EDITTEXT [b]IDD_EDIT[/b], 12, 45, 75, 10
     PUSHBUTTON &quot;OK&quot;, IDD_OK2, 28, 60, 40, 14
END
</code></pre>
<p><strong>main.cpp</strong></p>
<p>so, wie kann ich nun in meiner dialogfunktion den string, den ich bei <strong>IDD_EDIT</strong> eingegeben habe, auslesen?</p>
<p>heir ist noch die dialogs funktion:</p>
<pre><code>BOOL CALLBACK FontProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
	switch( message )
	{
            case WM_INITDIALOG:
                 {
                               return TRUE;
                 }
            case WM_COMMAND:
                 {
		                    switch( LOWORD(wParam) )
                            {
		                            case IDD_CANCEL3: EndDialog( hDlg, 0 );
		                                              return TRUE;

                                    case IDD_OK3: EndDialog( hDlg, 0 );
		                                          return TRUE;
                            }
                 }
            default: return FALSE;
	}
	return FALSE;
}
</code></pre>
<p>vielen dank</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/149511/string-aus-dialog-box-auslesen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 08:18:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/149511.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Jun 2006 17:22:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to String aus Dialog Box auslesen on Tue, 06 Jun 2006 17:22:33 GMT]]></title><description><![CDATA[<p>Hey,<br />
ich habe folgende dialog box:</p>
<pre><code>[b]rsrc.rc[/b]

IDD_SAVEAS DIALOGEX 20, 20, 100, 80
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
CAPTION &quot;Save As...&quot;
FONT 10, &quot;Times New Roman&quot;
BEGIN
     LTEXT &quot;Please type in the new filename.\r&quot;
           &quot;Don't forget the ending! (*.txt, *.dat, ... )&quot;, IDD_LTEXT1, 9, 8, 90, 40
     EDITTEXT [b]IDD_EDIT[/b], 12, 45, 75, 10
     PUSHBUTTON &quot;OK&quot;, IDD_OK2, 28, 60, 40, 14
END
</code></pre>
<p><strong>main.cpp</strong></p>
<p>so, wie kann ich nun in meiner dialogfunktion den string, den ich bei <strong>IDD_EDIT</strong> eingegeben habe, auslesen?</p>
<p>heir ist noch die dialogs funktion:</p>
<pre><code>BOOL CALLBACK FontProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
	switch( message )
	{
            case WM_INITDIALOG:
                 {
                               return TRUE;
                 }
            case WM_COMMAND:
                 {
		                    switch( LOWORD(wParam) )
                            {
		                            case IDD_CANCEL3: EndDialog( hDlg, 0 );
		                                              return TRUE;

                                    case IDD_OK3: EndDialog( hDlg, 0 );
		                                          return TRUE;
                            }
                 }
            default: return FALSE;
	}
	return FALSE;
}
</code></pre>
<p>vielen dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1072690</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1072690</guid><dc:creator><![CDATA[DZ]]></dc:creator><pubDate>Tue, 06 Jun 2006 17:22:33 GMT</pubDate></item><item><title><![CDATA[Reply to String aus Dialog Box auslesen on Tue, 06 Jun 2006 17:26:55 GMT]]></title><description><![CDATA[<p>sorry, habe die falsche dialogs-funktion kopiert. hier is die richtige:</p>
<pre><code>BOOL CALLBACK SaveAsProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
	switch( message )
	{
            case WM_INITDIALOG:
                 {
                               return TRUE;
                 }
            case WM_COMMAND:
                 {
		                    switch( LOWORD(wParam) )
                            {
		                            case IDD_OK2: EndDialog( hDlg, 0 );
		                                          return TRUE;
                            }
                 }
            default: return FALSE;
	}
	return FALSE;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1072700</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1072700</guid><dc:creator><![CDATA[DZ]]></dc:creator><pubDate>Tue, 06 Jun 2006 17:26:55 GMT</pubDate></item><item><title><![CDATA[Reply to String aus Dialog Box auslesen on Tue, 06 Jun 2006 18:31:21 GMT]]></title><description><![CDATA[<p>GetDlgItemText</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1072731</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1072731</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 06 Jun 2006 18:31:21 GMT</pubDate></item></channel></rss>