<?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[Druckerdialog mit errechneten werten initialisieren]]></title><description><![CDATA[<p>Hallo,</p>
<p>brauche dringend Hilfe !</p>
<p>weis jemand wie ich einen Druckerdialog der Klasse CPrintDialog mit Werten die ich vorher errechnet habe u.a. Seitenzahlen von - bis, max. Seiten etc. initialisieren kann bevor ich den Dialog mit DoModal aufrufe ?</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/54289/druckerdialog-mit-errechneten-werten-initialisieren</link><generator>RSS for Node</generator><lastBuildDate>Mon, 01 Jun 2026 15:46:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/54289.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Nov 2003 09:06:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Druckerdialog mit errechneten werten initialisieren on Thu, 06 Nov 2003 09:06:52 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>brauche dringend Hilfe !</p>
<p>weis jemand wie ich einen Druckerdialog der Klasse CPrintDialog mit Werten die ich vorher errechnet habe u.a. Seitenzahlen von - bis, max. Seiten etc. initialisieren kann bevor ich den Dialog mit DoModal aufrufe ?</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/387806</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/387806</guid><dc:creator><![CDATA[CarlF]]></dc:creator><pubDate>Thu, 06 Nov 2003 09:06:52 GMT</pubDate></item><item><title><![CDATA[Reply to Druckerdialog mit errechneten werten initialisieren on Thu, 06 Nov 2003 09:42:27 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>das Objekt der Klasse CPrintDialog hat einen Member mit der Bezeichnung m_pd.<br />
Dieses m_pd ist ein PRINTDLG.</p>
<p>Und das sollte dann nützlich sein: <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<blockquote>
<p>PRINTDLG<br />
The PRINTDLG structure contains information that the PrintDlg function uses to initialize the Print dialog box. After the user closes the dialog box, the system uses this structure to return information about the user's selections.</p>
<p>typedef struct tagPD {<br />
DWORD lStructSize;<br />
HWND hwndOwner;<br />
HGLOBAL hDevMode;<br />
HGLOBAL hDevNames;<br />
HDC hDC;<br />
DWORD Flags;<br />
WORD nFromPage;<br />
WORD nToPage;<br />
WORD nMinPage;<br />
WORD nMaxPage;<br />
WORD nCopies;<br />
HINSTANCE hInstance;<br />
LPARAM lCustData;<br />
LPPRINTHOOKPROC lpfnPrintHook;<br />
LPSETUPHOOKPROC lpfnSetupHook;<br />
LPCTSTR lpPrintTemplateName;<br />
LPCTSTR lpSetupTemplateName;<br />
HGLOBAL hPrintTemplate;<br />
HGLOBAL hSetupTemplate;<br />
} PRINTDLG, *LPPRINTDLG;</p>
</blockquote>
<p>Ich wollte nicht alles kopieren, da es doch etwas zu lang werden würde...;)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/387840</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/387840</guid><dc:creator><![CDATA[Hexagon]]></dc:creator><pubDate>Thu, 06 Nov 2003 09:42:27 GMT</pubDate></item><item><title><![CDATA[Reply to Druckerdialog mit errechneten werten initialisieren on Thu, 06 Nov 2003 09:53:37 GMT]]></title><description><![CDATA[<p>Das ist schon richtig aber wenn ich z.B.</p>
<pre><code class="language-cpp">CPrintDialog dlgPrint(FALSE)
dlgPrint.m_pd.nFromPage = 1;
dlgPrint.m_pd.nToPage   = sitecount-1;
...

if(dlgPrint.DoMaodal() == IDOK)
{
  // Druckvorgang starten
  ...
}
</code></pre>
<p>schreibe, dann werden die Werte nicht in die Dialogbox übernommen. Warum ist das so bzw. was muss ich besser machen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/387856</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/387856</guid><dc:creator><![CDATA[CarlF]]></dc:creator><pubDate>Thu, 06 Nov 2003 09:53:37 GMT</pubDate></item></channel></rss>