PDA

View Full Version : OnLButtonDblClk does not work after upgrade



Mac
06-23-2008, 11: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

Mac
06-30-2008, 02:08 AM
Can anybody help me? My customers are awaiting.

Can anybody provide me 'breaking changes in SECEditView in new studio 2006' document
( if available) ?.

Atifrere
04-10-2015, 10:35 PM
Yes, BOOL CGXGridCore::OnGridWindowProc(UINT message, WPARAM wParam, LPARAM lParam, LRESULT& result) is in another file, gxcomsg.cpp: you could just search in files to find it. "<other old code>" - I meant you add the fix on the top of the funcion body and don't change the rest of the code in function body below.