Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » CExtGridCell - redraw icon Collapse All
Subject Author Date
Rado Manzela Mar 21, 2007 - 11:11 AM

How can I redraw cell or only it’s icon immediately after changing the icon?
Thank you

Technical Support Mar 22, 2007 - 4:08 AM

There is a CExtGridWnd::GridCellRectsGet() method that allows you to get the location of a grid cell and the location of any of its parts. The location is specified in pixels relative to the grid window’s client area. CExtGridWnd::GridCellRectsGet() returns false if the grid cell is outside the visible range of cells. In this case, it is not possible to compute the cell location and you should always analyze the returned boolean value. Here is how you could use this method.

CRect rcCell;    
if( m_wndGrid.GridCellRectsGet( nColNo, nRowNo, 0, 0, rcCell ) )
            m_wndGrid.InvalidateRect( &rcCell );