Пример #1
0
#include "sdmver.h"
#include "sdm.h"
#include "sdmtmpl.h"
#include "sdmparse.h"

extern BOOL fElActive;
extern struct PREF vpref;
extern HWND vhwndStartup;
extern HWND vhwndStatLine;
extern struct MERR  vmerr;
extern HWND vhwndApp;
extern int vcxtHelp;  /* help context */
extern BOOL vfDeactByOtherApp;
extern int vcInMessageBox;

char szOk[] = SzGlobalKey("OK", SdmOk);
char szCancel[] = SzGlobalKey("Cancel", SdmCancel);

/*  %%Function:  FSdmDoIdle  %%Owner:  bobz       */

BOOL FSdmDoIdle(fFirst)
BOOL fFirst;
{
#ifdef BATCH
	/* If vfBatchIdle is true, allow idle-ing in batch mode */
	if (vfBatchMode && !vfBatchIdle)
		BatchModeError(SzShared("Idle entered! (SDM)"), NULL, 0, 0);
#endif /* BATCH */


	/* first time returns true so sdm will keep sending idle
Пример #2
0
#ifdef WIN23
SLM rgslm[isiMax3];			/* status line measurements (dxp values) */
HFONT hfontStatLine;		/* Helv 12 pt. font for status line */
#endif /* WIN23 */
/*  table of unit names used in util2.c, prvw2.c. Order 
	must be same as ut* order (utInch = 0, utPt = 1, etc.) in disp.h

	INTL note: this table is now used to drive FzaFromSs. The way comparisons
	are done, no entry in the table can be a suffix of another unless it
	comes before it in the table. E.g., p and tp will not work, unless
	tp is first. This is because we go through the table in order, comparing
	the # of chars in the table entry against the end of the string. bz
*/
CHAR    *mputsz[utMax] =
{	
	SzGlobalKey("\"",Inch),               /* szInchDef */
	SzGlobalKey("pt",VarsPoint),	      /* szPtDef */
	SzGlobalKey("cm",Centimeter),         /* szCmDef */
	SzGlobalKey("pi",Picas),              /* szPicasDef */
	SzGlobalKey("p10",TenPoint),          /* szP10Def */
	SzGlobalKey("p12",TwelvePoint),       /* szP12Def */
	SzGlobalKey("li",VarsLine)	 	     /* szLineDef */

#ifdef INTL	 /* FUTURE make sure wordwin.h, dialog3 tables updated */
	,SzGlobalKey("in",Inch2)	             /* szInch2Def */
#endif /* INTL */

};


/* ****
Пример #3
0
CHAR            szApp[] = szAppDef;
#ifdef MKTGPRVW
CHAR            szAppTitle[] = szAppTitleDef;
#endif /* MKTGPRVW */
#ifdef DEMO
CHAR            szAppTitle[] = szAppTitleDef;
#endif /* DEMO */

/* these are initialized from win.ini at startup */
CHAR	    	szDoc[5]; /* ".DOC" */
CHAR	    	szDot[5]; /* ".DOT" */
CHAR	    	szBak[5]; /* ".BAK" */

/* tif file default extension. LATER - should be in win.ini? bz */
CHAR            szTif[] = SzGlobalKey(".TIF",TIF);

/* NORMAL.DOT file name */
CHAR            stNormalDot[] = StGlobalKey("NORMAL",NORMAL); /* do not include extension */

/* ...and now for something completely different; the word "None" */
CHAR            szNone[] = SzGlobalKey("None", None);

/* E X T E R N A L S */
extern struct PREF      vpref;
extern struct PREF      vprefCBT;  /* pref's before CBT run; restore after */
/* extern struct SAB       vsab; */

extern struct BPTB      vbptbExt;

extern struct SEL       selCur;