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

  • Live Event Date: September 17, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Another day, another end-of-support deadline. You've heard enough about the hazards of not migrating to Windows Server 2008 or 2012. What you may not know is that there's plenty in it for you and your business, like increased automation and performance, time-saving technical features, and a lower total cost of ownership. Check out this upcoming eSeminar and join Rich Holmes, Pomeroy's practice director of virtualization, as he discusses the …

  • Java developers know that testing code changes can be a huge pain, and waiting for an application to redeploy after a code fix can take an eternity. Wouldn't it be great if you could see your code changes immediately, fine-tune, debug, explore and deploy code without waiting for ages? In this white paper, find out how that's possible with a Java plugin that drastically changes the way you develop, test and run Java applications. Discover the advantages of this plugin, and the changes you can expect to see …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds