<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Why &#079;nInitDialog not called?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Why &#079;nInitDialog not called?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 24 Apr 2026 22:01:58 +0000</pubDate>
  <lastBuildDate>Fri, 16 Dec 2005 11:29:58 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=2987</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Why &#079;nInitDialog not called? : XTMFC,  I got this working (i.e....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2987&amp;PID=10238&amp;title=why-oninitdialog-not-called#10238</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 2987<br /><strong>Posted:</strong> 16 December 2005 at 11:29am<br /><br /><span ="bold"><span style="font-weight: normal;">XTMFC,<br><br>I got this working (i.e. a pane with re-sizeable controls in it, layout being done in the resource editor).<br><br>I'm using Xtreme Toolkit Pro 9.80 (if the version matters). Basicallywhat I did was copy/paste from the "grep" example. It did almostexactly what we were both looking for.<br><br>Note: the "one time" initialization code is done in <span style="font-style: italic;">OnInitialUpdate </span>and <span style="font-weight: bold;">not</span><br></span></span><span style="font-style: italic;">OnInitDialog. </span><span ="bold"><span style="font-weight: normal;">And <span style="font-weight: bold;">also</span> note, that this function gets called twice (so you'll need a <span style="font-family: courier new,courier,mono;">m_bInitialized</span> flag, like in the example) Maybe that was your issue ?!?</span></span><br><br><span ="bold"><span style="font-weight: normal;">Warren<br></span></span>]]>
   </description>
   <pubDate>Fri, 16 Dec 2005 11:29:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2987&amp;PID=10238&amp;title=why-oninitdialog-not-called#10238</guid>
  </item> 
  <item>
   <title><![CDATA[Why &#079;nInitDialog not called? : I was thinking of doing something...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2987&amp;PID=8959&amp;title=why-oninitdialog-not-called#8959</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 2987<br /><strong>Posted:</strong> 04 October 2005 at 9:06pm<br /><br />I was thinking of doing something similar (although I'm not in a bighurry - it could be a month or two). I'll try to let you know if Ifigure something out...<br><br>Warren<br>]]>
   </description>
   <pubDate>Tue, 04 Oct 2005 21:06:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2987&amp;PID=8959&amp;title=why-oninitdialog-not-called#8959</guid>
  </item> 
  <item>
   <title><![CDATA[Why &#079;nInitDialog not called? : Hi Warren: Thanks for your help. I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2987&amp;PID=8958&amp;title=why-oninitdialog-not-called#8958</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1529">XTMFC</a><br /><strong>Subject:</strong> 2987<br /><strong>Posted:</strong> 04 October 2005 at 7:54pm<br /><br /><P>Hi Warren:</P><P>Thanks for your help.</P><P>I tried every poosible way of putting a dialog (CDialog or CXRResizeDialog) into a docking pane and got stuck at the very same point - OnInitDialog() call.&nbsp; Not sure why this happens and I don't want to get into creating the controls using code in stead of using resource editor.</P><P>In the mean time, I just went back to a regular popup dialog to but I will always be interested in knowing if some one has the same issue and figured out the answer.</P><P>Thanks.</P>]]>
   </description>
   <pubDate>Tue, 04 Oct 2005 19:54:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2987&amp;PID=8958&amp;title=why-oninitdialog-not-called#8958</guid>
  </item> 
  <item>
   <title><![CDATA[Why &#079;nInitDialog not called? : Based on the function not getting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2987&amp;PID=8946&amp;title=why-oninitdialog-not-called#8946</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 2987<br /><strong>Posted:</strong> 04 October 2005 at 7:15am<br /><br />Based on the function not getting called, my guess would be:<br><br>1) Make sure ALL of your "CDialog" entries in your dialog are replaced by<br>"CXTResizeDialog" (i.e. make sure the derivation is 100% correct)<br>...and don't forget the message map macros too!!! For example:<br>BEGIN_MESSAGE_MAP(DerivedDialogClass, BaseDialogClass)<br><br>Incorrect message maps are typically where the problem is when function calls go missing for me.<br><br>2) Make sure the window you get back from:<br>m_pwndContractSelector-&gt;GetChild()<br>is REALLY your dialog. Maybe it's something else, or a bad pointer ?!?<br><br>3) could be a creation-order issue (maybe the dialog already got the WM_INITDIALOG message), but this is just a wild guess.<br><br>Best of luck - tracking down bugs like this are never very fun.<br><br>Warren<br>]]>
   </description>
   <pubDate>Tue, 04 Oct 2005 07:15:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2987&amp;PID=8946&amp;title=why-oninitdialog-not-called#8946</guid>
  </item> 
  <item>
   <title><![CDATA[Why &#079;nInitDialog not called? : I have a CXTPDockingPane in my...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2987&amp;PID=8908&amp;title=why-oninitdialog-not-called#8908</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1529">XTMFC</a><br /><strong>Subject:</strong> 2987<br /><strong>Posted:</strong> 02 October 2005 at 11:20pm<br /><br /><P>I have a CXTPDockingPane in my ChildFrame.&nbsp; The docking pane is attached to a CXTResizeDialog.&nbsp; I wanted to do a few initializations in the OnInitDialog and controls resizing, but the function CXTResizeDialog::OnInitDialog was not called at all.&nbsp; What did I do wrong?</P><P>I am using v9.601 pro.&nbsp; Thanks in advance for any helps!</P><P>///////////////////////// Code ///////////////////////////</P><P>m_pwndContractSelector = m_paneManager.CreatePane ( IDR_PANE_CONTRACT_SELECTER, <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CRect(0,  0,120, 120), <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xtpPaneDockTop,  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m_paneManager.GetC lientPane() );</P><P>&nbsp;&nbsp;&nbsp;&nbsp;m_dlgContractSelector = new CXTResizeDialog();<BR> &nbsp;&nbsp;&nbsp;&nbsp;m_dlgContractSelector-&gt;Create(IDD _CONTRACT_SELECTOR,this);</P><P>&nbsp;&nbsp;&nbsp;&nbsp;m_pwndContractSelector-&gt;Attach( m_dlgContractSelector );</P><P> &nbsp;&nbsp;&nbsp;&nbsp;m_pwndContractSelector-&gt;SetOption s(xtpPaneNoCloseable);</P><P> &nbsp;//&nbsp;&nbsp;&nbsp;m_pwndContractSelector-&gt;GetChil d()-&gt;SendMessage(WM_INITDIALOG); <BR></P>]]>
   </description>
   <pubDate>Sun, 02 Oct 2005 23:20:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2987&amp;PID=8908&amp;title=why-oninitdialog-not-called#8908</guid>
  </item> 
 </channel>
</rss>