I activated a dialog box in response to OnLButtonDown in the ActiveX control code. After that, all the the mouse clicks in the container( click on toolbar, or menu items) were directed to the OnLButtonDown message handler in the ActiveX control. Can you tell me how to fix this problem?
ForeColor property doesnt change the forecolor unless ShowGrid has been checked.
CPen forePen (PS_SOLID|PS_INSIDEFRAME,1,TranslateColor(GetForeColor()));
pOldPen = m_pDC->SelectObject(&forePen);
Instead of whatever is at the same line on the page. I think this is because of the pen object not being created right when SelectObject is called. Please post a comment someone if you can get the old code itself to do the job and or if you know of a better way to achieve this.
Great article. Thanks Kapil.
In my ActiveX control, in the property page the color property page is missing. I implemeented this page correctly under the line PROPPAGEID(CPlotPPropPage::guid) with PROPPAGEID(CLSID_CColorPropPage) and I incremented the counter to 2. Where is the bug?