Undocumented MS Stock Property Pages In VC5

Recently, I have become involved in the production of ActiveX controls for the first time and have had to learn the ropes (IDL syntax, message reflection, stock properties and methods etc). Mostly I am happy with the readily available functionality offered by MFC, however one of the things that annoys me is the shamelessly Windows 3.x feel of the standard stock property pages provided. I wouldn't complain but MS stopped using these stock pages themselves ages ago, and adopted a new set with enhanced functionality and improved looks.

Having been spurred on by some of your articles I decided to have a search through the MFC source code and see if I could find any references to the new stock property pages. Lo and behold I found the all important CLSID references to them in an MS header file destined for ATL use (however they work just fine with COleControl derived projects).

All you need to do to use these new stock pages is include the following header:

#include < MSStkPPg.H > 


and substitute the following references in BEGIN_PROPPAGEIDS():
CLSID_StockFontPage	for  CLSID_CFontPropPage
CLSID_StockPicturePage for CLSID_CPicturePropPage
CLSID_StockColorPage for CLSID_CColorPropPage

Last updated: 29 April 1998


Comments

  • How can I get the URL?

    Posted by Legacy on 06/08/2001 12:00am

    Originally posted by: Joyrain

    I have written an ActiveX component with Visual C++ 6.0 and inserted it into an html. I want to know how to get the URL of this html in the ActiveX. Thanks!!!

    Reply
  • Stock Picture Property Page in ATL 3.0

    Posted by Legacy on 02/04/1999 12:00am

    Originally posted by: Savkin Dmitry

    I attempted to make analogous procedure in my ATL3.0 project. I substitute CLSID_StockPicturePage for CLSID_CPicturePropPage in PROP_ENTRY macros. New property page appear in my property pages, but list of property names remains empty. When I used CLSID_StockPicturePage, all properties, which have type IPictureDisp* appeared in list of properties on property page.
    Does anyone know how to connect pictures property of control with this property page?

    Reply
  • Dont forget need MSSTKPRP.dll

    Posted by Legacy on 10/30/1998 12:00am

    Originally posted by: David Patrick


    I used this article to add those great property pages to an OCX I was writting and everything worked fine, till I passed it off to my friend for his use. Turns out he couldn't see property page because he didn't have the MSSTKPRP.dll file .. it is located in the redist directory on the VC cdrom.

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Learn How A Global Entertainment Company Saw a 448% ROI Every business today uses software to manage systems, deliver products, and empower employees to do their jobs. But software inevitably breaks, and when it does, businesses lose money -- in the form of dissatisfied customers, missed SLAs or lost productivity. PagerDuty, an operations performance platform, solves this problem by helping operations engineers and developers more effectively manage and resolve incidents across a company's global operations. …

  • Today's agile organizations pose operations teams with a tremendous challenge: to deploy new releases to production immediately after development and testing is completed. To ensure that applications are deployed successfully, an automatic and transparent process is required. We refer to this process as Zero Touch Deployment™. This white paper reviews two approaches to Zero Touch Deployment--a script-based solution and a release automation platform. The article discusses how each can solve the key …

Most Popular Programming Stories

More for Developers

RSS Feeds