Click here to Skip to main content
Click here to Skip to main content

A PIC C Code Wizard

By , 5 May 2003
 
piccpc-wiz_demo.zip
fls.doxygen
fls.dsp
fls.dsw
Release
fls.exe
piccpc-wiz_src.zip
grid
PICCPC.clw
PICCPC.dsp
PICCPC.dsw
PICCPC.exe
res
default.bmp
images.bmp
PICCPC.ico
Thumbs.db
Template
confirm.inf
doc.doxygen
pic.inf
picpcproj.dsp
picpcproj.inf
PICCWiz_src.zip
PICCWiz.dsp
PICCWiz.dsw
PICCWiz.plg
PICCWiz.exe
default.bmp
idr_main.ico
images.bmp
PICCWiz.ico
DOC.DOXYGEN
PICPROJ.DSP
WIZINFO.INF
WIZPIC.INF
WIZPROJ.INF
Templates
doc.doxygen
picproj.dsp
wizinfo.inf
wizpic.inf
wizproj.inf
TreePropSheet
wizdlgs
#if !defined(AFX_CCP2_H__DEAC54AF_1191_4B0E_BD8B_CFCA84094B31__INCLUDED_)
#define AFX_CCP2_H__DEAC54AF_1191_4B0E_BD8B_CFCA84094B31__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CCCP2 dialog

class CCCP2 : public CPropertyPage
{
	DECLARE_DYNCREATE(CCCP2)

// Construction
public:
	CCCP2();
	~CCCP2();

protected:
	CToolTipCtrl m_cToolTip;
	void UpdatePWMFreq( void );
	void UpdatePWMDC( void );
	void UpdatePWMInfo( void );
	float GetT2Prescaler( void );
	float GetPWMFrequency( int pr2 );
	FLOAT GetPWMDCResolution( void );

// Dialog Data
	//{{AFX_DATA(CCCP2)
	enum { IDD = IDD_CCP2 };
	CComboBox	m_cCCP2Mode;
	CComboBox	m_cCCP2Freq;
	CComboBox	m_cCCP2DC;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CCCP2)
	public:
	virtual BOOL OnKillActive();
	virtual BOOL OnSetActive();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CCCP2)
	afx_msg void OnSelchangeCcp2Mode();
	afx_msg void OnSelchangeCcp2Freq();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

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

#endif // !defined(AFX_CCP2_H__DEAC54AF_1191_4B0E_BD8B_CFCA84094B31__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of use 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)

About the Author

Carlos Buelna
Delphi
United States United States
Member
Carlos Buelna works in the automotive industry.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 6 May 2003
Article Copyright 2003 by Carlos Buelna
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid