Mac
06-23-2008, 10:22 AM
Hi,
I was using SECEditView derived class as follows.
SECEditCore<CView>
|
SECEditView
|
My_SECEditView
In class My_SECEditView I used to handle following messages.
ON_WM_LBUTTONDOWN()
ON_WM_LBUTTONUP()
ON_WM_LBUTTONDBLCLK()
ON_WM_RBUTTONDOWN()
ON_WM_RBUTTONUP()
After upgrading to VS2006 Stingray studio, it looks like there are changes in the class hierarchy.
SECEditViewWrapper_T<CView, SECEditViewport>
|
SECEditView
|
My_SECEditView
To make it compile with new stingray library, I had to add one more method as follows -
BOOL My_SECEditView::CreateController()
{
m_pCtlr = new CMyController;
m_bAutoDelCtlr = TRUE;
return TRUE;
}
Class CMyController is empty and derived from SECEditController.
I am unable to trap ON_WM_LBUTTONDBLCLK() message in My_SECEditView. I mean - OnLButtonDblClk never gets executed when double clicked. BUT OnRButtonDown() gets called on right click.
What should I do? please help...
thanks,
Mac
I was using SECEditView derived class as follows.
SECEditCore<CView>
|
SECEditView
|
My_SECEditView
In class My_SECEditView I used to handle following messages.
ON_WM_LBUTTONDOWN()
ON_WM_LBUTTONUP()
ON_WM_LBUTTONDBLCLK()
ON_WM_RBUTTONDOWN()
ON_WM_RBUTTONUP()
After upgrading to VS2006 Stingray studio, it looks like there are changes in the class hierarchy.
SECEditViewWrapper_T<CView, SECEditViewport>
|
SECEditView
|
My_SECEditView
To make it compile with new stingray library, I had to add one more method as follows -
BOOL My_SECEditView::CreateController()
{
m_pCtlr = new CMyController;
m_bAutoDelCtlr = TRUE;
return TRUE;
}
Class CMyController is empty and derived from SECEditController.
I am unable to trap ON_WM_LBUTTONDBLCLK() message in My_SECEditView. I mean - OnLButtonDblClk never gets executed when double clicked. BUT OnRButtonDown() gets called on right click.
What should I do? please help...
thanks,
Mac