🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8909

Attach a property sheet onto TForm

#8909
From: Avex
Date: Wed, 01 Sep 2004 19:26
30 lines
1661 bytes
Hi All,

How can I attach a PropertySheet onto  TForm or VCL controller ?
Here is the code I found in MSDN.
PropertySheet(&psh);  shows a property sheet and it can attach on to
controller using VC.
Such as :
FillInPropertyPage( &psh, IDD_GOALS, TEXT("Attainment of Goals"),

 Any Idea ?



  //////////////////////////////////////////////////////////////////
  // Display the page using additional code
  //////////////////////////////////////////////////////////////////

  PROPSHEETHEADER psh;
  ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
  psh.dwSize = sizeof(PROPSHEETHEADER);
  psh.dwFlags = PSH_DEFAULT | PSH_NOAPPLYNOW;
  psh.phpage = &phPage;
  psh.nPages = 1;

  int psResult = PropertySheet(&psh);
  if (psResult <= 0)
  {
    wprintf(L"Failed to create the property page: ");
    wprintf(L"0x%x\n", GetLastError());
  }
Technical Details
Message-ID: <4136222f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b27fbea4d34ecc14,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Avex" <avex@I.Dont.Like.Spammer>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Attach a property sheet onto TForm
Date: Thu, 2 Sep 2004 03:26:06 +0800
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 218.163.148.162
Message-ID: <4136222f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1094066735 218.163.148.162 (1 Sep 2004 12:25:35 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail