|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Mac Will
|
Jan 5, 2006 - 3:14 PM
|
Hello again, First off, I am still in need of help in the multiple row highlighting thread, thanks. I also have another problem. I am dragging something onto my grid and I want to know what cell I am on when the Left Mouse button goes UP. How can I do this? I have the screen point. Thanks
|
|
Technical Support
|
Jan 7, 2006 - 6:59 AM
|
We received your sample/startup project with regard to the multiple row highlighting query and will reply today.
|
|
Mac Will
|
Jan 6, 2006 - 10:33 AM
|
POINT clientPoint = point;
ScreenToClient(&clientPoint);
CExtGridHitTestInfo htInfo( clientPoint );
HitTest( htInfo, false, true );
if( htInfo.IsHoverEmpty() || ( ! htInfo.IsValidRect() ) ) return; INT nColType = htInfo.GetInnerOuterTypeOfColumn(); INT nRowType = htInfo.GetInnerOuterTypeOfRow(); CExtGridCell * pCell = GridCellGet( htInfo.m_nColNo, htInfo.m_nRowNo, nColType, nRowType ); if( pCell != NULL ) { ASSERT_VALID( pCell );
|
|
Technical Support
|
Jan 7, 2006 - 6:46 AM
|
Your code performs correct cell hit testing in the grid control.
|
|