<< Return to Main Index

< Return to Class Index

class CGXGridWnd: public CWnd, public CGXGridCore

The CGXGridWnd class represents the grid-component as child control. CGXGridWnd can be easily used as dialog control or in a workbook window.

The easiest way to use a CGXGridWnd-derived class in a dialog is to use SubclassDlgItem. Here are the necessary steps:

   class CDerGridDialog : public CDialog
   {
      ...
      CDerivedGridWnd m_wndGrid;
      ...
   BOOL CDerivedGridDialog::OnInitDialog()
   {
      CDialog::OnInitDialog();
      m_wndGrid.SubclassDlgItem(IDC_GRIDSAMPLE, this);
      m_wndGrid.Initialize();
      ...

#include <gxall.h>

See Also

CGXTabWnd CGXGridCore GRID_DECLARE_REGISTER

CGXGridWnd

Class Members