Click here to Skip to main content
15,886,858 members
Articles / Programming Languages / Objective C

Running State Machine Based Win32/WinCE Programs

Rate me:
Please Sign up or sign in to vote.
4.37/5 (9 votes)
17 May 20065 min read 70.7K   1.3K   35  
This article describes how to run state machine application framework based Win32/WinCE programs using the window message hooking technology. (Open source project)
#if !defined(AFX_DISPCTRL_H__D40B0D8A_C883_45BF_BEA5_6525018C73F2__INCLUDED_)
#define AFX_DISPCTRL_H__D40B0D8A_C883_45BF_BEA5_6525018C73F2__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CDispCtrl window
#define DISP_WIDTH  96
#define DISP_HEIGHT  64

class CDispCtrl : public CStatic
{
// Construction
public:
	CDispCtrl();

// Attributes
public:
	COLORREF *m_DispBuf;

// Operations
public:

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

// Implementation
public:
	virtual ~CDispCtrl();

	// Generated message map functions
protected:
	//{{AFX_MSG(CDispCtrl)
	afx_msg void OnPaint();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_DISPCTRL_H__D40B0D8A_C883_45BF_BEA5_6525018C73F2__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.


Written By
Web Developer
China China
Jerome. (Free to speak, free to use.)

Comments and Discussions