<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Combobox on toolbar' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Combobox on toolbar' posted on the 'Windows programming' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 23:17:25 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 23:17:25 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Combobox on toolbar</title>
      <link>http://www.programmersheaven.com/mb/windows/217765/217765/combobox-on-toolbar/</link>
      <description>I want to create a toolbar with a combobox on it. But in MSDN there's only a TBSTYLE_DROPDOWN button style. I suppose that it could be done with owner drawn button, but I didn't found out how can I create it. &lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: Blue;"&gt;Oxygenium&lt;/span&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/217765/217765/combobox-on-toolbar/</guid>
      <pubDate>Mon, 13 Oct 2003 09:31:13 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: Combobox on toolbar</title>
      <link>http://www.programmersheaven.com/mb/windows/217765/218221/re-combobox-on-toolbar/#218221</link>
      <description>Why don't you use a rebar that contains the combobox and the toolbar? It's an easiest way to do it (owner drawn buttons give lots of problems...).&lt;br /&gt;
&lt;br /&gt;
nICO&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;&lt;br /&gt;
&lt;em&gt;How beautiful, if Sorrow had not made sorrow more beautiful than Beauty itself.&lt;/em&gt;&lt;br /&gt;
JOHN KEATS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/217765/218221/re-combobox-on-toolbar/#218221</guid>
      <pubDate>Wed, 15 Oct 2003 11:43:58 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: Combobox on toolbar</title>
      <link>http://www.programmersheaven.com/mb/windows/217765/218393/re-combobox-on-toolbar/#218393</link>
      <description>: Why don't you use a rebar that contains the combobox and the toolbar? It's an easiest way to do it (owner drawn buttons give lots of problems...).&lt;br /&gt;
: &lt;br /&gt;
: nICO&lt;br /&gt;
: &lt;br /&gt;
: &lt;hr /&gt;&lt;br /&gt;
: &lt;em&gt;How beautiful, if Sorrow had not made sorrow more beautiful than Beauty itself.&lt;/em&gt;&lt;br /&gt;
: JOHN KEATS&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
Yeah... I decided to do so too. But I'm having problems with creating theese bars in rebar. I'm doing it just like in the example in the documentation, but it doesn't work!&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
/*
	fce:						createToolbars

	popis:						Vytvori rebar s toolbarem a comboboxem
*/
HWND createToolbars (HWND hWnd) 
{
	//vytvorim rebar
	HWND rebar = CreateWindowEx (
		WS_EX_TOOLWINDOW,
		TOOLBARCLASSNAME,
		NULL,
		WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN
			| RBS_VARHEIGHT,
		0, 0, 0, 0,
		hWnd,
		(HMENU)IDC_REBAR, 
		hInstance, 
		NULL
	);

	REBARINFO ri;
	ri.cbSize	= sizeof (ri);
	ri.fMask	= 0;
	ri.himl		= NULL;

	SendMessage (rebar, RB_SETBARINFO, 0, (LPARAM)&amp;amp;ri);

	//pridam toolbar a combobox
	REBARBANDINFO rbi;	

	rbi.cbSize	= sizeof (rbi);
	rbi.fMask	= RBBIM_STYLE | RBBIM_CHILD;

	//toolbar
	rbi.hwndChild	= createTopToolbar (rebar);
	rbi.cyMaxChild	= 500;	
	rbi.cyMinChild	= 100;
	rbi.cyChild	= 200;
	rbi.cx		= 200;

	if (!SendMessage (rebar, RB_INSERTBAND, (WPARAM)-1, (LPARAM)&amp;amp;rbi))
		MessageBeep (0);
	return rebar;
}
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
I don't have even an idea what's wrong (of course that you'll look at it and see a huge mistake :). At least I hope so...).&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: Blue;"&gt;Oxygenium&lt;/span&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/217765/218393/re-combobox-on-toolbar/#218393</guid>
      <pubDate>Thu, 16 Oct 2003 09:17:19 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: Combobox on toolbar</title>
      <link>http://www.programmersheaven.com/mb/windows/217765/218418/re-combobox-on-toolbar/#218418</link>
      <description>The code seems right, but I doubt you could create a rebar if you specify TOOLBARCLASSNAME as the window class... ;) REBARCLASSNAME should work!&lt;br /&gt;
&lt;br /&gt;
nICO&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;&lt;br /&gt;
&lt;em&gt;How beautiful, if Sorrow had not made sorrow more beautiful than Beauty itself.&lt;/em&gt;&lt;br /&gt;
JOHN KEATS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/217765/218418/re-combobox-on-toolbar/#218418</guid>
      <pubDate>Thu, 16 Oct 2003 11:14:35 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: Combobox on toolbar</title>
      <link>http://www.programmersheaven.com/mb/windows/217765/218573/re-combobox-on-toolbar/#218573</link>
      <description>: The code seems right, but I doubt you could create a rebar if you specify TOOLBARCLASSNAME as the window class... ;) REBARCLASSNAME should work!&lt;br /&gt;
: &lt;br /&gt;
: nICO&lt;br /&gt;
: &lt;br /&gt;
: &lt;hr /&gt;&lt;br /&gt;
: &lt;em&gt;How beautiful, if Sorrow had not made sorrow more beautiful than Beauty itself.&lt;/em&gt;&lt;br /&gt;
: JOHN KEATS&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
Oopps.. o_O I had to be very tired yesterday... &lt;img src="http://www.programmersheaven.com/images/Community/smile.gif" width="15" height="15" alt="" /&gt; Thanks...&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: Blue;"&gt;Oxygenium&lt;/span&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/217765/218573/re-combobox-on-toolbar/#218573</guid>
      <pubDate>Fri, 17 Oct 2003 08:57:48 -0700</pubDate>
      <category>Windows programming</category>
    </item>
  </channel>
</rss>