<?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[minimieren ueberschreiben]]></title><description><![CDATA[<p>hallo leute</p>
<p>die frage ist kurz und knapp</p>
<p>wie kann ich die funktion fuer das minimieren mit einer eigenen ueberschreiben in einer dialogressource ?</p>
<p>ich hab hier n button fuer &quot;minimieren in tray&quot; - das wuerd ich gern auf das &quot;normale&quot; minimieren auf startleiste umlenken</p>
<p>danke fuer alle reaktionen {o;</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/161211/minimieren-ueberschreiben</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Jul 2026 02:07:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/161211.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Oct 2006 12:42:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to minimieren ueberschreiben on Wed, 04 Oct 2006 12:42:09 GMT]]></title><description><![CDATA[<p>hallo leute</p>
<p>die frage ist kurz und knapp</p>
<p>wie kann ich die funktion fuer das minimieren mit einer eigenen ueberschreiben in einer dialogressource ?</p>
<p>ich hab hier n button fuer &quot;minimieren in tray&quot; - das wuerd ich gern auf das &quot;normale&quot; minimieren auf startleiste umlenken</p>
<p>danke fuer alle reaktionen {o;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1149226</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1149226</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Wed, 04 Oct 2006 12:42:09 GMT</pubDate></item><item><title><![CDATA[Reply to minimieren ueberschreiben on Wed, 04 Oct 2006 16:48:30 GMT]]></title><description><![CDATA[<p>Du kannst WM_SYSCOMMAND mit dem entsprechenden Minimize Code versenden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1149387</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1149387</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 04 Oct 2006 16:48:30 GMT</pubDate></item><item><title><![CDATA[Reply to minimieren ueberschreiben on Wed, 04 Oct 2006 17:52:49 GMT]]></title><description><![CDATA[<p>und wo ? bei on init ?</p>
<p>ist das erste mal das ich direkt mit der dialog box arbeite - sonst hab ich immer die fenster manuell erstellt {jeff prosise}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1149417</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1149417</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Wed, 04 Oct 2006 17:52:49 GMT</pubDate></item><item><title><![CDATA[Reply to minimieren ueberschreiben on Wed, 04 Oct 2006 18:11:17 GMT]]></title><description><![CDATA[<p>Jetzt verstehe ich was nicht. Was hat OnInitDialog mit dem minimieren zu tun?<br />
ShowWindiw(SW_MINIMIZE) geht natürlich auch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1149427</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1149427</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 04 Oct 2006 18:11:17 GMT</pubDate></item><item><title><![CDATA[Reply to minimieren ueberschreiben on Thu, 05 Oct 2006 05:46:54 GMT]]></title><description><![CDATA[<p>ja wie gesagt, ich weiss doch nicht wo und wie ich das mit dem &quot;WM_SYSCOMMAND&quot; schreiben soll</p>
<p>ShowWindow wird zb ja gar nicht aufgerufen<br />
.h files</p>
<pre><code class="language-cpp">class COwnApp : public CWinApp
{
public:
	COwnApp();
	virtual BOOL InitInstance();

	DECLARE_MESSAGE_MAP()
};

extern CSOwnApp theApp;
</code></pre>
<pre><code class="language-cpp">class COwnDlg : public CDialog
{
public:
	COwnDlg(CWnd* pParent = NULL);

	enum { IDD = IDD_OWN_DIALOG };
protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV-Unterstützung
	HICON m_hIcon;

	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();

	DECLARE_MESSAGE_MAP()
</code></pre>
<p>.cpp files</p>
<pre><code class="language-cpp">BEGIN_MESSAGE_MAP(COwnApp, CWinApp)
	ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()

CShutDownApp::COwnApp()
{
}

COwnApp theApp;

BOOL COwnApp::InitInstance()
{
	InitCommonControls();

	CWinApp::InitInstance();

	SetRegistryKey(_T(&quot;Vom lokalen Anwendungs-Assistenten generierte Anwendungen&quot;));

	COwnDlg dlg;
	m_pMainWnd = &amp;dlg;
	INT_PTR nResponse = dlg.DoModal();

	return TRUE;
}
</code></pre>
<pre><code class="language-cpp">COwnDlg::COwnDlg( CWnd* pParent )	: CDialog( CSOwnDlg::IDD, pParent )
{
	m_hIcon = AfxGetApp()-&gt;LoadIcon(IDR_MAINFRAME);
}

BEGIN_MESSAGE_MAP(COwnDlg, CDialog)
	ON_WM_PAINT()
END_MESSAGE_MAP()

BOOL COwnDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	SetIcon(m_hIcon, TRUE);			// Großes Symbol verwenden
	SetIcon(m_hIcon, FALSE);		// Kleines Symbol verwenden
}
void COwnDlg::OnPaint() 
{
	if ( IsIconic() ){
		CPaintDC dc( this );

		SendMessage( WM_ICONERASEBKGND, reinterpret_cast&lt; WPARAM &gt;( dc.GetSafeHdc() ), 0 );

		int cxIcon = GetSystemMetrics( SM_CXICON );
		int cyIcon = GetSystemMetrics( SM_CYICON );
		CRect rect;
		GetClientRect( &amp;rect );
		int x = ( rect.Width() - cxIcon + 1 ) / 2;
		int y = ( rect.Height() - cyIcon + 1 ) / 2;

		dc.DrawIcon( x, y, m_hIcon );
	}
	else
		CDialog::OnPaint();
}
HCURSOR COwnDlg::OnQueryDragIcon()
{
	return static_cast&lt;HCURSOR&gt;( m_hIcon );
}
</code></pre>
<p>das is was ich hab {eigene methoden und members weggelassen}<br />
wo und wie komm ich nu an die funktion fuer den minimieren button</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1149629</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1149629</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 05 Oct 2006 05:46:54 GMT</pubDate></item><item><title><![CDATA[Reply to minimieren ueberschreiben on Thu, 05 Oct 2006 06:36:46 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich würde die Nachricht fürs minimieren einfach abfangen und entsprechend anders verarbeiten?</p>
<p>Gruß<br />
Gerald</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1149647</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1149647</guid><dc:creator><![CDATA[Gerald Mert]]></dc:creator><pubDate>Thu, 05 Oct 2006 06:36:46 GMT</pubDate></item><item><title><![CDATA[Reply to minimieren ueberschreiben on Thu, 05 Oct 2006 08:04:50 GMT]]></title><description><![CDATA[<p>ja das will ich ja machen, aber ich weiss nicht wie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1149704</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1149704</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 05 Oct 2006 08:04:50 GMT</pubDate></item><item><title><![CDATA[Reply to minimieren ueberschreiben on Thu, 05 Oct 2006 09:16:30 GMT]]></title><description><![CDATA[<p>Du musst einfach einen Handler für WM_SYSCOMMAND zu Deinem Dialog hinzufügen. Das machst Du mit dem Wizard.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1149754</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1149754</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 05 Oct 2006 09:16:30 GMT</pubDate></item><item><title><![CDATA[Reply to minimieren ueberschreiben on Thu, 05 Oct 2006 12:25:23 GMT]]></title><description><![CDATA[<p>ein wizard dafuer hab ich nicht gefunden aber habs trotzdem hinbekommen</p>
<pre><code class="language-cpp">BEGIN_MESSAGE_MAP(COwnDlg, CDialog)
	ON_WM_PAINT()
	ON_WM_SYSCOMMAND()       // hinzugefuegt
END_MESSAGE_MAP()
</code></pre>
<pre><code class="language-cpp">class COwnDlg : public CDialog
{
public:
    COwnDlg(CWnd* pParent = NULL);

    enum { IDD = IDD_OWN_DIALOG };
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV-Unterstützung
    HICON m_hIcon;

    virtual BOOL OnInitDialog();
    afx_msg void OnPaint();
    afx_msg HCURSOR OnQueryDragIcon();
    afx_msg void OnSysCommand( UINT nID, LPARAM lParam );   // hinzugefuegt

    DECLARE_MESSAGE_MAP()
</code></pre>
<pre><code class="language-cpp">// erstellt
void COwnDlg::OnSysCommand( UINT nID, LPARAM lParam )
{
	switch( nID )
	{
	case SC_MINIMIZE:
		OnMini();
		break;
	case SC_CLOSE:
		COwnDlg::OnClose();
		break;
	default:
		break;
	}
}
</code></pre>
<p>danke fuer den schubs in die richtige richtung {=</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1149885</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1149885</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 05 Oct 2006 12:25:23 GMT</pubDate></item></channel></rss>