Professional UI Solutions
Site Map   /  Register


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.

Forums » Prof-UIS General Discussion » CextGridWnd MouseOver Collapse All
Subject Author Date
Douglas Hoppes Jun 8, 2011 - 11:38 AM

Hi all,

When the user is moving the mouse over the CExtGridCell, how I I get the cell’s row and column numbers? I need to do some processing in my dialog window as the mouse moves.


Technical Support Jun 9, 2011 - 1:27 PM

You should handle the WM_MOUSEMOVE message in your grid class. Your OnMouseMove() handler method should perform hit testing:

CExtGridHitTestInfo htInfo( point );
    HitTest( htInfo, false, true );

Then it should analyze hit testing result. For instance,
            if(        (htInfo.m_dwAreaFlags & __EGBWA_INNER_CELLS) != 0
                &&    htInfo.m_nColNo >= 0
                &&    htInfo.m_nRowNo >= 0
                        . . .