Click here to Skip to main content
15,891,951 members
Articles / Mobile Apps

The StateWizard VC++ Add-in and Engine with Source Code

Rate me:
Please Sign up or sign in to vote.
4.73/5 (24 votes)
26 Mar 2009CPOL12 min read 190.6K   2.8K   132  
A cross-platform state-oriented application framework and a ClassWizard-like round-trip UML dynamic modeling/development tool that runs in popular IDEs. Aims at providing concurrent, distributed, and real-time application development tools for Win32/Linux
// SamplePlayerMfcDlg.h : header file
//

#if !defined(AFX_SamplePlayerMfcDLG_H__24076D1E_3BD5_4F62_B2FD_722159AF9E99__INCLUDED_)
#define AFX_SamplePlayerMfcDLG_H__24076D1E_3BD5_4F62_B2FD_722159AF9E99__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "resource.h"
/////////////////////////////////////////////////////////////////////////////
// CSamplePlayerMfcDlg dialog

#define WM_STATE_UPDATE (WM_APP+1)

class CSamplePlayerMfcDlg : public CDialog
{
// Construction
public:
	CSamplePlayerMfcDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CSamplePlayerMfcDlg)
	enum { IDD = IDD_SAMPLEPLAYERMFC_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSamplePlayerMfcDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	HANDLE m_hAppThread;

	// Generated message map functions
	//{{AFX_MSG(CSamplePlayerMfcDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButtonPower();
	afx_msg void OnButtonPause();
	afx_msg void OnDestroy();
	afx_msg LRESULT OnStateUpdate(WPARAM, LPARAM);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SAMPLEVC6DLG_H__24076D1E_3BD5_4F62_B2FD_722159AF9E99__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
Software Developer (Senior)
United States United States
Alex "Question is more important than the answer."

Comments and Discussions