Hi, I'm developing a ActiveX control that I want to able to change the colour various parts of it. I know I can use the stock property page of it. I don't
wish use it, because I want greater flexabitly.
Declartion in the IDL file:
[id(4) , helpstring("property myColour")] OLE_COLOR myColour;
I've made the implentaion as notification. Therefore, in the the control's cpp file
DISP_PROPERTY_NOTIFY_ID(CMyActiveXCtrl, "myColour", dispidmyColour, m_myColour, OnmyColourChanged, VT_COLOR)
The property page in question I have a Static control which I intend to map to the property. Which is declared as such:
Now the problem is when I call UpdateData the data exchange doesn't work when I uncomment the DDP_Text line. When it commented it works for the static control only.
void CColoursPropPage::DoDataExchange(CDataExchange* pDX)
DDX_Text(pDX, IDC_BKCOLOUR_STATIC, m_nColourVal);
DDX_Control(pDX, IDC_BKCOLOUR_STATIC, m_selectedColour);
Can anyone tell we how to solve without adding the stock prop page.
Thanks in advance.