File:  [OS/2 SDKs] / os232sdk / toolkt20 / c / samples / semaph / sem_main.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:26:30 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: os2sdk-1990, HEAD
Microsoft OS/2 SDK 2.0 05-30-1990

/*==============================================================*\
 *								*
 *  Sem_main.h Sample PM application header file		*
 *      Created 1990, Microsoft, IBM Corp.                      *
 *								*
 *--------------------------------------------------------------*
 *								*
 *  This header file contains the application wide constants	*
 *  and structure definitions.					*
 *								*
\*==============================================================*/

#define IDR_SAMPLE	 8	/* resource identifier */
#define ID_TIMER     9
/*--------------------------------------------------------------*\
 *  Menu item ids						*
\*--------------------------------------------------------------*/
#define IDM_FILE			    1000
#define IDM_FILENEW			    1100
#define IDM_FILEOPEN			    1200
#define IDM_FILESAVE			    1300
#define IDM_FILESAVEAS			    1400
#define IDM_FILEPRINT			    1500
#define IDM_FILEPAGESETUP		    1600
#define IDM_FILEPRINTSETUP		    1700
#define IDM_FILEEXIT			    1800

#define IDM_EDIT			    2000
#define IDM_EDITUNDO			    2100
#define IDM_EDITCUT			    2200
#define IDM_EDITCOPY			    2300
#define IDM_EDITPASTE			    2400
#define IDM_EDITCLEAR			    2500

#define IDM_OPTIONS			    4000
#define IDM_OPTIONS_NTHRDS  		    4100
#define IDM_OPTIONS_NTHRDS_2            4102
#define IDM_OPTIONS_NTHRDS_4            4104
#define IDM_OPTIONS_NTHRDS_8            4108
#define IDM_OPTIONS_NTHRDS_16           4116
#define IDM_OPTIONS_TIMEOUT 		    4200

#define IDM_SEMEXAMPLE                5000
#define IDM_SEMSTART                  5100
#define IDM_SEMSTART_MANUAL           5110
#define IDM_SEMSTART_AUTO             5120
#define IDM_SEMSTOP                   5200
#define IDM_SEM_RESUMEAUTO            5300

#define IDM_POST                    6000

#define IDM_HELP			        9000
#define IDM_HELPHELPFORHELP		    9100
#define IDM_HELPEXTENDED		    9200
#define IDM_HELPKEYS			    9300
#define IDM_HELPINDEX			    9400
#define IDM_HELPTUTORIAL		    9500
#define IDM_HELPABOUT			    9600

/* private message */
#define IDM_STOPFINISHED           10000
/*--------------------------------------------------------------*\
 *  Dialog item ids						*
\*--------------------------------------------------------------*/
#define ID_OK		    1
#define ID_CANCEL	    2

/*--------------------------------------------------------------*\
 *  Stringtable ids						*
\*--------------------------------------------------------------*/
#define IDS_APPNAME		      1
#define IDS_INFOONE           2
#define IDS_INFOTWO           3
#define IDS_HELPLIBRARYNAME	  4
#define IDS_FILEOPENEXT 	  5

/*--------------------------------------------------------------*\
 *  Messagetable ids						*
\*--------------------------------------------------------------*/
#define IDMSG_INITFAILED		1
#define IDMSG_MAINWINCREATEFAILED	2
#define IDMSG_CANNOTOPENINPUTFILE	3
#define IDMSG_CANNOTRUNPAGESETUP	4
#define IDMSG_CANNOTRUNPRINTSETUP	5
#define IDMSG_CANNOTRUNPRINT		6
#define IDMSG_CANNOTRUNCOLOR		7
#define IDMSG_CANNOTGETHPS		8
#define IDMSG_HELPLOADERROR		9
#define IDMSG_CANNOTLOADSTRING	       10
#define IDMSG_CANNOTOPENPRINTER        11
#define IDMSG_CANNOTSTART       12

/*--------------------------------------------------------------*\
 *  Other constants						*
\*--------------------------------------------------------------*/
#define MAXTEXTLEN	40    /* maximum text length for window */
#define MESSAGELEN	80    /* maximum length for messages */
#define MAXAPPNAMELEN	15

/*--------------------------------------------------------------*\
 *  Data structures and typedefs				*
\*--------------------------------------------------------------*/

struct _WINDOWDATA  {
    LONG clrFore;
    LONG clrBack;
    UCHAR *szText[MAXTEXTLEN + 1];
};

typedef struct _WINDOWDATA WINDOWDATA;
/* hungarian notation: wdata */
typedef WINDOWDATA * PWINDOWDATA;

#define WM_USERCHANGED    (WM_USER+1)

/******************************************************
 *
 * Cruiser version define
 *
 ******************************************************/
#define     VER678

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.