<< Return to Main Index

< Return to Class Index

CGXBrowserGrid::CGXBrowserGrid

CGXBrowserGrid(CWnd* pGridWnd = NULL, CDocument* pGridDoc = NULL, BOOL bIsViewContext = FALSE);

pGridWnd

A pointer to the parent CWnd object for the CGXBrowserGrid object.

pGridDoc

A pointer to the document, if any. Otherwise NULL.

bIsViewContext

ou should pass TRUE for this parameter if the grid is used in a CView

Remarks

Constructs a CGXBrowserGrid object.

You will only need to call this constructor if you want to attach a CGXBrowserGrid object to a CGXGridHandleView or CGXGridHandleWnd.

Example

This example shows you how you can attach a CGXBrowserGrid (derived from CGXGridCore) to CGXGridHandleView:

void CMyGridView::OnInitialUpdate()
{
   AttachGrid( new CGXBrowserGrid(this, GetDocument(), TRUE) );

   CGXGridHandleView::OnInitialUpdate();

   GetGrid()->SetRowCount(10);
   GetGrid()->SetColCount(10);

   ...
}

See Also

CGXGridHandleView CGXGridHandleWnd

CGXBrowserGrid

Class Overview | Class Members