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

  • On-demand Event Event Date: September 10, 2014 Modern mobile applications connect systems-of-engagement (mobile apps) with systems-of-record (traditional IT) to deliver new and innovative business value. But the lifecycle for development of mobile apps is also new and different. Emerging trends in mobile development call for faster delivery of incremental features, coupled with feedback from the users of the app "in the wild." This loop of continuous delivery and continuous feedback is how the best mobile …

  • Packaged application development teams frequently operate with limited testing environments due to time and labor constraints. By virtualizing the entire application stack, packaged application development teams can deliver business results faster, at higher quality, and with lower risk.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds