The Windows API function, which shows a property sheet dialog box, is OleCreatePropertyFrame. It gets as an argument an array of CLSIDs of the property pages to be displayed. The function creates a modal dialog box and does not return until the dialog box is closed.
The following C++ code shows the property page for the 'active' selected item.
C++ Copy Code |
---|
LPDISPATCH pDisp = (LPDISPATCH)m_FlowChart.GetControlUnknown(); |
When imported in .NET project, FlowChartX control is represented by an AxHost derived class. AxHost.ShowPropertyPages method displays all property pages associated with the control.