<?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[CColorDialog MFC]]></title><description><![CDATA[<p>Hi,<br />
Ich habe einen CColorDialog erstellt.<br />
Nun möchte ich das die ausgewählte Farbe beim erneuten Aufruf des Dialoges das Markierungskästenchen bekommt. Im Moment hat ja immer Scharz diese Markierung.<br />
MS-Paint dient als gutes Beispiel, die vorher ausgewählte Farbe bekommt die Markierung.</p>
<p>(CFillColorDialog ist von CColorDialog abgeleitet, also keine Bange wegen dem Nahmen)</p>
<p>CFillColorDialog colordialog;<br />
if(colordialog.DoModal() == IDOK) {<br />
fuellfarbe = colordialog.GetColor();<br />
}</p>
<p>Schon mal besten Dank im vorraus.<br />
Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/6201/ccolordialog-mfc</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 23:23:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/6201.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Jun 2003 10:52:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CColorDialog MFC on Mon, 16 Jun 2003 10:52:00 GMT]]></title><description><![CDATA[<p>Hi,<br />
Ich habe einen CColorDialog erstellt.<br />
Nun möchte ich das die ausgewählte Farbe beim erneuten Aufruf des Dialoges das Markierungskästenchen bekommt. Im Moment hat ja immer Scharz diese Markierung.<br />
MS-Paint dient als gutes Beispiel, die vorher ausgewählte Farbe bekommt die Markierung.</p>
<p>(CFillColorDialog ist von CColorDialog abgeleitet, also keine Bange wegen dem Nahmen)</p>
<p>CFillColorDialog colordialog;<br />
if(colordialog.DoModal() == IDOK) {<br />
fuellfarbe = colordialog.GetColor();<br />
}</p>
<p>Schon mal besten Dank im vorraus.<br />
Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30095</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30095</guid><dc:creator><![CDATA[MadDog00Z]]></dc:creator><pubDate>Mon, 16 Jun 2003 10:52:00 GMT</pubDate></item><item><title><![CDATA[Reply to CColorDialog MFC on Mon, 16 Jun 2003 11:01:00 GMT]]></title><description><![CDATA[<p>SetCurrentColor?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30096</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30096</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Mon, 16 Jun 2003 11:01:00 GMT</pubDate></item><item><title><![CDATA[Reply to CColorDialog MFC on Mon, 16 Jun 2003 11:06:00 GMT]]></title><description><![CDATA[<p>Hab ich schon probiert. Dann schmiert mir aber immer das Programm ab.</p>
<p>colordialog.SetCurrentColor(fuellfarbe); : vor und in der IF-Anw. probiert</p>
<p>[ Dieser Beitrag wurde am 16.06.2003 um 13:07 Uhr von <strong>MadDog00Z</strong> editiert. ]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30097</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30097</guid><dc:creator><![CDATA[MadDog00Z]]></dc:creator><pubDate>Mon, 16 Jun 2003 11:06:00 GMT</pubDate></item><item><title><![CDATA[Reply to CColorDialog MFC on Mon, 16 Jun 2003 17:54:00 GMT]]></title><description><![CDATA[<p>Habs hinbekommen.<br />
Nix mit SetCurrentColor.</p>
<p>CLineColorDialog colordialog;<br />
colordialog.m_cc.Flags |= CC_RGBINIT; //dieses Flag muß erst gesetzt werden (also so)<br />
colordialog.m_cc.rgbResult = linienfarbe; //dann 'rgbResult' den Wert zuweisen<br />
if(colordialog.DoModal() == IDOK) {<br />
linienfarbe = colordialog.GetColor();<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30098</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30098</guid><dc:creator><![CDATA[MadDog00Z]]></dc:creator><pubDate>Mon, 16 Jun 2003 17:54:00 GMT</pubDate></item></channel></rss>