<?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[Adressleiste will nicht]]></title><description><![CDATA[<p>hallo, weiss jemand Rat ? Möchte eine Adressleiste wie im Browser. Habe dazu nachfolgenden Code benutzt, aber das Adressfeld ist nicht editierbar. D.h. wenn man die Combobox mit der Maus anklickt, wird der gesamte Text ausgewählt, und ein Cursor ist nicht sichtbar. Rechts-Links-Tasten bewirken nichts. Vielleicht weiß jemand, was ich ändern muss oder weiss einen besseren Code dafür:</p>
<p>BOOL create_addressBar(HWND hwnd, HINSTANCE hInstance, LPCTSTR string)<br />
{<br />
HWND hwndCB, hwndTB=NULL, hwndRB;<br />
REBARINFO rbi;<br />
RECT rc;<br />
REBARBANDINFO rbBand;<br />
long dwBtnSize=0;<br />
INITCOMMONCONTROLSEX icex;</p>
<p>icex.dwSize = sizeof(INITCOMMONCONTROLSEX);<br />
icex.dwICC = ICC_BAR_CLASSES;<br />
InitCommonControlsEx(&amp;icex);<br />
if (!(hwndRB=CreateWindowEx(WS_EX_TOOLWINDOW, REBARCLASSNAME, NULL,<br />
WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|<br />
WS_CLIPCHILDREN|RBS_VARHEIGHT|CCS_NODIVIDER|RBS_REGISTERDROP,<br />
2 + 70 + 10, 2, // X, Y position<br />
70, 34, // Width, Height<br />
hwnd,<br />
(HMENU)2001, hInstance, 0)))<br />
{<br />
tbx_geterror();<br />
MessageBox(hwnd, &quot;Can't create browser child window!&quot;, &quot;ERROR&quot;, MB_OK);<br />
return FALSE;<br />
}</p>
<p>// Initialize and send the REBARINFO structure.<br />
rbi.cbSize = sizeof(REBARINFO); // Required when using this<br />
// structure.<br />
rbi.fMask = 0;<br />
rbi.himl = (HIMAGELIST)NULL;<br />
SendMessage(hwndRB, RB_SETBARINFO, 0, (LPARAM)&amp;rbi);<br />
// Initialize structure members that both bands will share.<br />
rbBand.cbSize = sizeof(REBARBANDINFO); // Required<br />
rbBand.fMask = RBBIM_COLORS | RBBIM_TEXT | RBBIM_BACKGROUND |<br />
RBBIM_STYLE | RBBIM_CHILD | RBBIM_CHILDSIZE |<br />
RBBIM_SIZE;<br />
rbBand.fStyle = RBBS_CHILDEDGE | RBBS_FIXEDBMP;<br />
rbBand.hbmBack = LoadBitmap(hInstance,MAKEINTRESOURCE(700));<br />
// Create the combo box control to be added.</p>
<p>hwndCB = CreateWindowEx(WS_EX_TOOLWINDOW, &quot;ComboBox&quot;, NULL,<br />
WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN,<br />
2, 2, // X, Y position<br />
10, 20, // Width, Height<br />
hwnd,<br />
(HMENU)2002, hInstance, 0);<br />
SendMessage( hwndCB, CB_ADDSTRING, 0, (LPARAM) (LPCTSTR) string );<br />
SetWindowText(hwndCB, string);<br />
// Set values unique to the band with the combo box.<br />
GetWindowRect(hwndCB, &amp;rc);<br />
rbBand.lpText = &quot;Address&quot;;<br />
rbBand.hwndChild = hwndCB;<br />
rbBand.cxMinChild = 0;<br />
rbBand.cyMinChild = rc.bottom - rc.top;<br />
<a href="http://rbBand.cx" rel="nofollow">rbBand.cx</a> = 200;</p>
<p>SendMessage(hwndRB, RB_INSERTBAND, (WPARAM)-1, (LPARAM)&amp;rbBand);</p>
<p>CreateMyFont();<br />
if (FontHandle) DeleteObject(FontHandle);</p>
<p>return TRUE;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/146562/adressleiste-will-nicht</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 14:17:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/146562.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 May 2006 19:40:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Adressleiste will nicht on Mon, 08 May 2006 19:40:39 GMT]]></title><description><![CDATA[<p>hallo, weiss jemand Rat ? Möchte eine Adressleiste wie im Browser. Habe dazu nachfolgenden Code benutzt, aber das Adressfeld ist nicht editierbar. D.h. wenn man die Combobox mit der Maus anklickt, wird der gesamte Text ausgewählt, und ein Cursor ist nicht sichtbar. Rechts-Links-Tasten bewirken nichts. Vielleicht weiß jemand, was ich ändern muss oder weiss einen besseren Code dafür:</p>
<p>BOOL create_addressBar(HWND hwnd, HINSTANCE hInstance, LPCTSTR string)<br />
{<br />
HWND hwndCB, hwndTB=NULL, hwndRB;<br />
REBARINFO rbi;<br />
RECT rc;<br />
REBARBANDINFO rbBand;<br />
long dwBtnSize=0;<br />
INITCOMMONCONTROLSEX icex;</p>
<p>icex.dwSize = sizeof(INITCOMMONCONTROLSEX);<br />
icex.dwICC = ICC_BAR_CLASSES;<br />
InitCommonControlsEx(&amp;icex);<br />
if (!(hwndRB=CreateWindowEx(WS_EX_TOOLWINDOW, REBARCLASSNAME, NULL,<br />
WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|<br />
WS_CLIPCHILDREN|RBS_VARHEIGHT|CCS_NODIVIDER|RBS_REGISTERDROP,<br />
2 + 70 + 10, 2, // X, Y position<br />
70, 34, // Width, Height<br />
hwnd,<br />
(HMENU)2001, hInstance, 0)))<br />
{<br />
tbx_geterror();<br />
MessageBox(hwnd, &quot;Can't create browser child window!&quot;, &quot;ERROR&quot;, MB_OK);<br />
return FALSE;<br />
}</p>
<p>// Initialize and send the REBARINFO structure.<br />
rbi.cbSize = sizeof(REBARINFO); // Required when using this<br />
// structure.<br />
rbi.fMask = 0;<br />
rbi.himl = (HIMAGELIST)NULL;<br />
SendMessage(hwndRB, RB_SETBARINFO, 0, (LPARAM)&amp;rbi);<br />
// Initialize structure members that both bands will share.<br />
rbBand.cbSize = sizeof(REBARBANDINFO); // Required<br />
rbBand.fMask = RBBIM_COLORS | RBBIM_TEXT | RBBIM_BACKGROUND |<br />
RBBIM_STYLE | RBBIM_CHILD | RBBIM_CHILDSIZE |<br />
RBBIM_SIZE;<br />
rbBand.fStyle = RBBS_CHILDEDGE | RBBS_FIXEDBMP;<br />
rbBand.hbmBack = LoadBitmap(hInstance,MAKEINTRESOURCE(700));<br />
// Create the combo box control to be added.</p>
<p>hwndCB = CreateWindowEx(WS_EX_TOOLWINDOW, &quot;ComboBox&quot;, NULL,<br />
WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN,<br />
2, 2, // X, Y position<br />
10, 20, // Width, Height<br />
hwnd,<br />
(HMENU)2002, hInstance, 0);<br />
SendMessage( hwndCB, CB_ADDSTRING, 0, (LPARAM) (LPCTSTR) string );<br />
SetWindowText(hwndCB, string);<br />
// Set values unique to the band with the combo box.<br />
GetWindowRect(hwndCB, &amp;rc);<br />
rbBand.lpText = &quot;Address&quot;;<br />
rbBand.hwndChild = hwndCB;<br />
rbBand.cxMinChild = 0;<br />
rbBand.cyMinChild = rc.bottom - rc.top;<br />
<a href="http://rbBand.cx" rel="nofollow">rbBand.cx</a> = 200;</p>
<p>SendMessage(hwndRB, RB_INSERTBAND, (WPARAM)-1, (LPARAM)&amp;rbBand);</p>
<p>CreateMyFont();<br />
if (FontHandle) DeleteObject(FontHandle);</p>
<p>return TRUE;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1053737</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1053737</guid><dc:creator><![CDATA[x-bay]]></dc:creator><pubDate>Mon, 08 May 2006 19:40:39 GMT</pubDate></item><item><title><![CDATA[Reply to Adressleiste will nicht on Mon, 08 May 2006 21:00:23 GMT]]></title><description><![CDATA[<p>Ich bin mir jetzt nicht sicher, aber braucht die ComboBox nicht einen der CBS_ - Stile ?</p>
<p>Versuchs mal mit CBS_DROPDOWN oder liege ich da falsch. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1053793</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1053793</guid><dc:creator><![CDATA[tvdog]]></dc:creator><pubDate>Mon, 08 May 2006 21:00:23 GMT</pubDate></item></channel></rss>