Article View: borland.public.cppbuilder.nativeapi
Article #1699Re: Dialog child window
From: Bob Gonder
Date: Wed, 20 Jun 2007 16:18
Date: Wed, 20 Jun 2007 16:18
18 lines
1707 bytes
1707 bytes
JD wrote:
>> case WM_INITDIALOG:
>
>I wanted to avoid using the win32 call so I just subclassed the control's
Why is that?
You are still using plenty of Win32 calls (many more than needed IMO)
>void __fastcall TPreviewForm::PrintDialog1Show(TObject *Sender)
>{
> CollateHandle = NULL;
> CollateWndProcPtr = NULL;
> ::EnumChildWindows( PrintDialog1->Handle,
>(WNDENUMPROC)EnumChildCallBack, (LPARAM)this );
That is a very long-winded way to say
CollateHandle = GetDlgItem( PrintDialog1->Handle, PD_COLLATE);
Technical Details
Message-ID:
<k2ki73lvpngicf8k2ccvuj043uiu8k6tng@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.247.MISMATCH!news-out.readnews.com!news-xxxfer.readnews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46785769@newsgroups.borland.com> <erog7391dj2s0ivta3ct48v21hhjc72d0e@4ax.com> <4678eda6@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,17b336d121cbb12d X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Dialog child window Date: Wed, 20 Jun 2007 09:18:48 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <k2ki73lvpngicf8k2ccvuj043uiu8k6tng@4ax.com> References: <46785769@newsgroups.borland.com> <erog7391dj2s0ivta3ct48v21hhjc72d0e@4ax.com> <4678eda6@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.145.161 X-Trace: newsgroups.borland.com 1182356328 67.77.145.161 (20 Jun 2007 09:18:48 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.247.MISMATCH!news-out.readnews.com!news-xxxfer.readnews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail