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 |
|
Douglas Hoppes
|
Mar 17, 2009 - 5:33 AM
|
Simple question: I have a window subclassed from the CExtGridWnd. When the user selects any column in a row, I would like the entire row selected. Is there a flag setting for this?
|
|
Technical Support
|
Mar 17, 2009 - 10:24 AM
|
The selection in all the Prof-UIS grid windows is implemented as a set of CRect objects describing selected cell areas. You can change the selection using the CExtGridWnd::Selection***() methods. To select an entire row, you should compose the following rectangle: LONG nRowNo = . . .;
CExtGridWnd & wndGrid = . . .
LONG nColumnCount = wndGrid.ColumnCountGet();
CRect rcSelArea( 0, nRowNo, nColumnCount - 1L, nRowNo );
Then you should use the rcSelArea variable as parameter of the CExtGridWnd::SelectionSet() , CExtGridWnd::SelectionInsertAt() or CExtGridWnd::SelectionSetAt() methods.
|
|