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

  • With JRebel, developers get to see their code changes immediately, fine-tune their code with incremental changes, debug, explore and deploy their code with ease (both locally and remotely), and ultimately spend more time coding instead of waiting for the dreaded application redeploy to finish. Every time a developer tests a code change it takes minutes to build and deploy the application. JRebel keeps the app server running at all times, so testing is instantaneous and interactive.

  • The impact of a data loss event can be significant. Real-time data is essential to remaining competitive. Many companies can no longer afford to rely on a truck arriving each day to take backup tapes offsite. For most companies, a cloud backup and recovery solution will eliminate, or significantly reduce, IT resources related to the mundane task of backup and allow your resources to be redeployed to more strategic projects. The cloud - can now be comfortable for you – with 100% recovery from anywhere all …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds