Article View: borland.public.cppbuilder.nativeapi
Article #8418Toolbar
From: Bob Piskac
Date: Sat, 30 Oct 2004 17:51
Date: Sat, 30 Oct 2004 17:51
25 lines
2088 bytes
2088 bytes
I am using a toolbar in a Dialog box with help tips. All is working fine
except....
I can only create one tool bar in the dialog box. If I try to create a
second one with a new ID, the first toolbar pictures don't draw correctly
and I don't see the second toolbar.
Is there any way to put spaces between the buttons?
hToolbarLeft = CreateWindowEx(WS_EX_TOOLWINDOW, TOOLBARCLASSNAME, NULL,
WS_VISIBLE |
WS_BORDER | WS_CHILD | TBSTYLE_TOOLTIPS | TBSTYLE_FLAT,
0, 0, 180, 30,
hwndDlg, (HMENU)1000,
(HINSTANCE)
GetWindowLong(hwndDlg, GWL_HINSTANCE), NULL);
hToolbarRight = CreateWindowEx(WS_EX_TOOLWINDOW, TOOLBARCLASSNAME, NULL,
WS_VISIBLE |
WS_BORDER | WS_CHILD | TBSTYLE_TOOLTIPS | TBSTYLE_FLAT,
120, 0, 100, 30,
hwndDlg, (HMENU)1001,
(HINSTANCE)
GetWindowLong(hwndDlg, GWL_HINSTANCE), NULL);
Technical Details
Message-ID:
<4183d493$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fe2724bcd928c67d,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Bob Piskac" <bob@pbsoftware.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Toolbar Date: Sat, 30 Oct 2004 13:51:34 -0400 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 68.249.14.21 Message-ID: <4183d493$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1099158675 68.249.14.21 (30 Oct 2004 10:51:15 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail