<?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[mit [Entf] Taste Einträge von Listenfeld löschen]]></title><description><![CDATA[<p>Hi Leute, wie der Titel schon sagt versuch ich das zu realisieren, bloß hab dazu nichts gefunden, und weiß selber nicht wie das funz, kann mir evtl jemand helfen?<br />
ich hab die Funktion die mein Listenfeld füllt:</p>
<pre><code class="language-cpp">void CLoaditupDlg::OnSearch() 
{
	// TODO: Code für die Behandlungsroutine der Steuerelement-Benachrichtigung hier einfügen
	UpdateData(TRUE);
	int nF = 0; 
    CFileDialog dlg(TRUE, 
        &quot;txt&quot;, 
        NULL,    //&quot;*.txt&quot;, 
        OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, 
        &quot;Alle Dateien (*.*)|*.*|Textdateien (*.txt)|*.txt||&quot;);/**/ 
    dlg.m_ofn.lpstrInitialDir = &quot;c:\\&quot;; 
    //fdlg.m_ofn.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST; 
    dlg.m_ofn.lpstrTitle = dlg.m_ofn.lpstrInitialDir; 

    nF = dlg.DoModal(); 

	if(nF == IDOK) 
    {  
		SetDlgItemText(IDC_LIST,m_filelist); 
		m_pathname=dlg.GetPathName();
		nIndex = m_ctrfilelist.AddString(m_pathname);

    } 

	UpdateData(FALSE);

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/75738/mit-entf-taste-einträge-von-listenfeld-löschen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 01:28:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/75738.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Jun 2004 18:13:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to mit [Entf] Taste Einträge von Listenfeld löschen on Tue, 08 Jun 2004 05:49:09 GMT]]></title><description><![CDATA[<p>Hi Leute, wie der Titel schon sagt versuch ich das zu realisieren, bloß hab dazu nichts gefunden, und weiß selber nicht wie das funz, kann mir evtl jemand helfen?<br />
ich hab die Funktion die mein Listenfeld füllt:</p>
<pre><code class="language-cpp">void CLoaditupDlg::OnSearch() 
{
	// TODO: Code für die Behandlungsroutine der Steuerelement-Benachrichtigung hier einfügen
	UpdateData(TRUE);
	int nF = 0; 
    CFileDialog dlg(TRUE, 
        &quot;txt&quot;, 
        NULL,    //&quot;*.txt&quot;, 
        OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, 
        &quot;Alle Dateien (*.*)|*.*|Textdateien (*.txt)|*.txt||&quot;);/**/ 
    dlg.m_ofn.lpstrInitialDir = &quot;c:\\&quot;; 
    //fdlg.m_ofn.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST; 
    dlg.m_ofn.lpstrTitle = dlg.m_ofn.lpstrInitialDir; 

    nF = dlg.DoModal(); 

	if(nF == IDOK) 
    {  
		SetDlgItemText(IDC_LIST,m_filelist); 
		m_pathname=dlg.GetPathName();
		nIndex = m_ctrfilelist.AddString(m_pathname);

    } 

	UpdateData(FALSE);

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/532526</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/532526</guid><dc:creator><![CDATA[sadi]]></dc:creator><pubDate>Tue, 08 Jun 2004 05:49:09 GMT</pubDate></item><item><title><![CDATA[Reply to mit [Entf] Taste Einträge von Listenfeld löschen on Thu, 03 Jun 2004 18:29:05 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/viewtopic.php?t=6338&amp;highlight=vkdelete" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=6338&amp;highlight=vkdelete</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/532536</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/532536</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Thu, 03 Jun 2004 18:29:05 GMT</pubDate></item><item><title><![CDATA[Reply to mit [Entf] Taste Einträge von Listenfeld löschen on Fri, 04 Jun 2004 00:12:38 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>sadi schrieb:</p>
<blockquote>
<p>Meine zweite Frage:<br />
<div class="plugin-markdown"><input type="checkbox" id="checkbox58411" checked="true" /><label for="checkbox58411">Dialogfenster schliessen auszublenden, das geht leider auch nicht</label></div></p>
</blockquote>
<p>jetzt beantworte ich deine Frage schon zum zweiten Mal, liest du eigentlich auch die Antworten auf deine Fragen, oder vergißt du, wo du eine Frage schon einmal gestellt hast, siehe hier:</p>
<p><a href="http://www.c-plusplus.net/forum/viewtopic.php?p=530616#530616" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?p=530616#530616</a></p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/532793</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/532793</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Fri, 04 Jun 2004 00:12:38 GMT</pubDate></item><item><title><![CDATA[Reply to mit [Entf] Taste Einträge von Listenfeld löschen on Fri, 04 Jun 2004 11:06:17 GMT]]></title><description><![CDATA[<p>Sorry Probe-Nutzer ich habs übersehen <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=":/"
      alt="😕"
    /><br />
Danke an alle, ich werde es versuchen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/533071</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/533071</guid><dc:creator><![CDATA[sadi]]></dc:creator><pubDate>Fri, 04 Jun 2004 11:06:17 GMT</pubDate></item><item><title><![CDATA[Reply to mit [Entf] Taste Einträge von Listenfeld löschen on Mon, 07 Jun 2004 21:49:23 GMT]]></title><description><![CDATA[<p>Also ich probiere schon seit 2 Tagen rum, aber es geht einfach nicht <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=":/"
      alt="😕"
    /><br />
Ich kann die Einträge vom Listenfeld nicht löschen.<br />
Wie gesagt das ist mein erstes MFC Programm und ich hab da wenig Erfahrung.</p>
<pre><code class="language-cpp">BOOL CLoaditupDlg::PreTranslateMessage(MSG* pMsg) 
{
	// TODO: Speziellen Code hier einfügen und/oder Basisklasse aufrufen
		UpdateData(TRUE);

	    if (pMsg-&gt;message == WM_KEYDOWN)
    {
        if (pMsg-&gt;wParam == VK_F2)
        {

			CString sUrl = _T(&quot;calc.exe&quot;); 
			ShellExecute(0,0,sUrl,0,0,SW_SHOW);

        }

		if (pMsg-&gt;wParam == VK_DELETE)
        {
		CListCtrl* pList = (CListCtrl*) GetDlgItem(IDC_LIST); 
		POSITION pos = pList-&gt;GetFirstSelectedItemPosition();
        int nItem = pList-&gt;GetNextSelectedItem(pos);  
        int nItemH = atoi(pList-&gt;GetItemText(nItem, 0)); 
        pList-&gt;DeleteItem(nItem); 

		}
    }

	return CDialog::PreTranslateMessage(pMsg);
	UpdateData(FALSE);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/535605</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/535605</guid><dc:creator><![CDATA[sadi]]></dc:creator><pubDate>Mon, 07 Jun 2004 21:49:23 GMT</pubDate></item><item><title><![CDATA[Reply to mit [Entf] Taste Einträge von Listenfeld löschen on Mon, 07 Jun 2004 21:57:46 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">BOOL CLoaditupDlg::PreTranslateMessage(MSG* pMsg){

	CListCtrl* pList=(CListCtrl*)GetDlgItem(IDC_LIST....);
	POSITION pos;

	if(pMsg-&gt;message == WM_KEYDOWN &amp;&amp; pMsg-&gt;wParam == VK_DELETE){
		::AfxGetApp()-&gt;DoWaitCursor(1);

		while(pos= pList-&gt;GetFirstSelectedItemPosition())
			pList-&gt;DeleteItem(pList-&gt;GetNextSelectedItem(pos));

		::AfxGetApp()-&gt;DoWaitCursor(0);
	}
	return CDialog::PreTranslateMessage(pMsg);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/535610</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/535610</guid><dc:creator><![CDATA[Windalf]]></dc:creator><pubDate>Mon, 07 Jun 2004 21:57:46 GMT</pubDate></item><item><title><![CDATA[Reply to mit [Entf] Taste Einträge von Listenfeld löschen on Tue, 08 Jun 2004 18:52:33 GMT]]></title><description><![CDATA[<p>Sorry das geht immer noch nicht <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=":/"
      alt="😕"
    /><br />
Ich hab es so übernohmen dadurch bekomme ich 100% CPU Auslastung, liegt glaub ich an der while schleife.</p>
<p>Ich habs jetzt so umgeschrieben, wird aber nichts gelöscht <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=":/"
      alt="😕"
    /></p>
<pre><code class="language-cpp">BOOL CLoaditupDlg::PreTranslateMessage(MSG* pMsg) 
{
	// TODO: Speziellen Code hier einfügen und/oder Basisklasse aufrufen
		UpdateData(TRUE);

	    if (pMsg-&gt;message == WM_KEYDOWN)
	 {

        if (pMsg-&gt;wParam == VK_F2)
        {

			CString sUrl = _T(&quot;calc.exe&quot;); 
			ShellExecute(0,0,sUrl,0,0,SW_SHOW);

        }
		if(pMsg-&gt;wParam == VK_DELETE)
		{ 

		CListCtrl* pList = (CListCtrl*) GetDlgItem(IDC_LIST); 
		POSITION pos; 

		::AfxGetApp()-&gt;DoWaitCursor(1); 
        pos= pList-&gt;GetFirstSelectedItemPosition();
        pList-&gt;DeleteItem(pList-&gt;GetNextSelectedItem(pos)); 
        ::AfxGetApp()-&gt;DoWaitCursor(0); 

		}

    }

	return CDialog::PreTranslateMessage(pMsg);
	UpdateData(FALSE);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/536290</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/536290</guid><dc:creator><![CDATA[sadi]]></dc:creator><pubDate>Tue, 08 Jun 2004 18:52:33 GMT</pubDate></item><item><title><![CDATA[Reply to mit [Entf] Taste Einträge von Listenfeld löschen on Tue, 08 Jun 2004 19:08:48 GMT]]></title><description><![CDATA[<p>hmm also bei mir funzt das was ich dir gepostet habe... ka was bei dir nicht geht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/536298</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/536298</guid><dc:creator><![CDATA[Windalf]]></dc:creator><pubDate>Tue, 08 Jun 2004 19:08:48 GMT</pubDate></item></channel></rss>