Article View: borland.public.cppbuilder.nativeapi
Article #10166Re: property pages
From: Remy Lebeau (TeamB)
Date: Thu, 20 May 2004 17:49
Date: Thu, 20 May 2004 17:49
40 lines
2557 bytes
2557 bytes
"Luiz Rafael Culik Guimaraes" <culikr@brturbo.com> wrote in message news:40ac7d46$1@newsgroups.borland.com... > This text bellow was taken from Simply re-read more closely the text that you have quoted and you will see the answer. I have marked the relavant parts using "***" so you can see what you need to re-read again: > Another way to create a property sheet is to specify an array > of PROPSHEETPAGE structures instead of an array of > HPROPSHEETPAGE handles. In this case, ***PropertySheet > creates handles*** for the pages before adding them to the > property sheet. That means PropertySheet() creates its own handles internally. You will get different handles than you would have gotten had you called CreatePropertySheetPage() yourself directly. > When a page is created, its ***dialog box procedure*** > receives ***a WM_INITDIALOG*** message. The dialog box procedure is *not* the Callback function that was specified in the PROPERTYSHEET or PROPERTYSHEETHEADER structure. That is used for a completely different purpose altogether. Having an lParam point to a PROPERTYSHEETPAGE only applies to the specific condition that the *dialog box procedure*, not the *property page callback*, gets called with the WM_INITDIALOG message. > The message's lParam parameter is a pointer ***to a copy*** > of the PROPSHEETPAGE structure that is defined when the > page is created. As you can see, the WM_INITDIALOG message does not use the original page at all, but a copy of it instead. A different pointer, and thus a different lParam value, is being used. Gambit
Technical Details
Message-ID:
<40acf0e3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40ac1861@newsgroups.borland.com> <40ac40e1$1@newsgroups.borland.com> <40ac7d46$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,21cd5410da16e594 X-Google-Attributes: gid10cc67,public From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40ac1861@newsgroups.borland.com> <40ac40e1$1@newsgroups.borland.com> <40ac7d46$1@newsgroups.borland.com> Subject: Re: property pages Date: Thu, 20 May 2004 10:49:46 -0700 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <40acf0e3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1085075683 67.22.138.253 (20 May 2004 10:54:43 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail