<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Toolbar verschieben]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich möchte eine Toolbar an einer Position (x,y) mit der Ausmaßen (l,h) haben</p>
<p>Ich habe es mit</p>
<pre><code>CreateWindowEx(  WS_EX_TOOLWINDOW, 
			TOOLBARCLASSNAME, 
			(LPSTR) NULL, 
			WS_CHILD |WS_VISIBLE|WS_BORDER, 
			10, 330, 600, 22, 
			hWnd, 
			(HMENU) ID_TOOLBAR, 
			((LPCREATESTRUCT)lParam)-&gt;hInstance, 
			NULL 
			);
</code></pre>
<p>versucht, aber es erscheint immer noch bei (0,0)<br />
warum geht funktioniert das nicht ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/113755/toolbar-verschieben</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 16:12:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/113755.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Jun 2005 17:35:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Toolbar verschieben on Sun, 26 Jun 2005 17:35:58 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich möchte eine Toolbar an einer Position (x,y) mit der Ausmaßen (l,h) haben</p>
<p>Ich habe es mit</p>
<pre><code>CreateWindowEx(  WS_EX_TOOLWINDOW, 
			TOOLBARCLASSNAME, 
			(LPSTR) NULL, 
			WS_CHILD |WS_VISIBLE|WS_BORDER, 
			10, 330, 600, 22, 
			hWnd, 
			(HMENU) ID_TOOLBAR, 
			((LPCREATESTRUCT)lParam)-&gt;hInstance, 
			NULL 
			);
