Article View: borland.public.cppbuilder.nativeapi
Article #10906Re: Dialog Boxes and child windows
From: Mark Morrisson
Date: Sat, 20 Mar 2004 17:21
Date: Sat, 20 Mar 2004 17:21
30 lines
2417 bytes
2417 bytes
Hi Gary, I really don't know how to thank you for the time you've spent on my problem. It's really the only newsgroup where I find guys as willing to help as you... Well, I've adapted your code and it worked out fine so I compared it with mine. Mind you, I feel so dumb, the problem was coming from the fact that I was registering my child window class -after- creating the dialog box... So, in the WM_INITDIALOG message, I was creating a child window with a class that hadn't been registered yet... I'm sorry for having made you spent some time on this. Anyway, you'll perhaps be able to advise me. I'm using raw APIs. I have a window that has 3 screens with curves that will be drawn inside. To draw each curve, I need to know the top coordinate of the window (which is obtained by summing the height of several elements). If I ever had to add something between 2 screens, I would have to change all the drawing code ! That's not a good coding style. So, I thought that it would be cleaner to create 3 independant windows instead of drawn rectangles. This way, each window would draw its own data, and there wouldn't be any need to know the y coordinate of these client areas. Is it a frequent way of solving such problems ? I hope I haven't explained too badly. Thanks again and have a very nice day, Mark
Technical Details
Message-ID:
<405c7e0d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!nx02.iad01.newshosting.com!news.moat.net!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<405b3edd@newsgroups.borland.com> <405b4370$1@newsgroups.borland.com> <405b53f5$1@newsgroups.borland.com> <405c6892$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,f7c94584fd5860a5 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-20 09:27:23 PST From: "Mark Morrisson" <mark4@NO_SPAMvoila.fr> Newsgroups: borland.public.cppbuilder.nativeapi References: <405b3edd@newsgroups.borland.com> <405b4370$1@newsgroups.borland.com> <405b53f5$1@newsgroups.borland.com> <405c6892$1@newsgroups.borland.com> Subject: Re: Dialog Boxes and child windows Date: Sat, 20 Mar 2004 18:21:18 +0100 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 62.34.71.32 Message-ID: <405c7e0d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1079803405 62.34.71.32 (20 Mar 2004 09:23:25 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!nx02.iad01.newshosting.com!news.moat.net!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail