/***************************************************************************** MODULE: check.h PURPOSE: Header file for "check" Windows CE application. *****************************************************************************/ #ifndef __CHECK_H__ /////////////////////////////// #includes//////////////////////////////////// #include #include #include #include #include #include "resource.h" ////////////////////////////// #defines ///////////////////////////////////// #define dim(x) (sizeof(x) / sizeof(x[0])) // Defines used by application #define TEXTSIZE 100 #define LINESIZE ((long)(TEXTSIZE+sizeof(double)+sizeof(int)+sizeof(double))) #define MAX_HISTORY 7 //////////////////////////// Function prototypes /////////////////////////// //Windowing functions LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp); BOOL InitApplication(HINSTANCE hInstance); BOOL InitInstance(HINSTANCE hInstance, int nCmdShow); int TermInstance(HINSTANCE hInstance, int nDefRC); //Message handlers BOOL CALLBACK DoAboutDialog(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam); LPARAM DoMainCommandNew(HWND hWnd, WORD idItem, HWND hWndCtrl, WORD wNotifyCode); LPARAM DoMainCommandOpen(HWND hWnd, WORD idItem, HWND hWndCtrl, WORD wNotifyCode); LRESULT DoPaintMain(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp); LRESULT DoCreateMain(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp); LRESULT DoEnterButton(HWND hWnd, WORD idItem, HWND hWndCtrl, WORD wNotifyCode); ///////////////////////////////////////////////////////////////////////////// #endif /* __CHECK_H__ */