I have created Activex control in MFC. i want to pass user define structure to event. how can i do this. Plase help me. I want to use that control in VB. Regards Rajesh
ReplyOriginally posted by: buchi
#import "C:\WINDOWS\SYSTEM\MSSTDFMT.DLL"
and put it into MDI window(hWnd)?
#import "C:\WINDOWS\SYSTEM\msdatsrc.tlb"
#import "C:\WINDOWS\SYSTEM\MSDATGRD.OCX"
...
VOID CreateDBGrid(HWND hwnd)
{
IDataGridPtr pDataGrid;
try
{
pDataGrid.CreateInstance(__uuidof(DataGrid));
... what's next?
}
catch(_com_error &e)
{ // Exception occurred
ShowExcepion(&e);
}
return;
}
Originally posted by: dh75025
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?
ReplyOriginally posted by: peirr
How can I add a new helpful class like CHistoricalDatas
http://www.codeguru.com/controls/DGraph.shtml
Can anyone help me?
Thanks!!!
Originally posted by: Vasu
Cheers-
Bug:
ForeColor property doesnt change the forecolor unless ShowGrid has been checked.
Fix:
CPen forePen (PS_SOLID|PS_INSIDEFRAME,1,TranslateColor(GetForeColor()));
CPen *pOldPen;
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.
Vasu.
Originally posted by: Stephen Bradley
Does anyone know how to remove the "Extended" properties page which always appears as a final tab on an ActiveX properties sheet?
Sounds easy enough? Ta!
ReplyOriginally posted by: D a i s y
An ActiveX control for 2D data visualisation.
http://www.codeproject.com/miscctrl/NTGraph_ActiveX.asp
Reply
Originally posted by: Dolly
The problem is:
I developed my own ActiveX Control. But it can not be used on my asp page.
Originally posted by: omkar bhave
i want to know how painting messages like OCM_CTLCOLOR are handled in an activex control made in MFC.
my email is omkar@lambenttek.com.
thank you
waiting for reply
Originally posted by: infoth
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?