<?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 : No Resource Buttons on Dialog Based Pane?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : No Resource Buttons on Dialog Based Pane?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 16:20:05 +0000</pubDate>
  <lastBuildDate>Fri, 26 Sep 2008 02:59:13 +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=12258</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[No Resource Buttons on Dialog Based Pane? : Hi, Obviously you need Put PaneDlg...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12258&amp;PID=41404&amp;title=no-resource-buttons-on-dialog-based-pane#41404</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12258<br /><strong>Posted:</strong> 26 September 2008 at 2:59am<br /><br />Hi,<DIV>Obviously you need Put PaneDlg PDLG; line to members of CMainFrame.</DIV>]]>
   </description>
   <pubDate>Fri, 26 Sep 2008 02:59:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12258&amp;PID=41404&amp;title=no-resource-buttons-on-dialog-based-pane#41404</guid>
  </item> 
  <item>
   <title><![CDATA[No Resource Buttons on Dialog Based Pane? :    &amp;lt;&amp;gt;  /* Style Definitions...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12258&amp;PID=41396&amp;title=no-resource-buttons-on-dialog-based-pane#41396</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4346">kent_t</a><br /><strong>Subject:</strong> 12258<br /><strong>Posted:</strong> 25 September 2008 at 5:15pm<br /><br /><a href="file:///C:%5CDOCUME%7E1%5CKTHOMP%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" target="_blank"><!-- /* Font Definiti&#111;ns */ @font-face	{font-family:"Cambria Math";	panose-1:2 4 5 3 5 4 6 3 2 4;	mso-font-charset:1;	mso-generic-font-family:roman;	mso-font-at:other;	mso-font-pitch:variable;	mso-font-signature:0 0 0 0 0 0;}@font-face	{font-family:Calibri;	panose-1:2 15 5 2 2 2 4 3 2 4;	mso-font-charset:0;	mso-generic-font-family:swiss;	mso-font-pitch:variable;	mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definiti&#111;ns */ p.Ms&#111;normal, li.Ms&#111;normal, div.Ms&#111;normal	{mso-style-unhide:no;	mso-style-qat:yes;	mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-paginati&#111;n:widow-orphan;	font-size:9.0pt;	mso-bidi-font-size:10.0pt;	font-family:"Arial","sans-serif";	mso-fareast-font-family:Calibri;	mso-fareast-theme-font:minor-latin;}.MsoChpDefault	{mso-style-:ex-&#111;nly;	mso-default-props:yes;	font-size:9.0pt;	mso-ansi-font-size:9.0pt;	mso-bidi-font-size:10.0pt;	mso-ascii-font-family:Arial;	mso-fareast-font-family:Calibri;	mso-fareast-theme-font:minor-latin;	mso-hansi-font-family:Arial;	mso-bidi-font-family:Arial;}@page Secti&#111;n1	{size:8.5in 11.0in;	margin:1.0in 1.0in 1.0in 1.0in;	mso-er-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Secti&#111;n1	{page:Secti&#111;n1;}--><!--&#091;if gte mso 10&#093;><> /* Style Definitions */ table.MsoNormalTable	{mso-style-name:"Table Normal";	mso-tstyle-rowband-size:0;	mso-tstyle-colband-size:0;	mso-style-noshow:yes;	mso-style-priority:99;	mso-style-qformat:yes;	mso-style-parent:"";	mso-padding-alt:0in 5.4pt 0in 5.4pt;	mso-para-margin:0in;	mso-para-margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:11.0pt;	font-family:"Calibri","sans-serif";	mso-ascii-font-family:Calibri;	mso-ascii-theme-font:minor-latin;	mso-fareast-font-family:"Times New Roman";	mso-fareast-theme-font:minor-fareast;	mso-hansi-font-family:Calibri;	mso-hansi-theme-font:minor-latin;	mso-bidi-font-family:"Times New Roman";	mso-bidi-theme-font:minor-bidi;}<!&#091;endif&#093;--></a><span style="text-decorati&#111;n: underline;">Okay, frustration is now setting in.<br><br>Based upon the Docking Pane examples and posts in this forum, I have come up with the code below.&nbsp; I’ve left out the hundreds of lines of code that have been written and erased.<br><br>I’m trying to use a CDialog as a pane. I have placed normal Windows command buttons and static labels on this borderless dialog with the windows resource editor.<br><br>The code compiles and runs, but I get a BLANK pane. No buttons. Frankly, I don’t know what the blank thing is. The constructor does run for my dialog.<br><br><table width="99%"><tr><td><pre class="BBcode"><br><br>int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)<br>{<br>&nbsp;&nbsp;&nbsp; (other code removed for brevity)<br><br>&nbsp;&nbsp;&nbsp; mPaneManager.InstallDockingPanes(this);<br>&nbsp;&nbsp;&nbsp; mPaneManager.SetFloatingFrameCaption(_T("Panes"));<br>&nbsp;&nbsp;&nbsp; mPaneManager.SetStickyFloatingFrames(TRUE);<br>&nbsp;&nbsp;&nbsp; mPaneManager.SetThemedFloatingFrames(TRUE);<br><br>&nbsp;&nbsp;&nbsp; mPaneManager.SetAlphaDockingContext(TRUE);<br>&nbsp;&nbsp;&nbsp; mPaneManager.SetShowDockingContextStickers(TRUE);<br><br>&nbsp;&nbsp;&nbsp; mPaneManager.SetSideDockingMargin(CRect(2, 2, 2, 2));<br>&nbsp;&nbsp;&nbsp; mPaneManager.EnableSideDocking();<br>&nbsp;&nbsp;&nbsp; mPaneManager.EnableKeyboardNavigate();<br><br>&nbsp;&nbsp;&nbsp; CXTPDockingPane* pPane = mPaneManager.CreatePane( IDD_PANE_DLG, CRect( 0,0,200,500), xtpPaneDockLeft );<br>}<br><br>LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)<br>{<br>&nbsp;&nbsp;&nbsp; if (wParam == XTP_DPN_SHOWWINDOW)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // get a pointer to the docking pane being shown.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPDockingPane* pPane = (CXTPDockingPane*)lParam;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( ! pPane-&gt;IsValid() )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PaneDlg PDLG;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDLG.Create( IDD_PANE_DLG );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pPane-&gt;Attach( &amp;PDLG );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; return TRUE;<br>}<br><br></pre></td></tr></table><br><br>I've also tried "newing" the dialog and that also does not work. I've tried putting the pointer in global scope, etc., etc.<br><br>If I have to hand-create the resources in code and add them to the dialog in code I will be very disappointed. (That's an understatement.)<br><br>Smucker has already said Dialogs do not really work. I was hoping otherwise. Please tell me now if I am wasting my time with dialogs. I want to use dialogs so I can easily change the resources through the VC resource editor, and not have to hand code adding buttons and such.<br><br><br></span>]]>
   </description>
   <pubDate>Thu, 25 Sep 2008 17:15:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12258&amp;PID=41396&amp;title=no-resource-buttons-on-dialog-based-pane#41396</guid>
  </item> 
 </channel>
</rss>