<?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 : How do I create shortcut bar on dialog</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Shortcut Bar : How do I create shortcut bar on dialog]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 23:23:08 +0000</pubDate>
  <lastBuildDate>Fri, 29 Jun 2007 01:23:59 +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=7463</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[How do I create shortcut bar on dialog : Hi Oleg,  How can I do this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7463&amp;PID=24036&amp;title=how-do-i-create-shortcut-bar-on-dialog#24036</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3107">sher</a><br /><strong>Subject:</strong> 7463<br /><strong>Posted:</strong> 29 June 2007 at 1:23am<br /><br />Hi Oleg,<DIV>&nbsp;</DIV><DIV>How can I do this for a dynamically created control ?</DIV><DIV>&nbsp;</DIV><DIV>And, How can I move the icons on the control bar below on resizing of the </DIV><DIV>&nbsp;</DIV><DIV>dialog?</DIV><DIV>&nbsp;</DIV><DIV>Please explain.</DIV><DIV>&nbsp;</DIV><DIV>Thanx</DIV>]]>
   </description>
   <pubDate>Fri, 29 Jun 2007 01:23:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7463&amp;PID=24036&amp;title=how-do-i-create-shortcut-bar-on-dialog#24036</guid>
  </item> 
  <item>
   <title><![CDATA[How do I create shortcut bar on dialog : Hello,  Handle WM_SIZE message...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7463&amp;PID=24030&amp;title=how-do-i-create-shortcut-bar-on-dialog#24030</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7463<br /><strong>Posted:</strong> 29 June 2007 at 1:11am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Handle WM_SIZE message and move Shortcutbar to position you need.</DIV>]]>
   </description>
   <pubDate>Fri, 29 Jun 2007 01:11:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7463&amp;PID=24030&amp;title=how-do-i-create-shortcut-bar-on-dialog#24030</guid>
  </item> 
  <item>
   <title><![CDATA[How do I create shortcut bar on dialog : Thanx Oleg. The shortcut bar is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7463&amp;PID=24000&amp;title=how-do-i-create-shortcut-bar-on-dialog#24000</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3107">sher</a><br /><strong>Subject:</strong> 7463<br /><strong>Posted:</strong> 28 June 2007 at 1:43am<br /><br />Thanx Oleg. The shortcut bar is displayed on the dialog now.<DIV>&nbsp;</DIV><DIV>But when I resize the dialog, the behaviour of the shortcut bar is not the same as shown in the image (ie the icons move downwards).</DIV><DIV>&nbsp;</DIV><DIV>Where and how is this handled in the Sample workspace and could I handle it for a dialog using the 'right' position of the dialog (as in a CRect's 3rd argument)</DIV><DIV>&nbsp;</DIV><DIV>Basically I'm looking for the icons to be displayed below when the right edge of the dialog is dragged over the shortcut bar, leading to hiding the icons in the bar.</DIV><DIV>&nbsp;</DIV><DIV>Thanx.</DIV>]]>
   </description>
   <pubDate>Thu, 28 Jun 2007 01:43:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7463&amp;PID=24000&amp;title=how-do-i-create-shortcut-bar-on-dialog#24000</guid>
  </item> 
  <item>
   <title><![CDATA[How do I create shortcut bar on dialog : Hello,  yes, code looks right...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7463&amp;PID=23998&amp;title=how-do-i-create-shortcut-bar-on-dialog#23998</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7463<br /><strong>Posted:</strong> 28 June 2007 at 1:03am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>yes, code looks right - only move "CXTPShortcutBar&nbsp;&nbsp;cxtpsbShortcutBar" to members of dialog and make some visible rect in second parameter - CRect(0, 0, 50, 100)</DIV>]]>
   </description>
   <pubDate>Thu, 28 Jun 2007 01:03:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7463&amp;PID=23998&amp;title=how-do-i-create-shortcut-bar-on-dialog#23998</guid>
  </item> 
  <item>
   <title><![CDATA[How do I create shortcut bar on dialog : Hi Oleg,  I had tried the provided...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7463&amp;PID=23997&amp;title=how-do-i-create-shortcut-bar-on-dialog#23997</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3107">sher</a><br /><strong>Subject:</strong> 7463<br /><strong>Posted:</strong> 27 June 2007 at 11:33pm<br /><br />Hi Oleg,<DIV>&nbsp;</DIV><DIV>I had tried the provided sample code by simply&nbsp;creating a dialog and </DIV><DIV>placing the following code snippet (taken from XTPro 'ShortcutBar' </DIV><DIV>workspace) in the 'OnInitDialog'</DIV><DIV>&nbsp;</DIV><DIV>Please check the code and the corresponding comments (or questions)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;CXTPShortcutBar&nbsp;&nbsp;cxtpsbShortcutBar;</DIV><DIV>&nbsp;cxtpsbShortcutBar.Create(WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, CRect(50, 50, 50, 50),&nbsp;&nbsp;this, 32935);&nbsp; </DIV><DIV>/*What would be the likely values for the&nbsp;2nd, 3rd and 4th arguments in the above statement for a simple newly created dialog*/</DIV><DIV>&nbsp;cxtpsbShortcutBar.SetOwner(this);<BR>&nbsp;cxtpsbShortcutBar.GetToolTipContext()-&gt;SetStyle(xtpToolTipOffice);</DIV><DIV>&nbsp;XTPImageManager()-&gt;SetIcons(IDB_SHORTCUTS_SMALL, <BR>&nbsp;&nbsp;shortcuts, sizeof(shortcuts)/sizeof(UINT), CSize(16, 16));</DIV><DIV>&nbsp;CXTPShortcutBarItem* pItemMail = cxtpsbShortcutBar.AddItem ID_SHORTCUT_MAIL);<BR>&nbsp;cxtpsbShortcutBar.AddItem(ID_SHORTCUT_CALENDAR);<BR>&nbsp;cxtpsbShortcutBar.AddItem(ID_SHORTCUT_CONTACTS);<BR>&nbsp;cxtpsbShortcutBar.AddItem(ID_SHORTCUT_TASKS);<BR>&nbsp;cxtpsbShortcutBar.AddItem(ID_SHORTCUT_NOTES);<BR>&nbsp;cxtpsbShortcutBar.AddItem(ID_SHORTCUT_FOLDERS);<BR>&nbsp;cxtpsbShortcutBar.AddItem(ID_SHORTCUT_SHORTCUTS);<BR>&nbsp;cxtpsbShortcutBar.AddItem(ID_SHORTCUT_JOURNAL);</DIV><DIV>&nbsp;cxtpsbShortcutBar.SelectItem(pItemMail);<BR>&nbsp;cxtpsbShortcutBar.LoadState(_T("ShortcutBar"));</DIV><DIV>&nbsp;</DIV><DIV>I've also included the following code (as global array) in the same .cpp file </DIV><DIV>where the above code is placed :</DIV><DIV>&nbsp;</DIV><DIV>static UINT shortcuts&#091;&#093; =<BR>{<BR>&nbsp;ID_SHORTCUT_MAIL,<BR>&nbsp;ID_SHORTCUT_CALENDAR,<BR>&nbsp;ID_SHORTCUT_CONTACTS,<BR>&nbsp;ID_SHORTCUT_TASKS,<BR>&nbsp;ID_SHORTCUT_NOTES,<BR>&nbsp;ID_SHORTCUT_FOLDERS,<BR>&nbsp;ID_SHORTCUT_SHORTCUTS,<BR>&nbsp;ID_SHORTCUT_JOURNAL<BR>};</DIV><DIV>&nbsp;</DIV><DIV>I have imported 'IDB_SHORTCUTS_SMALL' bitmap and placed it under </DIV><DIV>'Bitmap' in the Resource view and have created the above identifiers in </DIV><DIV>the string table as in the sample workspace.</DIV><DIV>&nbsp;</DIV><DIV>Is there anything else which I've missed out ?</DIV><DIV>&nbsp;</DIV><DIV>I'm looking for an output where my dialog would launch with the said </DIV><DIV>bitmap in a specified position (say at the middle) and when resizing of the </DIV><DIV>dialog is done it would behave in the same way as shown in the image.</DIV><DIV>&nbsp;</DIV><DIV>Thanx for your effort.</DIV>]]>
   </description>
   <pubDate>Wed, 27 Jun 2007 23:33:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7463&amp;PID=23997&amp;title=how-do-i-create-shortcut-bar-on-dialog#23997</guid>
  </item> 
  <item>
   <title><![CDATA[How do I create shortcut bar on dialog : Hello,  You can crate in like...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7463&amp;PID=23988&amp;title=how-do-i-create-shortcut-bar-on-dialog#23988</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7463<br /><strong>Posted:</strong> 27 June 2007 at 2:54pm<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>You can crate in like our sample using Create method, or if you want to add it to resources - add custom control with window class = "XTPShortcutBar".</DIV>]]>
   </description>
   <pubDate>Wed, 27 Jun 2007 14:54:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7463&amp;PID=23988&amp;title=how-do-i-create-shortcut-bar-on-dialog#23988</guid>
  </item> 
  <item>
   <title><![CDATA[How do I create shortcut bar on dialog : Hi,  How can I create a shortcut...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7463&amp;PID=23982&amp;title=how-do-i-create-shortcut-bar-on-dialog#23982</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3107">sher</a><br /><strong>Subject:</strong> 7463<br /><strong>Posted:</strong> 27 June 2007 at 7:57am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>How can I create a shortcut bar (similar to the one shown in the image) on </DIV><DIV>&nbsp;</DIV><DIV>a dialog. Also I would want the shortcut bar to behave in the same way as </DIV><DIV>&nbsp;</DIV><DIV>shown.</DIV><DIV>&nbsp;</DIV><DIV>Please help.</DIV><DIV>&nbsp;</DIV><DIV>Thanks.</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20070627_075406_commandbarmenu.JPG" border="0">shown when resizing of the dialog is done.</DIV>]]>
   </description>
   <pubDate>Wed, 27 Jun 2007 07:57:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7463&amp;PID=23982&amp;title=how-do-i-create-shortcut-bar-on-dialog#23982</guid>
  </item> 
 </channel>
</rss>