[D2009] Hosting PropertySheetPages in my own form (in a TPageControl)

Giganews Newsgroups
Subject:[D2009] Hosting PropertySheetPages in my own form (in a TPageControl)
Posted by: Jörgen_Hägglund
Date:Mon, 31 May 2010

Hi all!
Anyone know how to make my own host for PropertySheetPages?

I am retrieving the property sheet page (HPROPSHEETPAGE) from
MSTask.ITaskScheduler.ITask.IProvideTaskPage.GetPage (not the actual
path, but You get the idea).

The problem I have, is trying to show the page(s) in my own tab control
without using PropertySheet() function. In essence, taking care of all
the things PropertySheet() does.

What seems to be a problem is that propertysheetpages are not windows,
but dialogs, so functions like SetParent() and others just returns
"Invalid handle value".

Any pointers, ideas?

I tried asking this in embarcadero.public.delphi.language.delphi.win32,
but with no success...
Maybe this is a better place?

Regards
/Jörgen

Replies