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 General Discussion » I want to do one line choice in CExtGridWnd. Collapse All
Subject Author Date
tarou iiyama Mar 18, 2005 - 2:28 AM

 HI


I want to do one line choice in CExtGridWnd.
  Please teach a method.


Thank You.


 

Technical Support Mar 18, 2005 - 10:03 AM

The CExtGridWnd control, like many Windows common controls, supports two basic states for its cell items: focused and selected. The focused item is always the only one in the control and is marked with a dotted rectangle. Any selected item has a background filled with an alternative color indicating selection. You can set both focus and selection on a grid cell with the FocusSet() method of the grid. You can mark one or more cells as selected by calling SelectionSet( RECT, false, false, bRedraw ) of the grid. The RECT argument specifies row/column range to be selected and bRedraw specifies whether the grid control should be immediately repainted.