Click here to Skip to main content
15,885,707 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)
/*
FILE:DialogCtrl.h
NOTE: The State Machine Wizard will add mapping macros between /*{{ and /*}}. Do NOT modify manually.
*/

#ifndef DIALOGCTRL_H
#define DIALOGCTRL_H

#include "sme.h"
#include "UICtrl.h"

#ifdef __cplusplus
extern "C" {
#endif

SME_BEGIN_STATE_DECLARE(DialogCtrl)
	/*{{SME_STATE_DECLARE(DialogCtrl)*/
	SME_STATE_DECLARE(DialogCtrl)
	SME_STATE_DECLARE(Normal)
	SME_STATE_DECLARE(Abnormal)
	SME_STATE_DECLARE(Calling)
	SME_MAX_STATE(DialogCtrl)
	/*}}SME_STATE_DECLARE*/
SME_END_STATE_DECLARE

/*{{SME_BEGIN_EVENT_HANDLER(DialogCtrl)*/
int DialogCtrlEntry(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int DialogCtrlExit(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int OnDialogCtrlEVENT_DLG_YES(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int OnDialogCtrlEVENT_DLG_NO(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int OnDialogCtrlEVENT_KEY_LEFTSOFT(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int OnDialogCtrlEVENT_KEY_RIGHTSOFT(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int NormalEntry(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int NormalExit(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int AbnormalEntry(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int AbnormalExit(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int CallingEntry(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int CallingExit(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
/*}}SME_END_EVENT_HANDLER*/

int DialogUpdateDisplay(BOOL isNormal);

#ifdef __cplusplus
}
#endif

#endif

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