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