ATL PROP_DATA_ENTRY
-
How to add a custom color property entry in PROP_DATA_ENTRY macro - what should be the vt value?
-
How to add a custom color property entry in PROP_DATA_ENTRY macro - what should be the vt value?
Hi, If it possible use the wizards to add the property and specify the OLE_COLOR as a data type. When a property is declared as OLE_COLOR, the Properties window will display a color-picker dialog that allows the user to select the color for the property visually, rather than having to remember the numeric equivalent. Internally it's treated as a Long. Regards, Alex Gorev Dundas Software.
-
Hi, If it possible use the wizards to add the property and specify the OLE_COLOR as a data type. When a property is declared as OLE_COLOR, the Properties window will display a color-picker dialog that allows the user to select the color for the property visually, rather than having to remember the numeric equivalent. Internally it's treated as a Long. Regards, Alex Gorev Dundas Software.
Hi, Thanks for replying. The reason why I need the PROP_DATA_ENTRY is to persist the property. I have added properties using the wizard already. When I add an entry like... PROP_DATA_ENTRY("Start Color", m_clrStartColor,VT_UI4) the VB client gives invalid property when being persisted. Please clarify. Thanks & regards, V.Lakshmi Narasimhan
-
Hi, Thanks for replying. The reason why I need the PROP_DATA_ENTRY is to persist the property. I have added properties using the wizard already. When I add an entry like... PROP_DATA_ENTRY("Start Color", m_clrStartColor,VT_UI4) the VB client gives invalid property when being persisted. Please clarify. Thanks & regards, V.Lakshmi Narasimhan
Hi, First of all if you have a Set/Get functions for the property and it's part of any property page it's better to use PROP_ENTRY macro. Even if you don't use the property page you can always set it to CLSID_NULL. BEGIN_PROP_MAP(...) PROP_ENTRY("StartColor", DISPID_START_COLOR, CLSID_NULL) END_PROP_MAP() The other thing I've noticed is that you use a space in the name of the property. Never use it in the name of the properties, it can cause all kind of problems. Regards, Alex Gorev, Dundas Software.