Update of /cvsroot/anyedit/AnyEditv2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25048
Modified Files:
AnyEditView.cpp
Log Message:
Fix: Right mouse button set cursor position now
Index: AnyEditView.cpp
===================================================================
RCS file: /cvsroot/anyedit/AnyEditv2/AnyEditView.cpp,v
retrieving revision 1.89
retrieving revision 1.90
diff -C2 -d -r1.89 -r1.90
*** AnyEditView.cpp 5 Apr 2005 08:28:41 -0000 1.89
--- AnyEditView.cpp 17 Apr 2005 12:30:09 -0000 1.90
***************
*** 2674,2677 ****
--- 2674,2693 ----
return FALSE;
}
+ else
+ {
+ if (pMsg->message == WM_RBUTTONDOWN)
+ {
+ int xPos = LOWORD(pMsg->lParam); // horizontal position of cursor
+ int yPos = HIWORD(pMsg->lParam); // vertical position of cursor
+ int nPos = m_Scintilla.PositionFromPoint(xPos, yPos);
+ if (m_Scintilla.IsSelection() && nPos >= m_Scintilla.GetSelectionStart()
+ && nPos <= m_Scintilla.GetSelectionEnd())
+ return FALSE;
+ else
+ m_Scintilla.GotoPos(m_Scintilla.PositionFromPoint(xPos, yPos));
+
+ return FALSE;
+ }
+ }
}
|