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 » CExtTreeGridWnd::FocusGet() is behaving strange! Collapse All
Subject Author Date
Alastair Watts Aug 24, 2010 - 3:59 AM

Having deleted all items from the grid using ItemRemove() for each item, the following code reports a row is focused, even though there are no rows in the grid.


 


CPoint pt = FocusGet();


if(pt.x != -1 && pt.y != -1)


         return true;


return false;


 

Technical Support Aug 24, 2010 - 6:20 AM

This can happen only if the focused item changing is locked (CExtTreeGridWnd::ItemFocusLock()). The focus changing can be locked if your app tries to remove tree rows wile handling the focus changing event (CExtGridBaseWnd::OnGbwFocusChanging(), CExtGridBaseWnd::OnGbwFocusChanged()). Could you please provide us with the call stack listing?