22 static char THIS_FILE[] = __FILE__;
38 : CDialog(
CGrid::IDD, pParent)
51 CDialog::DoDataExchange(pDX);
59 BEGIN_MESSAGE_MAP(
CGrid, CDialog)
82 if (The_grid != NULL){
83 center = The_grid->center;
84 nrows = The_grid->nrows;
85 ncols = The_grid->ncols;
86 square_size = The_grid->square_size;
133 BOOL CGrid::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName,
DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd,
UINT nID, CCreateContext* pContext)
135 return CDialog::Create(
IDD, pParentWnd);
153 CDialog::OnDestroy();
159 CDialog::OnKillFocus(pNewWnd);
171 return CDialog::DestroyWindow();
176 CDialog::OnInitDialog();
179 pSpin->SetRange(2, 20);
193 strValue.Format(
"%i", pSpin->GetPos());
194 pSpin->GetBuddy()->SetWindowText(strValue);
201 CDialog::OnVScroll(nSBCode, nPos, pScrollBar);
#define IDC_SPIN_GRID_SIZE
grid * create_grid(grid *gridp, vec3d *forward, vec3d *right, vec3d *center, int nrows, int ncols, float square_size)
#define IDC_GRID_YZ_PLANE
void modify_grid(grid *gridp)
afx_msg void OnGridXzPlane()
afx_msg void OnGridYzPlane()
virtual BOOL DestroyWindow()
afx_msg void OnGridXyPlane()
#define IDC_GRID_XZ_PLANE
void GridOrient(vec3d *forward, vec3d *right)
int double_fine_gridlines
virtual void DoDataExchange(CDataExchange *pDX)
void physics_init(physics_info *pi)
virtual BOOL OnInitDialog()
#define vm_vec_make(v, _x, _y, _z)
#define IDC_GRID_XY_PLANE
afx_msg void OnKillFocus(CWnd *pNewWnd)
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
CGrid(CWnd *pParent=NULL)