// MyCUG.h : interface of the MyCug class
//
/////////////////////////////////////////////////////////////////////////////
#include "ugctrl.h"
#define COLS 5
struct _tagRow
{
int m_colData[COLS];
};
class MyCug:public CUGCtrl
{
public:
MyCug();
~MyCug();
protected:
CArray<_tagRow,_tagRow> m_data;
private:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
//}}AFX_VIRTUAL
//{{AFX_MSG(MyCug)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
//***** Over-ridable Notify Functions *****
virtual void OnSetup();
//mouse and key strokes
virtual void OnDClicked(int col,long row,RECT *rect,POINT *point,BOOL processed);
virtual void OnCharDown(UINT *vcKey,BOOL processed);
//GetCellIndirect notification
virtual void OnGetCell(int col,long row,CUGCell *cell);
//SetCell notification
virtual void OnSetCell(int col,long row,CUGCell *cell);
//editing
virtual int OnEditVerify(int col,long row,CWnd *edit,UINT *vcKey);
};