Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

128 lines
3.8 KiB

/*****************************************************************************
* *
* HDEF.H *
* *
* Copyright (C) Microsoft Corporation 1990. *
* All Rights reserved. *
* *
******************************************************************************
* *
* Module Intent *
* *
* Contains "global" #defines for the applet portion of the system *
* *
******************************************************************************
* *
* Testing Notes *
* *
* *
******************************************************************************
* *
* Current Owner: *
* *
******************************************************************************
* *
* Released by Development: *
* *
*****************************************************************************/
/*****************************************************************************
*
* Revision History:
*
* 07/10/90 RobertBu TITLEY was removed (and wTitleY was added to HVAR.H).
* ICON_SURROUND was set to zero. The frame was removed from
* grfStyleTitle
* 07/19/90 RobertBu Changed MAX_ICONS from 6 to 4 for authorable browse
* 09/07/90 w-bethf Added BETA stuff.
* 12/21/90 LeoN Removed pchPath
*
*****************************************************************************/
#define DLGRET BOOL __export STDCALL
typedef BOOL (__export STDCALL* WHDLGPROC)(HWND, UINT16, WPARAM, LPARAM);
#undef PCH
#define MINHEIGHT 221
#define MINNOTEWIDTH 250 // Min width for glossary window
#define MAX_HELP_FILES 500 // maximum help files for global index
#define ICONX 52
#define ICONY 20
#define ICON_SURROUND 0 // Number of pixels to place on all
// sides of an icon
/* rgwndIcon[] entry for each icon */
#define ICON_USER -1
#define grfStyleHelp (WS_OVERLAPPEDWINDOW|WS_CLIPCHILDREN)
#define grfStyleNote (WS_POPUP)
#define grfStylePath (WS_CAPTION|WS_THICKFRAME|WS_SYSMENU)
#define grfStyleText (WS_CHILD|WS_VISIBLE|WS_BORDER|SS_LEFT)
#define grfStyleList (WS_CHILD|WS_VISIBLE|WS_VSCROLL|LBS_NOTIFY|LBS_NOINTEGRALHEIGHT|LBS_WANTKEYBOARDINPUT)
#define grfStyleNSR (WS_CHILD)
#define grfStyleTopic (WS_CHILD|WS_VSCROLL|WS_HSCROLL)
#define grfStyleIcon (WS_CHILD)
#define grfStyleButton (WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON)
/* Different types of Goto()s. fGOTO_TLP_RESIZEONLY
* was added to get all the benefits of a layout change,
* without actually doing a Jump.
*/
#define fGOTO_CTX 1
#define fGOTO_ITO 2
#define fGOTO_TLP 3
#define fGOTO_LA 4
#define fGOTO_HASH 5
#define fGOTO_RSS 6
#define fGOTO_TLP_RESIZEONLY 7
/* wKeyRepeat(x) On a KEY-class message: Gives repeat count of key */
#define wKeyRepeat(x) ((WORD)((x) & 0x0000FFFFL))
/* fRepeatedKey(x) On a KEY-class message: Was the key up
* before this, or is this a repeat? */
#define fRepeatedKey(x) ((x) & 0x40000000L)
/* fKeyDown(x) Is key down? */
#define fKeyDown(x) (GetKeyState(x) & 0x8000)
// Macros for determining width or height of a rectangle or rectangle pointer
#define RECT_WIDTH(rc) (rc.right - rc.left)
#define RECT_HEIGHT(rc) (rc.bottom - rc.top)
#define PRECT_WIDTH(prc) (prc->right - prc->left)
#define PRECT_HEIGHT(prc) (prc->bottom - prc->top)
enum {
NO_CONTENTS,
SAME_CONTENTS,
NEW_CONTENTS
};
UINT16 STDCALL FindGidFile(void);
extern INT16 idOldTab; // so commands.c can use it
enum {
TAB_CONTENTS,
TAB_INDEX,
TAB_FIND,
TAB_1, // additional tabs
TAB_2,
TAB_3,
TAB_4,
TAB_5,
TAB_6,
};
#define FILESEPARATOR '@' // same as in RTF files
#define WINDOWSEPARATOR '>' // same as in RTF files