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: December 11, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Market pressures to move more quickly and develop innovative applications are forcing organizations to rethink how they develop and release applications. The combination of public clouds and physical back-end infrastructures are a means to get applications out faster. However, these hybrid solutions complicate DevOps adoption, with application delivery pipelines that span across complex hybrid cloud and non-cloud environments. Check out this …

  • Hundreds of millions of users have adopted public cloud storage solutions to satisfy their Private Online File Sharing and Collaboration (OFS) needs. With new headlines on cloud privacy issues appearing almost daily, the need to explore private alternatives has never been stronger. Join ESG Senior Analyst Terri McClure and Connected Data in this on-demand webinar to take a look at the business drivers behind OFS adoption, how organizations can benefit from on-premise deployments, and emerging private OFS …

Most Popular Programming Stories

More for Developers

RSS Feeds