<?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[GetSaveFileName -&amp;gt; Customization -&amp;gt; Explorer-Style Custom Templates]]></title><description><![CDATA[<p>Hi,<br />
bei der Anpassung des GetSaveFileName Dialoges bin ich auf die Möglichkeit gestossen, in der OPENFILENAME structur ein Template angeben zu können.</p>
<p>Die interessante Property hierfür:</p>
<p>int hInstance; // Type converted CSharp</p>
<p>Auszug aus MSDN: &quot; If the template is already in memory, set the OFN_ENABLETEMPLATEHANDLE flag and use the hInstance member to identify the memory object that contains the template.&quot;</p>
<p>Habe dies versucht.<br />
Agiere jedoch unter CSharp und habe einige Probleme.</p>
<p>1. Was genau ist dieses Template ?<br />
(Habe mir eine alte .rc Datei genommen wo ein Dialog und ein Paar Steuerelemente drinne sind). Hier steckt UNTER ANDEDREM folgendes drinne:</p>
<p>/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// Dialog<br />
//<br />
IDD_KALISCAN DIALOGEX 0, 0, 392, 145<br />
STYLE DS_SETFONT | DS_MODALFRAME | DS_3DLOOK | DS_CONTROL | WS_CHILD | WS_CLIPSIBLINGS<br />
FONT 8, &quot;MS Sans Serif&quot;, 0, 0, 0x0<br />
BEGIN<br />
LISTBOX IDC_LIST_KALISCAN,5,5,355,37,LBS_USETABSTOPS | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP<br />
DEFPUSHBUTTON &quot;Start&quot;,IDC_START_KALISCAN,21,76,50,14<br />
PUSHBUTTON &quot;Weiter&quot;,IDC_BUTTON_CONTINUE_KALI,91,76,50,14<br />
GROUPBOX &quot;Kalibrierscan Absolut&quot;,IDC_STATIC,7,53,355,85<br />
PUSHBUTTON &quot;Konfiguration...&quot;,IDC_BUTTON_KALI_CONFIG,21,102,50,14<br />
PUSHBUTTON &quot;Speichern...&quot;,IDC_BUTTON_KALI_SPEICHERN,91,102,50,14<br />
END</p>
<p>Ist das das Template wovon hier geredet wird ? Oder noch mehr aus der Datei ?</p>
<p>2. hInstace soll in disem Fall (Flag -&gt; OFN_ENABLETEMPLATEHANDLE) ein Handle auf<br />
genau WAS sein ?</p>
<p>(Habe unter CSharp das, was ich für ein Template halte aus einer Datei als Stream eingelesen. Und in hInstance das konvertierte Handle reingeschrieben.)<br />
Leider zur Zeit noch ohne Erfolg. Wobei ich jedoch nicht weiß ob mein Template überhaupt richtig ist.</p>
<p>Wer kann mich hier mal etwas aufklären<br />
Besten Dank<br />
Torsten</p>
<p>.NET 2005 + CSharp + WIN API</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/163865/getsavefilename-gt-customization-gt-explorer-style-custom-templates</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 13:47:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/163865.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 Nov 2006 16:17:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GetSaveFileName -&amp;gt; Customization -&amp;gt; Explorer-Style Custom Templates on Thu, 02 Nov 2006 16:17:52 GMT]]></title><description><![CDATA[<p>Hi,<br />
bei der Anpassung des GetSaveFileName Dialoges bin ich auf die Möglichkeit gestossen, in der OPENFILENAME structur ein Template angeben zu können.</p>
<p>Die interessante Property hierfür:</p>
<p>int hInstance; // Type converted CSharp</p>
<p>Auszug aus MSDN: &quot; If the template is already in memory, set the OFN_ENABLETEMPLATEHANDLE flag and use the hInstance member to identify the memory object that contains the template.&quot;</p>
<p>Habe dies versucht.<br />
Agiere jedoch unter CSharp und habe einige Probleme.</p>
<p>1. Was genau ist dieses Template ?<br />
(Habe mir eine alte .rc Datei genommen wo ein Dialog und ein Paar Steuerelemente drinne sind). Hier steckt UNTER ANDEDREM folgendes drinne:</p>
<p>/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// Dialog<br />
//<br />
IDD_KALISCAN DIALOGEX 0, 0, 392, 145<br />
STYLE DS_SETFONT | DS_MODALFRAME | DS_3DLOOK | DS_CONTROL | WS_CHILD | WS_CLIPSIBLINGS<br />
FONT 8, &quot;MS Sans Serif&quot;, 0, 0, 0x0<br />
BEGIN<br />
LISTBOX IDC_LIST_KALISCAN,5,5,355,37,LBS_USETABSTOPS | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP<br />
DEFPUSHBUTTON &quot;Start&quot;,IDC_START_KALISCAN,21,76,50,14<br />
PUSHBUTTON &quot;Weiter&quot;,IDC_BUTTON_CONTINUE_KALI,91,76,50,14<br />
GROUPBOX &quot;Kalibrierscan Absolut&quot;,IDC_STATIC,7,53,355,85<br />
PUSHBUTTON &quot;Konfiguration...&quot;,IDC_BUTTON_KALI_CONFIG,21,102,50,14<br />
PUSHBUTTON &quot;Speichern...&quot;,IDC_BUTTON_KALI_SPEICHERN,91,102,50,14<br />
END</p>
<p>Ist das das Template wovon hier geredet wird ? Oder noch mehr aus der Datei ?</p>
<p>2. hInstace soll in disem Fall (Flag -&gt; OFN_ENABLETEMPLATEHANDLE) ein Handle auf<br />
genau WAS sein ?</p>
<p>(Habe unter CSharp das, was ich für ein Template halte aus einer Datei als Stream eingelesen. Und in hInstance das konvertierte Handle reingeschrieben.)<br />
Leider zur Zeit noch ohne Erfolg. Wobei ich jedoch nicht weiß ob mein Template überhaupt richtig ist.</p>
<p>Wer kann mich hier mal etwas aufklären<br />
Besten Dank<br />
Torsten</p>
<p>.NET 2005 + CSharp + WIN API</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1167122</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1167122</guid><dc:creator><![CDATA[torti]]></dc:creator><pubDate>Thu, 02 Nov 2006 16:17:52 GMT</pubDate></item><item><title><![CDATA[Reply to GetSaveFileName -&amp;gt; Customization -&amp;gt; Explorer-Style Custom Templates on Thu, 02 Nov 2006 16:43:56 GMT]]></title><description><![CDATA[<p>Man sollte es zuerst mit der WinAPI und C probieren... und dann kann man dies ja nach C# übertragen...<br />
Siehe:<br />
<a href="http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/userinput/commondialogboxlibrary/aboutcommondialogboxes/openandsaveasdialogboxes.asp" rel="nofollow">http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/userinput/commondialogboxlibrary/aboutcommondialogboxes/openandsaveasdialogboxes.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1167136</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1167136</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 02 Nov 2006 16:43:56 GMT</pubDate></item></channel></rss>