<?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 : Command Bar on Dialog program...</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Command Bar on Dialog program...]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 03:45:50 +0000</pubDate>
  <lastBuildDate>Wed, 30 Apr 2008 08:20:04 +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=10416</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[Command Bar on Dialog program... : Hi, Please start from DialogSample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10416&amp;PID=34460&amp;title=command-bar-on-dialog-program#34460</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10416<br /><strong>Posted:</strong> 30 April 2008 at 8:20am<br /><br />Hi,<DIV>Please start from DialogSample in CommandBars folder.</DIV>]]>
   </description>
   <pubDate>Wed, 30 Apr 2008 08:20:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10416&amp;PID=34460&amp;title=command-bar-on-dialog-program#34460</guid>
  </item> 
  <item>
   <title><![CDATA[Command Bar on Dialog program... : Hi, I need display CommandBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10416&amp;PID=34454&amp;title=command-bar-on-dialog-program#34454</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3721">rokky05</a><br /><strong>Subject:</strong> 10416<br /><strong>Posted:</strong> 30 April 2008 at 6:53am<br /><br />Hi, I need display CommandBar with ComboBox on Dialog program (not MDI), you can prompt how to do it?<DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV>I do so: (in function OnInitDialog())<DIV>&nbsp;</DIV><DIV><FONT color=#008000 size=2><P>// Get a pointer to the command bars object.</P></FONT><FONT size=2><P></FONT><FONT color=#030003 size=2>CXTPCommandBars</FONT><FONT color=#800080 size=2>*</FONT><FONT size=2> </FONT><FONT color=#030003 size=2>pCommandBars</FONT><FONT size=2> </FONT><FONT color=#800080 size=2>=</FONT><FONT size=2> </FONT><FONT color=#030003 size=2>NULL</FONT><FONT color=#800080 size=2>; // here mast be pointer on command bars object but dialog does not have command bar...</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT color=#800080 size=2>(</FONT><FONT color=#030003 size=2>pCommandBars</FONT><FONT size=2> </FONT><FONT color=#800080 size=2>==</FONT><FONT size=2> </FONT><FONT color=#030003 size=2>NULL</FONT><FONT color=#800080 size=2>)</P></FONT><FONT size=2><P></FONT><FONT color=#800080 size=2>{</P></FONT><FONT size=2><P></FONT><FONT color=#030003 size=2>TRACE0</FONT><FONT color=#800080 size=2>(</FONT><FONT color=#a31515 size=2>"Failed to create command bars object.\n"</FONT><FONT color=#800080 size=2>);</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> </FONT><FONT color=#800080 size=2>-</FONT><FONT color=#800000 size=2>1</FONT><FONT color=#800080 size=2>;</FONT><FONT size=2> </FONT><FONT color=#008000 size=2>// fail to create</P></FONT><FONT size=2><P></FONT><FONT color=#800080 size=2>}</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>// Set Office 2003 Theme</P></FONT><FONT size=2><P></FONT><FONT color=#030003 size=2>CXTPPaintManager</FONT><FONT color=#800080 size=2>::</FONT><FONT color=#030003 size=2>SetTheme</FONT><FONT color=#800080 size=2>(</FONT><FONT color=#030003 size=2>xtpThemeOffice2003</FONT><FONT color=#800080 size=2>);</P></FONT><FONT size=2><P></P><P></FONT><FONT color=#030003 size=2>CXTPToolBar</FONT><FONT color=#800080 size=2>*</FONT><FONT size=2> </FONT><FONT color=#030003 size=2>pToolBarCombo</FONT><FONT size=2> </FONT><FONT color=#800080 size=2>=</FONT><FONT size=2> </FONT><FONT color=#030003 size=2>pCommandBars</FONT><FONT color=#800080 size=2>-&gt;</FONT><FONT color=#030003 size=2>Add</FONT><FONT color=#800080 size=2>(</FONT><FONT color=#030003 size=2>_T</FONT><FONT color=#800080 size=2>(</FONT><FONT color=#a31515 size=2>"Combo"</FONT><FONT color=#800080 size=2>),</FONT><FONT size=2> </FONT><FONT color=#030003 size=2>xtpBarTop</FONT><FONT color=#800080 size=2>);</P></FONT><FONT size=2><P></FONT><FONT color=#030003 size=2>pToolBarCombo</FONT><FONT color=#800080 size=2>-&gt;</FONT><FONT color=#030003 size=2>SetBarID</FONT><FONT color=#800080 size=2>(</FONT><FONT color=#030003 size=2>IDR_MAINFRAME</FONT><FONT size=2> </FONT><FONT color=#800080 size=2>+</FONT><FONT size=2> </FONT><FONT color=#800000 size=2>3</FONT><FONT color=#800080 size=2>);</P></FONT><FONT size=2><P></FONT><FONT color=#030003 size=2>pToolBarCombo</FONT><FONT color=#800080 size=2>-&gt;</FONT><FONT color=#030003 size=2>GetControls</FONT><FONT color=#800080 size=2>()-&gt;</FONT><FONT color=#030003 size=2>Add</FONT><FONT color=#800080 size=2>(</FONT><FONT color=#030003 size=2>xtpControlLabel</FONT><FONT color=#800080 size=2>,</FONT><FONT size=2> </FONT><FONT color=#800000 size=2>0</FONT><FONT color=#800080 size=2>)-&gt;</FONT><FONT color=#030003 size=2>SetCaption</FONT><FONT color=#800080 size=2>(</FONT><FONT color=#030003 size=2>_T</FONT><FONT color=#800080 size=2>(</FONT><FONT color=#a31515 size=2>"My ComboBox:"</FONT><FONT color=#800080 size=2>));</P></FONT><FONT size=2><P></FONT><FONT color=#030003 size=2>CXTPControlComboBox</FONT><FONT color=#800080 size=2>*</FONT><FONT size=2> </FONT><FONT color=#030003 size=2>pControlCombo</FONT><FONT size=2> </FONT><FONT color=#800080 size=2>=</FONT><FONT size=2> </FONT><FONT color=#800080 size=2>(</FONT><FONT color=#030003 size=2>CXTPControlComboBox</FONT><FONT color=#800080 size=2>*)</FONT><FONT color=#030003 size=2>pToolBarCombo</FONT><FONT color=#800080 size=2>-&gt;</FONT><FONT color=#030003 size=2>GetControls</FONT><FONT color=#800080 size=2>()-&gt;</FONT><FONT color=#030003 size=2>Add</FONT><FONT color=#800080 size=2>(</FONT><FONT color=#030003 size=2>xtpControlComboBox</FONT><FONT color=#800080 size=2>,</FONT><FONT size=2> </FONT><FONT color=#030003 size=2>ID_FILE_NEW</FONT><FONT color=#800080 size=2>);</P></FONT><FONT size=2><P></FONT><FONT color=#030003 size=2>pControlCombo</FONT><FONT color=#800080 size=2>-&gt;</FONT><FONT color=#030003 size=2>SetDropDownListStyle</FONT><FONT color=#800080 size=2>();</P></FONT><FONT size=2><P></FONT><FONT color=#030003 size=2>pControlCombo</FONT><FONT color=#800080 size=2>-&gt;</FONT><FONT color=#030003 size=2>SetEditText</FONT><FONT color=#800080 size=2>(</FONT><FONT color=#030003 size=2>L</FONT><FONT color=#a31515 size=2>"My ComboBox"</FONT><FONT color=#800080 size=2>);</P></FONT><FONT size=2><P></FONT><FONT color=#030003 size=2>pControlCombo</FONT><FONT color=#800080 size=2>-&gt;</FONT><FONT color=#030003 size=2>AddString</FONT><FONT color=#800080 size=2>(</FONT><FONT color=#030003 size=2>L</FONT><FONT color=#a31515 size=2>"First"</FONT><FONT color=#800080 size=2>);</P></FONT><FONT size=2><P></FONT><FONT color=#030003 size=2>pControlCombo</FONT><FONT color=#800080 size=2>-&gt;</FONT><FONT color=#030003 size=2>AddString</FONT><FONT color=#800080 size=2>(</FONT><FONT color=#030003 size=2>L</FONT><FONT color=#a31515 size=2>"Second"</FONT><FONT color=#800080 size=2>);</P><DIV></DIV></FONT></DIV>]]>
   </description>
   <pubDate>Wed, 30 Apr 2008 06:53:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10416&amp;PID=34454&amp;title=command-bar-on-dialog-program#34454</guid>
  </item> 
 </channel>
</rss>