<?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[WM_INITDIALOG einer Komponente abfangen]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>Normalerweise fange ich eine Windows- Message einer Komponente so ab:</p>
<pre><code class="language-cpp">//In Header:
void __fastcall CMMouseEnter(TMessage *);

...

BEGIN_MESSAGE_MAP 
    MESSAGE_HANDLER(CM_MOUSEENTER, TMessage *, CMMouseEnter);
END_MESSAGE_MAP(TCustomControl);
</code></pre>
<p>Jetzt möchte ich gerne WM_INITDIALOG abfangen, was mit dieser Methode jedoch nicht funktioniert.</p>
<p>Kann mir hierbei jemand mit etwas Code helfen???</p>
<p>Vielen Dank an alle Helfer,<br />
Euer Entertainer</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/116320/wm_initdialog-einer-komponente-abfangen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Jul 2026 22:40:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/116320.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Jul 2005 20:12:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WM_INITDIALOG einer Komponente abfangen on Mon, 25 Jul 2005 20:12:11 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>Normalerweise fange ich eine Windows- Message einer Komponente so ab:</p>
<pre><code class="language-cpp">//In Header:
void __fastcall CMMouseEnter(TMessage *);

...

BEGIN_MESSAGE_MAP 
    MESSAGE_HANDLER(CM_MOUSEENTER, TMessage *, CMMouseEnter);
