Click here to Skip to main content
15,895,799 members
Articles / Desktop Programming / MFC

SolidGraph CAD System

Rate me:
Please Sign up or sign in to vote.
4.97/5 (78 votes)
12 Sep 20062 min read 375.9K   29.8K   209  
A SolidGraph CAD system source code.
#pragma once
#include "afxcmn.h"

#include "..//..//Controls//SelectingListCtrl.h"

typedef struct  
{
	double pX;
	double pY;
	double pZ;
	CString  pStr;
} PNTS;
// CSelectPointDlg dialog

class CSelectPointDlg : public CDialog, public ISelectPointPanel
{
	DECLARE_DYNAMIC(CSelectPointDlg)

	std::vector<PNTS>  m_points;

public:
	CSelectPointDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CSelectPointDlg();

// Dialog Data
	enum { IDD = IDD_SELECT_POINT_DLG };

	virtual  DLG_TYPE  GetType();
	virtual  CWnd*     GetWindow();   

	virtual  void      EnableControls(bool);

	virtual void   AddPoint(double,double,double);
	virtual void   RemoveAllPoints();
	virtual void   SetCurrentPoint(unsigned int);
	virtual unsigned int    GetCurrentPoint();


protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
private:
	CSelectingListCtrl m_list;
	bool*      m_enable_history;
	bool       m_was_diasabled;
protected:
	virtual void OnCancel();
	virtual void OnOK();
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnLvnGetdispinfoSelectPointList(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnNMClickSelectPointList(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnBnClickedSelectPointFinishButton();
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions