--- pmsdk/samples/bio/bio.h 2018/08/09 12:28:13 1.1 +++ pmsdk/samples/bio/bio.h 2018/08/09 12:28:33 1.1.1.2 @@ -3,8 +3,8 @@ Created by Microsoft Corp., 1988 */ /* String table constants */ -#define IDSAPPNAME 1 -#define IDSKIDNAME 2 +#define IDS_APPNAME 1 +#define IDS_KIDNAME 2 /* Resource Ids */ #define ID_BIO 1 @@ -12,28 +12,29 @@ #define IDD_DATE 3 /* Menu constants */ -#define IDDATES 1001 -#define IDKID 1004 -#define IDCOPY 1005 -#define IDABOUT 1006 +#define IDM_DATES 0x100 +#define IDM_LEGEND 0x101 +#define IDM_COPY 0x102 +#define IDM_ABOUT 0x103 /* Bio Dialog Box constants */ -#define IDBDYEAR 301 -#define IDBDMONTH 302 -#define IDBDDAY 303 -#define IDYEAR 304 -#define IDMONTH 305 -#define IDDAY 306 -#define IDOS2INI 307 +#define ID_BDYEAR 301 +#define ID_BDMONTH 302 +#define ID_BDDAY 303 +#define ID_YEAR 304 +#define ID_MONTH 305 +#define ID_DAY 306 +#define ID_OS2INI 307 /* Function prototypes */ -SHORT cdecl main ( void ); -MRESULT FAR PASCAL BioWndProc ( HWND, USHORT, MPARAM, MPARAM ); -MRESULT FAR PASCAL KidWndProc ( HWND, USHORT, MPARAM, MPARAM ); -VOID FAR PASCAL APPPaint ( HWND ); -MRESULT FAR PASCAL BioDlg ( HWND, USHORT, MPARAM, MPARAM ); -MRESULT FAR PASCAL About ( HWND, USHORT, MPARAM, MPARAM ); +SHORT cdecl main ( void ); +MRESULT CALLBACK BioWndProc ( HWND, USHORT, MPARAM, MPARAM ); +MRESULT CALLBACK KidWndProc ( HWND, USHORT, MPARAM, MPARAM ); +VOID APIENTRY APPPaint ( HWND ); +MRESULT CALLBACK BioDlg ( HWND, USHORT, MPARAM, MPARAM ); +MRESULT CALLBACK About ( HWND, USHORT, MPARAM, MPARAM ); +MRESULT CALLBACK FrameWndProc ( HWND, USHORT, MPARAM, MPARAM ); -double PASCAL julian ( int, int, double ); -void PASCAL calendar ( double, int *, int *, double * ); -long PASCAL trunc4 ( double ); +double PASCAL julian ( int, int, double ); +void PASCAL calendar ( double, int *, int *, double * ); +long PASCAL trunc4 ( double );