Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I have an exGrid into a property page ( I am using Visual C++ ) and when I use OleCreatePropertyFrame method the property page is not opened. What I am doing wrong?

0
10 Posted

I have an exGrid into a property page ( I am using Visual C++ ) and when I use OleCreatePropertyFrame method the property page is not opened. What I am doing wrong?

0
10

By default, your property page is derived from CDialogImpl class. The Activate method of the IPropertyPageImpl class calls CreateDialogParam method that’s not able to handle CONTROL tags in the resource file. In order to get a fix for that your property page object should derive from the CAxDialogImpl class instead CDialogImpl. The AtlAdviseSinkMap method should be called in OnInitDialog method, if you want to handle events using BEGIN_SINK_MAP, SINK_ENTRY and END_SINK_MAP macros.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123