<?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 : Dialog docking pane and UpdateData</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Dialog docking pane and UpdateData]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 09 Jun 2026 16:33:42 +0000</pubDate>
  <lastBuildDate>Mon, 29 Dec 2008 08:58:07 +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=13020</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[Dialog docking pane and UpdateData : Many thanks !!It works I don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13020&amp;PID=43987&amp;title=dialog-docking-pane-and-updatedata#43987</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4826">mehlah</a><br /><strong>Subject:</strong> 13020<br /><strong>Posted:</strong> 29 December 2008 at 8:58am<br /><br />Many thanks !!<br>It works <img src="http://forum.codejock.com/smileys/smiley16.gif" border="0" align="absmiddle"><br><br>I don't care about the double instanciation <img src="http://forum.codejock.com/smileys/smiley18.gif" border="0" align="absmiddle"><br>]]>
   </description>
   <pubDate>Mon, 29 Dec 2008 08:58:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13020&amp;PID=43987&amp;title=dialog-docking-pane-and-updatedata#43987</guid>
  </item> 
  <item>
   <title><![CDATA[Dialog docking pane and UpdateData : Hi, You create 2 instances of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13020&amp;PID=43975&amp;title=dialog-docking-pane-and-updatedata#43975</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13020<br /><strong>Posted:</strong> 29 December 2008 at 3:28am<br /><br /><P>Hi,</P><DIV>You create 2 instances of CDlgInfoPane. One in CMainFrame and another in CmyWatermarkDoc. So when you call one in CmyWatermarkDoc - it call UpdateData of dialog that don't have hWnd.</DIV>]]>
   </description>
   <pubDate>Mon, 29 Dec 2008 03:28:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13020&amp;PID=43975&amp;title=dialog-docking-pane-and-updatedata#43975</guid>
  </item> 
  <item>
   <title><![CDATA[Dialog docking pane and UpdateData : Hi,I deal with a problem for some...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13020&amp;PID=43938&amp;title=dialog-docking-pane-and-updatedata#43938</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4826">mehlah</a><br /><strong>Subject:</strong> 13020<br /><strong>Posted:</strong> 27 December 2008 at 1:00am<br /><br />Hi,<br><br>I deal with a problem for some weeks now and i don't know what's wrong with my code...<br><br>PROBLEM: Debug assertion failed when a try to UpdateData for a dialog attached to a pane...<br><br>I attached to my post my MainFrame.cpp, myprojectDoc.cpp and mydialog.cpp (also .h files) for more details and some indentation <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0" align="absmiddle"><br><br>First i create my dialog and attach it to a pane in MainFrame.cpp (exactly like sample projetcs)<br><br>LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)<br>{<br>&nbsp;&nbsp; .<br>&nbsp;&nbsp; .<br>&nbsp;&nbsp; .<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case IDR_PANE_INFO:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!::IsWindow(m_dlgInfoPane.m_hWnd))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_dlgInfoPane.Create(IDD_INFOPANE, this);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pPane-&gt;Attach(&amp;m_dlgInfoPane);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp; .<br>&nbsp;&nbsp;&nbsp; .<br>&nbsp;&nbsp;&nbsp; .<br>&nbsp;<br>In CDlgInfoPane.cpp (Definition of my dialog class)<br><br>I have this method:<br><br>BOOL CDlgInfoPane::transferInfo(CString imageFilePath, int imageWidth, int imageHeight, int imageFileSize, int imageBPP, CString imageColorType)<br>{<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; m_imageFilePath = imageFilePath;<br>&nbsp;&nbsp;&nbsp; m_imageWidth = imageWidth;<br>&nbsp;&nbsp;&nbsp; m_imageHeight = imageHeight;<br>&nbsp;&nbsp;&nbsp; m_imageFileSize = imageFileSize;<br>&nbsp;&nbsp;&nbsp; m_imageBPP = imageBPP;<br>&nbsp;&nbsp;&nbsp; m_imageColorType = imageColorType;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; UpdateData(FALSE); // Debug assertion failed here !!<br>&nbsp;&nbsp;&nbsp; //GetDlgItem(IDC_FILEPATH)-&gt;SetWindowText(imageFilePath); <br>&nbsp;&nbsp;&nbsp; //::SendDlgItemMessage((HWND)*this,IDD_INFOPANE,WM_SETTEXT,0,(LPARAM)_T("toto"));<br><br>&nbsp;&nbsp;&nbsp; return TRUE;<br>}<br><br>it takes some variables from myprojectDoc.cpp and copy them to my private fialog variables...<br>In debug mode, m_imageFilePath, m_imageWidth,... m_imageColorType have the good values<br>But in the UpdateData line (or GetDlgItem...) there is a f**king problem: Take a look to screenshots...<br><br>I want to update data for the "Information" pane...<br><br><img src="uploads/20081227_005250_Image_1.png" border="0"><br><br>Have you please an idea for what is wrong ??<br><br>Thanks and sorry for my bad english <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="absmiddle"><a href="uploads/20081227_005934_src.zip" target="_blank">uploads/20081227_005934_src.zip</a><br>]]>
   </description>
   <pubDate>Sat, 27 Dec 2008 01:00:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13020&amp;PID=43938&amp;title=dialog-docking-pane-and-updatedata#43938</guid>
  </item> 
 </channel>
</rss>