END_MESSAGE_MAP(TCustomControl);
</code></pre>
<p>Jetzt möchte ich gerne WM_INITDIALOG abfangen, was mit dieser Methode jedoch nicht funktioniert.</p>
<p>Kann mir hierbei jemand mit etwas Code helfen???</p>
<p>Vielen Dank an alle Helfer,<br />
Euer Entertainer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/838617</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/838617</guid><dc:creator><![CDATA[Entertainer]]></dc:creator><pubDate>Mon, 25 Jul 2005 20:12:11 GMT</pubDate></item><item><title><![CDATA[Reply to WM_INITDIALOG einer Komponente abfangen on Tue, 26 Jul 2005 06:26:48 GMT]]></title><description><![CDATA[<p>naja besser ist sicher, wenn du die <strong>WndProc</strong> ueberschreibst.</p>
<p>// header</p>
<pre><code class="language-cpp">private: 

  void __fastcall WndProc(TMessage &amp;Message);
</code></pre>
<p>// cpp</p>
<pre><code class="language-cpp">void __fastcall TForm1::WndProc(TMessage &amp;Message)
{
  if (Message.Msg == WM_INITDIALOG)
  {
    // tue irgendetwas
  } 

  // geerbte WndProc aufrufen
  inherited::WndProc(Message);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/838773</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/838773</guid><dc:creator><![CDATA[Sunday]]></dc:creator><pubDate>Tue, 26 Jul 2005 06:26:48 GMT</pubDate></item><item><title><![CDATA[Reply to WM_INITDIALOG einer Komponente abfangen on Tue, 26 Jul 2005 09:48:28 GMT]]></title><description><![CDATA[<p>Ich denke diese Nachricht kriegst du nicht wenn du mit der VCL arbeitest. Kriegst du nur wenn du mit den WinAPI Funktionen CreateDialog oder DialogBox arbeitest.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/838964</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/838964</guid><dc:creator><![CDATA[arbeiter]]></dc:creator><pubDate>Tue, 26 Jul 2005 09:48:28 GMT</pubDate></item><item><title><![CDATA[Reply to WM_INITDIALOG einer Komponente abfangen on Tue, 26 Jul 2005 19:21:08 GMT]]></title><description><![CDATA[<p>Hallo Sunday,<br />
Danke für deine Antwort, ich wusste nicht, dass es auch so einfach geht. Aber leider hat arbeiter scheinbar recht, da ich keinen Zugriff auf WM_INITDIALOG habe.</p>
<p>Gibt es denn in der VCL wirklich keine Möglichkeit diese Nachricht abzufangen???</p>
<p>Bitte überlegt nochmal.</p>
<p>Vielen Dank,<br />
Euer Entertainer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/839413</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/839413</guid><dc:creator><![CDATA[Entertainer]]></dc:creator><pubDate>Tue, 26 Jul 2005 19:21:08 GMT</pubDate></item><item><title><![CDATA[Reply to WM_INITDIALOG einer Komponente abfangen on Tue, 26 Jul 2005 19:30:42 GMT]]></title><description><![CDATA[<p>Wie willst du eine Message abfangen, die überhaupt nicht (an deine Komponenten) verschickt wird?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/839418</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/839418</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Tue, 26 Jul 2005 19:30:42 GMT</pubDate></item><item><title><![CDATA[Reply to WM_INITDIALOG einer Komponente abfangen on Tue, 26 Jul 2005 20:43:47 GMT]]></title><description><![CDATA[<p>arbeiter schrieb:</p>
<blockquote>
<p>Ich denke diese Nachricht kriegst du nicht wenn du mit der VCL arbeitest. Kriegst du nur wenn du mit den WinAPI Funktionen CreateDialog oder DialogBox arbeitest.</p>
</blockquote>
<p>Is das denn so richtig??? Ich denke nicht, Tim!<br />
Sach doch mal einer mit Ahnung was dazu...<br />
Ich dachte immer die VCL wäre nur ein Wrapper und die WndProc trotzdem (oder gerade desswegen) verfügbar (zumindest nutze ich die ganz erfolgreich <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>
]]></description><link>https://www.c-plusplus.net/forum/post/839471</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/839471</guid><dc:creator><![CDATA[-**xXx**-]]></dc:creator><pubDate>Tue, 26 Jul 2005 20:43:47 GMT</pubDate></item><item><title><![CDATA[Reply to WM_INITDIALOG einer Komponente abfangen on Tue, 26 Jul 2005 22:12:54 GMT]]></title><description><![CDATA[<p>Ne, die VCL wrappt die Dialoge die man mit CreateDialog/DialogBox erstellen kann nicht.</p>
<p>Ich hab recht. 100%.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/839524</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/839524</guid><dc:creator><![CDATA[arbeiter]]></dc:creator><pubDate>Tue, 26 Jul 2005 22:12:54 GMT</pubDate></item><item><title><![CDATA[Reply to WM_INITDIALOG einer Komponente abfangen on Tue, 26 Jul 2005 22:16:26 GMT]]></title><description><![CDATA[<p>Also du kannst schon alle Nachrichten abfangen...aber die WM_INITDIALOG ist halt nur für Dialoge und eine TForm kriegt diese Nachricht überhaupt nicht!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/839527</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/839527</guid><dc:creator><![CDATA[arbeiter]]></dc:creator><pubDate>Tue, 26 Jul 2005 22:16:26 GMT</pubDate></item><item><title><![CDATA[Reply to WM_INITDIALOG einer Komponente abfangen on Wed, 27 Jul 2005 04:32:57 GMT]]></title><description><![CDATA[<p>Auch nicht, wenn das Formular vom Typ Dialog ist???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/839563</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/839563</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Wed, 27 Jul 2005 04:32:57 GMT</pubDate></item><item><title><![CDATA[Reply to WM_INITDIALOG einer Komponente abfangen on Wed, 27 Jul 2005 06:41:42 GMT]]></title><description><![CDATA[<p>arbeitest du ueberhaupt mit dialog-boxen? wenn nein warum willst du diese message abfangen? was willst du erreichen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/839602</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/839602</guid><dc:creator><![CDATA[Sunday]]></dc:creator><pubDate>Wed, 27 Jul 2005 06:41:42 GMT</pubDate></item><item><title><![CDATA[Reply to WM_INITDIALOG einer Komponente abfangen on Wed, 27 Jul 2005 16:54:52 GMT]]></title><description><![CDATA[<p>Ich möchte eine Komponente (beispielsweise ein Panel) transparent erscheinen lassen. Das geht bei Fenstern mit SetWindowLong(...) und SetLayeredWindowAttributes(...).</p>
<p>Bei Komponenten im C++ Builder ist dies so leider nicht möglich. Unter MSDN habe ich gelesen, dass man die WM_INITDIALOG abfangen und dann wie oben bei den Fenstern vorgehen muss.</p>
<p>Ich brauche die WM_INITDIALOG- Nachricht also nur, um diese Transparenz zu erreichen, oder gibt es noch eine andere Methode, um die Komponenten transparent erscheinen zu lassen???</p>
<p>Vielen Dank für eure Hilfe,<br />
Euer Entertainer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/840224</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/840224</guid><dc:creator><![CDATA[Entertainer]]></dc:creator><pubDate>Wed, 27 Jul 2005 16:54:52 GMT</pubDate></item><item><title><![CDATA[Reply to WM_INITDIALOG einer Komponente abfangen on Wed, 27 Jul 2005 17:13:24 GMT]]></title><description><![CDATA[<p>Du kannst eh nur die ganze Form transparent machen und nicht einzelne Steuerelemente.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/840239</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/840239</guid><dc:creator><![CDATA[arbeiter]]></dc:creator><pubDate>Wed, 27 Jul 2005 17:13:24 GMT</pubDate></item><item><title><![CDATA[Reply to WM_INITDIALOG einer Komponente abfangen on Thu, 28 Jul 2005 16:06:30 GMT]]></title><description><![CDATA[<p>Aber ist nicht letztendlich jedes Steuerelement ein eigenes Fenster auf dem Hauptfenster? Kann man denn da wirklich nichts machen?</p>
<p>Vielen Dank,<br />
Euer Entertainer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/840970</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/840970</guid><dc:creator><![CDATA[Entertainer]]></dc:creator><pubDate>Thu, 28 Jul 2005 16:06:30 GMT</pubDate></item><item><title><![CDATA[Reply to WM_INITDIALOG einer Komponente abfangen on Thu, 28 Jul 2005 16:27:01 GMT]]></title><description><![CDATA[<p>WS_EX_LAYERED<br />
Windows 2000/XP: Creates a layered window. <strong>Note that this cannot be used for child windows.</strong> Also, this cannot be used if the window has a class style of either CS_OWNDC or CS_CLASSDC.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/840982</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/840982</guid><dc:creator><![CDATA[arbeiter]]></dc:creator><pubDate>Thu, 28 Jul 2005 16:27:01 GMT</pubDate></item></channel></rss>