</code></pre>
<p>versucht, aber es erscheint immer noch bei (0,0)<br />
warum geht funktioniert das nicht ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/817636</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/817636</guid><dc:creator><![CDATA[linus]]></dc:creator><pubDate>Sun, 26 Jun 2005 17:35:58 GMT</pubDate></item><item><title><![CDATA[Reply to Toolbar verschieben on Sun, 26 Jun 2005 17:41:51 GMT]]></title><description><![CDATA[<p>Afaik wird eine Toolbar immer oben links beim Parent-Fenster erstellt. Mach dir einfach ein rahmenloses Fenster, welches du dort platzierst, wo die Toolbar hin soll, und als Child dann die Toolbar. Dann kannst du mittels Verschieben des Parentfensters auch die neue Position on-the-fly ändern. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/817646</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/817646</guid><dc:creator><![CDATA[Ynnus]]></dc:creator><pubDate>Sun, 26 Jun 2005 17:41:51 GMT</pubDate></item><item><title><![CDATA[Reply to Toolbar verschieben on Sun, 26 Jun 2005 17:50:57 GMT]]></title><description><![CDATA[<p>Verschiebt dein Parent-Window eventuell das Fenster immer in WM_SIZE?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/817655</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/817655</guid><dc:creator><![CDATA[?????????????]]></dc:creator><pubDate>Sun, 26 Jun 2005 17:50:57 GMT</pubDate></item><item><title><![CDATA[Reply to Toolbar verschieben on Sun, 26 Jun 2005 19:36:35 GMT]]></title><description><![CDATA[<p>WM_SIZE ? Nein</p>
<p>Ich glaub ich lass di da wo sie ist <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/817724</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/817724</guid><dc:creator><![CDATA[linus]]></dc:creator><pubDate>Sun, 26 Jun 2005 19:36:35 GMT</pubDate></item><item><title><![CDATA[Reply to Toolbar verschieben on Sun, 26 Jun 2005 19:38:11 GMT]]></title><description><![CDATA[<p>kannst du den ganzen code posten?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/817725</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/817725</guid><dc:creator><![CDATA[will haben]]></dc:creator><pubDate>Sun, 26 Jun 2005 19:38:11 GMT</pubDate></item><item><title><![CDATA[Reply to Toolbar verschieben on Sun, 26 Jun 2005 19:58:16 GMT]]></title><description><![CDATA[<p>habs aus den faq entnommen:</p>
<pre><code>// Toolbar einrichten
HWND Tool_create( HINSTANCE instance, HWND hwnd, int style ) 
{ 
	InitCommonControls(); 

	//Create window for toolbar, parent is current window 
	HWND hwnd_toolbar = CreateWindowEx(  0, 
		TOOLBARCLASSNAME, 
		(LPSTR) NULL, 
		WS_CHILD | style, 
		0, 200, 0, 0, 
		hwnd, 
		(HMENU) ID_TOOLBAR, 
		instance, 
		NULL 
		); 
	if (!hwnd)      //Continue if creating toolbar was successfull 
	{ 
		return NULL; 
	} 

	//Add Standard-Buttons to toolbar's Image-List 
	TBADDBITMAP bitid; 
	bitid.hInst = HINST_COMMCTRL; 
	bitid.nID = IDB_STD_SMALL_COLOR; 
	SendMessage(hwnd_toolbar, TB_ADDBITMAP, 1, (long)&amp;bitid); 

	SendMessage(hwnd_toolbar, TB_BUTTONSTRUCTSIZE, (WPARAM) sizeof(TBBUTTON), 0);       //Backward compatiblity 
	ShowWindow(hwnd_toolbar, SW_SHOW);                                                  //Show Toolbar! 
	return hwnd_toolbar; 
}
</code></pre>
<p>und dann herumexperimentiert.<br />
aufgerufen wird die Funktion :</p>
<pre><code>hwndCtrl[ID_TOOLBAR] =Tool_create(((LPCREATESTRUCT)lParam)-&gt;hInstance,hWnd,WS_VISIBLE);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/817734</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/817734</guid><dc:creator><![CDATA[linus]]></dc:creator><pubDate>Sun, 26 Jun 2005 19:58:16 GMT</pubDate></item><item><title><![CDATA[Reply to Toolbar verschieben on Sun, 26 Jun 2005 20:58:51 GMT]]></title><description><![CDATA[<p>Ich hab bisher auch keine andere Möglichkeit gefunden, als den Weg den Ynnus beschrieben hat <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/817762</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/817762</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Sun, 26 Jun 2005 20:58:51 GMT</pubDate></item><item><title><![CDATA[Reply to Toolbar verschieben on Sun, 26 Jun 2005 21:03:42 GMT]]></title><description><![CDATA[<p>Und wie kann die Toolbar das machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/817769</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/817769</guid><dc:creator><![CDATA[gute Frage]]></dc:creator><pubDate>Sun, 26 Jun 2005 21:03:42 GMT</pubDate></item><item><title><![CDATA[Reply to Toolbar verschieben on Sun, 26 Jun 2005 21:23:23 GMT]]></title><description><![CDATA[<blockquote>
<p>An application sends the TB_AUTOSIZE message after causing the size of a toolbar to change either by setting the button or bitmap size or by adding strings for the first time.</p>
</blockquote>
<p>Also ich würde am Ende der Funktion nochmal MoveWindow aufrufen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/817778</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/817778</guid><dc:creator><![CDATA[vielleicht gute Antwort]]></dc:creator><pubDate>Sun, 26 Jun 2005 21:23:23 GMT</pubDate></item><item><title><![CDATA[Reply to Toolbar verschieben on Mon, 27 Jun 2005 19:17:53 GMT]]></title><description><![CDATA[<p>ich hab versucht nachdem ich alle Button zugefügt habe mit MoveWindow()<br />
zu verschieben . Das Ding steht immer noch oben in der Ecke <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/818530</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/818530</guid><dc:creator><![CDATA[linus]]></dc:creator><pubDate>Mon, 27 Jun 2005 19:17:53 GMT</pubDate></item><item><title><![CDATA[Reply to Toolbar verschieben on Mon, 27 Jun 2005 19:21:50 GMT]]></title><description><![CDATA[<p>kannst du den ganzen code schreiben, damit ich mal compilieren und ausprobieren kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/818532</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/818532</guid><dc:creator><![CDATA[vielleicht gute Antwort]]></dc:creator><pubDate>Mon, 27 Jun 2005 19:21:50 GMT</pubDate></item><item><title><![CDATA[Reply to Toolbar verschieben on Mon, 27 Jun 2005 19:51:03 GMT]]></title><description><![CDATA[<p>hmm, ist schon ein größeres Projekt . mal schauen ob ich es abspecken kann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/818560</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/818560</guid><dc:creator><![CDATA[linus]]></dc:creator><pubDate>Mon, 27 Jun 2005 19:51:03 GMT</pubDate></item><item><title><![CDATA[Reply to Toolbar verschieben on Mon, 27 Jun 2005 21:09:02 GMT]]></title><description><![CDATA[<p>ok dann bau ich mir besser ein eigenes beispiel und teste ein bisschen rum.</p>
<p>könnte sein das die toolbar WM_SIZE abfängt und sein eigenes dinge durchzieht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/818618</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/818618</guid><dc:creator><![CDATA[vielleicht gute Antwort]]></dc:creator><pubDate>Mon, 27 Jun 2005 21:09:02 GMT</pubDate></item><item><title><![CDATA[Reply to Toolbar verschieben on Mon, 27 Jun 2005 21:12:47 GMT]]></title><description><![CDATA[<p>ah hier stehts:</p>
<blockquote>
<p>Also, the toolbar window procedure automatically adjusts the size of the toolbar whenever it receives a WM_SIZE or TB_AUTOSIZE message.</p>
</blockquote>
<p>also wenn man MoveWindow aufruft kriegt die Toolbar die WM_SIZE nachricht und dann passt die toolbar sich dem parent fenster an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/818621</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/818621</guid><dc:creator><![CDATA[vga]]></dc:creator><pubDate>Mon, 27 Jun 2005 21:12:47 GMT</pubDate></item></channel></rss>