Article View: borland.public.cppbuilder.nativeapi
Article #420Creating toolbar using CreateWindowEx()
From: Renald Yazmir
Date: Thu, 10 Apr 2008 20:52
Date: Thu, 10 Apr 2008 20:52
58 lines
2218 bytes
2218 bytes
Hello
I created a toolbar using CreateWindowEx() in MDI document.
..
dwStyle = WS_CHILD | TBSTYLE_WRAPABLE | TBSTYLE_FLAT | WS_BORDER;
// Create the toolbar.
hWndToolbar = CreateWindowEx(
0,
TOOLBARCLASSNAME,
NULL,
dwStyle,
0, 0, 0, 0,
hWndParent, //
main frame window
NULL,
hInstance,
NULL);
..
return hWndToolbar; // it is not used anywhere
When I open a child window it does not know about existence of toolbar. The
child window overlaps the toolbar.
How do make a child window aware of toolbar?
So when I drag a child window towards a toolbar it will stop when it hits a
toolbar.
Thank you
Rony
Technical Details
Message-ID:
<47fe6fee$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.isoc.lu!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f3bfe5ab5c553613,start X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Renald Yazmir" <renald@partmaker.com> From: "Renald Yazmir" <renald@partmaker.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Creating toolbar using CreateWindowEx() Date: Thu, 10 Apr 2008 15:52:19 -0500 Lines: 60 Organization: IMCS Inc X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 66.106.28.123 Message-ID: <47fe6fee$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1207857134 66.106.28.123 (10 Apr 2008 12:52:14 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.isoc.lu!newsgroups.borland.com!not-for-mail