<?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 : Toolbar with 256 colors</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Toolbar with 256 colors]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 11:32:04 +0000</pubDate>
  <lastBuildDate>Mon, 22 Jan 2007 04:47:14 +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=6159</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[Toolbar with 256 colors : Thanks Martin!  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19591&amp;title=toolbar-with-256-colors#19591</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2689">aimslife</a><br /><strong>Subject:</strong> 6159<br /><strong>Posted:</strong> 22 January 2007 at 4:47am<br /><br />Thanks Martin!]]>
   </description>
   <pubDate>Mon, 22 Jan 2007 04:47:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19591&amp;title=toolbar-with-256-colors#19591</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar with 256 colors : Hi aims;  take a look at   ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19589&amp;title=toolbar-with-256-colors#19589</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 6159<br /><strong>Posted:</strong> 22 January 2007 at 4:38am<br /><br />Hi aims;<DIV>&nbsp;</DIV><DIV>take a look at </DIV><DIV>&nbsp;</DIV><DIV>GetCommandBars()-&gt;GetImageManager()-&gt;SetMaskColor(...)</DIV>]]>
   </description>
   <pubDate>Mon, 22 Jan 2007 04:38:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19589&amp;title=toolbar-with-256-colors#19589</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar with 256 colors : Hi Martin,Thanks Martin, its help...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19587&amp;title=toolbar-with-256-colors#19587</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2689">aimslife</a><br /><strong>Subject:</strong> 6159<br /><strong>Posted:</strong> 22 January 2007 at 4:23am<br /><br />Hi Martin,<br><br>Thanks Martin, its help me a lot. i wrote code in .rc file and define resource Id's in resource.h file and it's successfully working. my bitmap image have white back ground color, can you guide me how to set image Mask colors for toolbar back ground?]]>
   </description>
   <pubDate>Mon, 22 Jan 2007 04:23:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19587&amp;title=toolbar-with-256-colors#19587</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar with 256 colors : Hi amis,  take a look at MSDN....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19585&amp;title=toolbar-with-256-colors#19585</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 6159<br /><strong>Posted:</strong> 22 January 2007 at 3:54am<br /><br />Hi amis,<DIV>&nbsp;</DIV><DIV>take a look at MSDN. Search for resource ID assignment - there are several articles about reserved IDs and which ranges are best for what kind of resources.</DIV><DIV>In any case, in MFCs default, command IDs (buttons, menu commands, ...) start with values of 32768; strings start with 100 and also control IDs start with 100. You can select whatever number you like as long as the number for menu, command&nbsp;and string resources is unique and for controls it must be unique within the scope of the control.</DIV><DIV>&nbsp;</DIV><DIV>The code sequence you mentioned is for the internal IDE resource editor to assign new numbers to resources. For example, the next string you insert with the IDE resource editor gets ID 134.</DIV><DIV>&nbsp;</DIV><DIV>I for myself do not use the internal editor, since its very rigid and inflexible. For example try to group string resources to keep them together view by view - ist aimless!</DIV>]]>
   </description>
   <pubDate>Mon, 22 Jan 2007 03:54:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19585&amp;title=toolbar-with-256-colors#19585</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar with 256 colors :   I think it would be better...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19583&amp;title=toolbar-with-256-colors#19583</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2689">aimslife</a><br /><strong>Subject:</strong> 6159<br /><strong>Posted:</strong> 22 January 2007 at 2:32am<br /><br /><p ="Ms&#111;normal"><span style="font-size: 11pt; font-family: Arial;">I think it would be better for me to write resource code in.rc file to make toolbar and defining macros for them also. When ever I feel tochange some thing in toolbar then I will use mspaint, I think this would betterfor me. But I have no idea about assigning resource ID to any thing; any onecan help me to refer some article to learn about it. How to assign resource ID?And what kind of resource ranges to be use for which resource? I have seenfollowing thing in resource.h file but I was not able to get any article aboutthem, I think these will be help me out in assigning resource ID which I feelsafter read comment, am I right?<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 11pt; font-family: Arial;"><o:p></o:p>// Next default values for new objects<br>//<br>#ifdef APSTUDIO_INVOKED<br>#ifndef APSTUDIO_READONLY_SYMBOLS<br>#define _APS_NEXT_RESOURCE_VALUE<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>134<br>#define _APS_NEXT_COMMAND_VALUE<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>32778<br>#define _APS_NEXT_CONTROL_VALUE<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>1000<br>#define _APS_NEXT_SYMED_VALUE<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>101<br>#endif<br>#endif<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 11pt; font-family: Arial;">I need article to help me in making toolbar using writingcode in .rc file and assigning resource ID by own and do every thing by writingsome thing.<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 11pt; font-family: Arial;">Regards,<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 11pt; font-family: Arial;">-aims<o:p></o:p></span></p>]]>
   </description>
   <pubDate>Mon, 22 Jan 2007 02:32:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19583&amp;title=toolbar-with-256-colors#19583</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar with 256 colors : Hi Martin,i like your idea and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19512&amp;title=toolbar-with-256-colors#19512</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2689">aimslife</a><br /><strong>Subject:</strong> 6159<br /><strong>Posted:</strong> 19 January 2007 at 11:00am<br /><br />Hi Martin,<br><br>i like your idea and this way i will explore .rc file as well and after try it, i will reply you. here today is off now almost, i will do about on Sunday or Monday. But Martin, i have one more question about writing resource information in .rc file, how you define Resource ID value?<br><br>for example i write following statement in .rc file<br><br>IDR_MAINFRAME TOOLBAR&nbsp; 16, 15<br>BEGIN<br>&nbsp;&nbsp;&nbsp; BUTTON&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IDD_NEW<br>&nbsp;&nbsp;&nbsp; BUTTON&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IDD_OPEN<br>&nbsp;&nbsp;&nbsp; BUTTON&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IDD_SAVE<br>END<br><br>how i can define IDD_NEW value in resources.h? and are we need to define above lines for define toolbar in .rc file or we need to do some thing else more?<br>]]>
   </description>
   <pubDate>Fri, 19 Jan 2007 11:00:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19512&amp;title=toolbar-with-256-colors#19512</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar with 256 colors : Hi Aims; Thats why I keep a copy...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19508&amp;title=toolbar-with-256-colors#19508</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 6159<br /><strong>Posted:</strong> 19 January 2007 at 10:16am<br /><br /><P>Hi Aims;</P><P>Thats why I keep a copy of the original bitmap. Whenever I want to change any aspect of the toolbar (add or remove buttons, change IDs, ...) I first exchange the original and the hires bitmap. In this case the IDE is able to open and edit the toolbar. In any case I believe that its necessary to save and close any open resource views before replacing the bitmaps - I haven't tested this.<BR>I for myself do not use the IDE resource editor to manage toolbars, I'm doing all my changes by plain text editing of the apps .rc file(s).</P><P>I hope this helps</P>]]>
   </description>
   <pubDate>Fri, 19 Jan 2007 10:16:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19508&amp;title=toolbar-with-256-colors#19508</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar with 256 colors : Hi Martin,but how i can assign...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19507&amp;title=toolbar-with-256-colors#19507</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2689">aimslife</a><br /><strong>Subject:</strong> 6159<br /><strong>Posted:</strong> 19 January 2007 at 10:10am<br /><br />Hi Martin,<br><br>but how i can assign Button Resource ID's? after replace image it will not open in development ide.<br><br><br>]]>
   </description>
   <pubDate>Fri, 19 Jan 2007 10:10:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19507&amp;title=toolbar-with-256-colors#19507</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar with 256 colors : Hi Aims,  I do it this way: 1....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19496&amp;title=toolbar-with-256-colors#19496</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 6159<br /><strong>Posted:</strong> 19 January 2007 at 4:05am<br /><br />Hi Aims,<DIV>&nbsp;</DIV><DIV>I do it this way:</DIV><DIV>1. Create the toolbar the usual way within the resource editor</DIV><DIV>2. After finishing my work I replace the bitmap file used by the toolbar by my 256bit and/or true color bitmap file - after that the toolbar is no longer modifyable by the resource editor, so I keep a copy of the original bitmap to exchange it with the hires bitmap file whenever I have to apply any changes to the toolbar.</DIV><DIV>&nbsp;</DIV><DIV>Another way could be creating the toolbar resource by directly editing the .rc file.</DIV>]]>
   </description>
   <pubDate>Fri, 19 Jan 2007 04:05:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19496&amp;title=toolbar-with-256-colors#19496</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar with 256 colors :   I am beginner Developer of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19494&amp;title=toolbar-with-256-colors#19494</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2689">aimslife</a><br /><strong>Subject:</strong> 6159<br /><strong>Posted:</strong> 19 January 2007 at 2:12am<br /><br /><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">I am beginner <a name="msg_08c53f554efb5497"></a>Developer of ToolkitProEval using with vs2k5. Iam developing SDI application using vs2k5 with ToolkitProEval. I have Bitmapstrip for toolbar icon with 256 colors but I am not able to add bitmap strip asa toolbar in project resources. I found the way to make toolbar using bitmapstrip in Ordinary MFC application and code is following which is working.<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">NOTE: m_wndToolBar(Object of </span><span style="font-size: 10pt; font-family: Arial;">CToolBar)</span><span style="font-size: 10pt; font-family: Arial;"><o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">if( !m_wndToolBar.CreateEx( this ) )<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">{<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>TRACE0( "Failed to createtoolbar\n" );<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>return -1;<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>// fail to create<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">}<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">//------------LoadToolBar - START------------<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">CImageList img;<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">CBitmap bm;<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.GetToolBarCtrl().SetButtonWidth(50,150);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.GetToolBarCtrl().SetExtendedStyle(TBSTYLE_EX_DRAWDDARROWS);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">HBITMAP hbm =(HBITMAP)::LoadImage( AfxGetInstanceHandle( ),<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>MAKEINTRESOURCE( IDB_HOTTOOLBAR ),<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>IMAGE_BITMAP,<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>0, 0,<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>LR_CREATEDIBSECTION | LR_LOADMAP3DCOLORS );<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><span style="">&nbsp; </span><o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">bm.Attach(hbm);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">img.Create( 25, 25,ILC_COLOR8 | ILC_MASK, 4, 4 );<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">img.Add( &amp;bm,RGB(255, 255, 255) );<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.GetToolBarCtrl().SetHotImageList(&amp;img);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">img.Detach( );<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">bm.Detach( );<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">img.Create(IDB_COLDTOOLBAR,25, 0, RGB(255, 255, 255));<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.GetToolBarCtrl().SetImageList(&amp;img);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">img.Detach();<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.ModifyStyle(0,TBSTYLE_FLAT );<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.SetButtons(NULL,8);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.SetButtonInfo(0,ID_BACK_LEVEL,<span style="">&nbsp;&nbsp;&nbsp;&nbsp; </span>TBSTYLE_BUTTON, 0);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.SetButtonInfo(1,ID_NEXT_LEVEL,<span style="">&nbsp;&nbsp;&nbsp;&nbsp; </span>TBSTYLE_BUTTON, 1);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.SetButtonInfo(2,ID_HOME,<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>TBSTYLE_BUTTON, 2);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.SetButtonInfo(3,IDD_NEW_MSG,<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>TBSTYLE_BUTTON, 3);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.SetButtonInfo(4,ID_VIEW_LARGEICON, TBSTYLE_BUTTON | TBSTYLE_CHECK, 4);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.SetButtonInfo(5,ID_VIEW_SMALLICON, TBSTYLE_BUTTON | TBSTYLE_CHECK, 5);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.SetButtonInfo(6,ID_VIEW_LIST,<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>TBSTYLE_BUTTON |TBSTYLE_CHECK, 6);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.SetButtonInfo(7,ID_VIEW_DETAILS,<span style="">&nbsp;&nbsp; </span>TBSTYLE_BUTTON |TBSTYLE_CHECK, 7);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">CRect rectToolBar;<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">// set up toolbarbutton sizes<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.GetItemRect(0,&amp;rectToolBar);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">CSize size =rectToolBar.Size();<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.SetSizes(size,CSize(25,25));<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() |<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>CBRS_TOOLTIPS |CBRS_FLYBY | CBRS_SIZE_FIXED);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">//------------LoadToolBar - END--------------<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></p><p ="Ms&#111;normal"><span style="font-size: 10pt; font-family: Arial;">I have seen Toolkitsample programs and all of them made toolbar with the use of toolbar resource, Ihave no idea about how to add bitmap strip with 256 colors as toolbar inproject resource. Can you please help me to add bitmap strip with 256 colors asproject resource? Or tell me some other way to make toolbar with all Toolkit styleand in look and feel supports.<o:p></o:p></span></p>regards,<br><br>-aims<br>.<br>]]>
   </description>
   <pubDate>Fri, 19 Jan 2007 02:12:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6159&amp;PID=19494&amp;title=toolbar-with-256-colors#19494</guid>
  </item> 
 </channel>
</rss>