Hello,
I’m using Prof-UIS 2.89 with VisualStudio 2005 on Windows XP. I’m new to Prof-UIS and so I don’t know, if I forgot some initializing.
I try to implement the CExtFormulaGrid in an ActiveX. I do this by declaring a member in the COleControl derived class.
class CProfUisOcxCtrl : public COleControl
{
CExtFormulaGridWnd m_grid;
In the OnCreate-Member I create the Formula Grid.
int CProfUisOcxCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (COleControl::OnCreate(lpCreateStruct) == -1)
return -1;
if( !m_grid.Create( this ) )
{
return -1;
}
m_grid.DefaultInit( 26, 100 );
return 0;
}
The OnSize member is used to set the grid to the size of the ActiveX
void CProfUisOcxCtrl::OnSize(UINT nType, int cx, int cy)
{
COleControl::OnSize(nType, cx, cy);
m_grid.MoveWindow( 0, 0, cx, cy );
}
This works, but when I’m in editing mode and click on other cell in the grid, I get an assertion in extedit.h line 509.
Can you please help me fixing the problem.
Best regards,
Bernd