class CGridDlg : public CDialog
{
// Construction
public:
CGridDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CGridDlg)
enum { IDD = IDD_GRID_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// { CGridCtrl m_Grid;
// }
...
};
void CGridDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CGridDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
// { DDX_GridControl(pDX, IDC_GRID, m_Grid);
// }
}
...
BOOL CGridDlg::OnInitDialog()
{
...
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
// { BOOL bEditable = TRUE;
BOOL bListMode = TRUE;
int nRows = 9;
int nCols = 8;
int nFixRows = 1;
int nFixCols = 1;