| | | | Browse by category |
Article ID: 707
Last updated: 11 Jun, 2018
Problem
When using SetSpecialMode(GX_MODELBOX_MS), is there a way to disable the ability to click on a row and extend the selection by moving the mouse over other rows?
Cause
Action
Yes, you could override the CanChangeSelection() method and return FALSE as shown in the following example:
BOOL CMyGrid::CanChangeSelection(CGXRange* pRange, BOOL bIsDragging, BOOL bKey) { |
|||
if (!bKey && pRange && pRange->GetHeight() > 1) | |||
return FALSE; | |||
return TRUE; | |||
} |
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 707
Last updated: 11 Jun, 2018
Revision: 3
Views: 1651
Posted: 23 Jan, 2001 by
Meltreger B.
Updated: 11 Jun, 2018 by
Meltreger B.
Others in this category
Powered by KBPublisher (Knowledge base software)