Click here to Skip to main content
15,885,953 members
Articles / Desktop Programming / MFC

Basic Curves And Surfaces Modeler

Rate me:
Please Sign up or sign in to vote.
4.17/5 (40 votes)
18 Apr 2012CPOL3 min read 246.5K   16.4K   117  
A basic demo of modeling curves and surfaces in OpenGL.
#if !defined(AFX_SPLITTERWNDEX_H__CF36A250_6865_48C2_A766_760798A16C6B__INCLUDED_)
#define AFX_SPLITTERWNDEX_H__CF36A250_6865_48C2_A766_760798A16C6B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SplitterWndEx.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSplitterWndEx window

class CSplitterWndEx : public CSplitterWnd
{
// Construction
public:
	CSplitterWndEx();

// Attributes
public:

public:
	bool m_bSplittingDone;
protected :
	bool m_bIsAutomaticSplit;


// Operations
public:
	void OnDrawSplitter(CDC* pDC, ESplitType nType, const CRect& rectArg);
	void RefreshSplitBars(void);

public:
	BOOL DoAutomaticSplit(); // new method
	BOOL DoKeyboardSplit(); // overload the CSplitterWnd::DoKeyboardSplit();
protected:
	void StartTracking(int ht); // overload the CSplitterWnd::StartTracking
	void StopTracking(BOOL bAccept); // overload the CSplitterWnd::StopTracking



// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSplitterWndEx)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CSplitterWndEx();

	// Generated message map functions
protected:
	//{{AFX_MSG(CSplitterWndEx)
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SPLITTERWNDEX_H__CF36A250_6865_48C2_A766_760798A16C6B__INCLUDED_)

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Product Manager Mahindra & Mahindra
India India
Sharjith is a Mechanical Engineer with strong passion for Automobiles, Aircrafts and Software development.

Comments and Discussions