Category : Windows 3.X Files
Archive   : ACTTIMS.ZIP
Filename : ACTWIN.H
#define FALSE 0
#define TRUE 1
!!
/*--------------------------------------------------------------------------*/
/* USER Section */
/*--------------------------------------------------------------------------*/
/* Scroll Bar Constants */
#define SB_HORZ 0
#define SB_VERT 1
#define SB_CTL 2
#define SB_BOTH 3
!!
/* Scroll Bar Commands */
#define SB_LINEUP 0
#define SB_LINEDOWN 1
#define SB_PAGEUP 2
#define SB_PAGEDOWN 3
#define SB_THUMBPOSITION 4
#define SB_THUMBTRACK 5
#define SB_TOP 6
#define SB_BOTTOM 7
#define SB_ENDSCROLL 8
!!
/* ShowWindow() Commands */
#define SW_HIDE 0
#define SW_SHOWNORMAL 1
#define SW_NORMAL 1
#define SW_SHOWMINIMIZED 2
#define SW_SHOWMAXIMIZED 3
#define SW_MAXIMIZE 3
#define SW_SHOWNOACTIVATE 4
#define SW_SHOW 5
#define SW_MINIMIZE 6
#define SW_SHOWMINNOACTIVE 7
#define SW_SHOWNA 8
#define SW_RESTORE 9
!!
/* Old ShowWindow() Commands */
#define HIDE_WINDOW 0
#define SHOW_OPENWINDOW 1
#define SHOW_ICONWINDOW 2
#define SHOW_FULLSCREEN 3
#define SHOW_OPENNOACTIVATE 4
!!
/* Identifiers for the WM_SHOWWINDOW message */
#define SW_PARENTCLOSING 1
#define SW_OTHERZOOM 2
#define SW_PARENTOPENING 3
#define SW_OTHERUNZOOM 4
!!
/* Region Flags */
#define ERROR 0
#define NULLREGION 1
#define SIMPLEREGION 2
#define COMPLEXREGION 3
!!
/* CombineRgn() Styles */
#define RGN_AND 1
#define RGN_OR 2
#define RGN_XOR 3
#define RGN_DIFF 4
#define RGN_COPY 5
!!
/* Virtual Keys, Standard Set */
#define VK_LBUTTON 0x01
#define VK_RBUTTON 0x02
#define VK_CANCEL 0x03
#define VK_MBUTTON 0x04 /* NOT contiguous with L & RBUTTON */
#define VK_BACK 0x08
#define VK_TAB 0x09
#define VK_CLEAR 0x0C
#define VK_RETURN 0x0D
#define VK_SHIFT 0x10
#define VK_CONTROL 0x11
#define VK_MENU 0x12
#define VK_PAUSE 0x13
#define VK_CAPITAL 0x14
#define VK_ESCAPE 0x1B
#define VK_SPACE 0x20
#define VK_PRIOR 0x21
#define VK_NEXT 0x22
#define VK_END 0x23
#define VK_HOME 0x24
#define VK_LEFT 0x25
#define VK_UP 0x26
#define VK_RIGHT 0x27
#define VK_DOWN 0x28
#define VK_SELECT 0x29
#define VK_PRINT 0x2A
#define VK_EXECUTE 0x2B
#define VK_SNAPSHOT 0x2C
/* #define VK_COPY 0x2C not used by keyboards. */
#define VK_INSERT 0x2D
#define VK_DELETE 0x2E
#define VK_HELP 0x2F
!!
/* VK_A thru VK_Z are the same as their ASCII equivalents: 'A' thru 'Z' */
/* VK_0 thru VK_9 are the same as their ASCII equivalents: '0' thru '0' */
#define VK_NUMPAD0 0x60
#define VK_NUMPAD1 0x61
#define VK_NUMPAD2 0x62
#define VK_NUMPAD3 0x63
#define VK_NUMPAD4 0x64
#define VK_NUMPAD5 0x65
#define VK_NUMPAD6 0x66
#define VK_NUMPAD7 0x67
#define VK_NUMPAD8 0x68
#define VK_NUMPAD9 0x69
#define VK_MULTIPLY 0x6A
#define VK_ADD 0x6B
#define VK_SEPARATOR 0x6C
#define VK_SUBTRACT 0x6D
#define VK_DECIMAL 0x6E
#define VK_DIVIDE 0x6F
#define VK_F1 0x70
#define VK_F2 0x71
#define VK_F3 0x72
#define VK_F4 0x73
#define VK_F5 0x74
#define VK_F6 0x75
#define VK_F7 0x76
#define VK_F8 0x77
#define VK_F9 0x78
#define VK_F10 0x79
#define VK_F11 0x7A
#define VK_F12 0x7B
#define VK_F13 0x7C
#define VK_F14 0x7D
#define VK_F15 0x7E
#define VK_F16 0x7F
!!
#define VK_NUMLOCK 0x90
!!
/* SetWindowsHook() codes */
#define WH_MSGFILTER -1
#define WH_JOURNALRECORD 0
#define WH_JOURNALPLAYBACK 1
#define WH_KEYBOARD 2
#define WH_GETMESSAGE 3
#define WH_CALLWNDPROC 4
#define WH_CBT 5
#define WH_SYSMSGFILTER 6
#define WH_WINDOWMGR 7
!!
/* Hook Codes */
#define HC_LPLPFNNEXT -2
#define HC_LPFNNEXT -1
#define HC_ACTION 0
#define HC_GETNEXT 1
#define HC_SKIP 2
#define HC_NOREM 3
#define HC_NOREMOVE 3
#define HC_SYSMODALON 4
#define HC_SYSMODALOFF 5
!!
/* CBT Hook Codes */
#define HCBT_MOVESIZE 0
#define HCBT_MINMAX 1
#define HCBT_QS 2
!!
/* WH_MSGFILTER Filter Proc Codes */
#define MSGF_DIALOGBOX 0
#define MSGF_MESSAGEBOX 1
#define MSGF_MENU 2
#define MSGF_MOVE 3
#define MSGF_SIZE 4
#define MSGF_SCROLLBAR 5
#define MSGF_NEXTWINDOW 6
!!
/* Window Manager Hook Codes */
#define WC_INIT 1
#define WC_SWP 2
#define WC_DEFWINDOWPROC 3
#define WC_MINMAX 4
#define WC_MOVE 5
#define WC_SIZE 6
#define WC_DRAWCAPTION 7
!!
/* Window field offsets for GetWindowLong() and GetWindowWord() */
#define GWL_WNDPROC -4
#define GWW_HINSTANCE -6
#define GWW_HWNDPARENT -8
#define GWW_ID -12
#define GWL_STYLE -16
#define GWL_EXSTYLE -20
!!
/* Class field offsets for GetClassLong() and GetClassWord() */
#define GCL_MENUNAME -8
#define GCW_HBRBACKGROUND -10
#define GCW_HCURSOR -12
#define GCW_HICON -14
#define GCW_HMODULE -16
#define GCW_CBWNDEXTRA -18
#define GCW_CBCLSEXTRA -20
#define GCL_WNDPROC -24
#define GCW_STYLE -26
!!
/* Window Messages */
#define WM_NULL 0x0000
#define WM_CREATE 0x0001
#define WM_DESTROY 0x0002
#define WM_MOVE 0x0003
#define WM_SIZE 0x0005
#define WM_ACTIVATE 0x0006
#define WM_SETFOCUS 0x0007
#define WM_KILLFOCUS 0x0008
#define WM_ENABLE 0x000A
#define WM_SETREDRAW 0x000B
#define WM_SETTEXT 0x000C
#define WM_GETTEXT 0x000D
#define WM_GETTEXTLENGTH 0x000E
#define WM_PAINT 0x000F
#define WM_CLOSE 0x0010
#define WM_QUERYENDSESSION 0x0011
#define WM_QUIT 0x0012
#define WM_QUERYOPEN 0x0013
#define WM_ERASEBKGND 0x0014
#define WM_SYSCOLORCHANGE 0x0015
#define WM_ENDSESSION 0x0016
#define WM_SHOWWINDOW 0x0018
#define WM_CTLCOLOR 0x0019
#define WM_WININICHANGE 0x001A
#define WM_DEVMODECHANGE 0x001B
#define WM_ACTIVATEAPP 0x001C
#define WM_FONTCHANGE 0x001D
#define WM_TIMECHANGE 0x001E
#define WM_CANCELMODE 0x001F
#define WM_SETCURSOR 0x0020
#define WM_MOUSEACTIVATE 0x0021
#define WM_CHILDACTIVATE 0x0022
#define WM_QUEUESYNC 0x0023
#define WM_GETMINMAXINFO 0x0024
#define WM_PAINTICON 0x0026
#define WM_ICONERASEBKGND 0x0027
#define WM_NEXTDLGCTL 0x0028
#define WM_SPOOLERSTATUS 0x002A
#define WM_DRAWITEM 0x002B
#define WM_MEASUREITEM 0x002C
#define WM_DELETEITEM 0x002D
#define WM_VKEYTOITEM 0x002E
#define WM_CHARTOITEM 0x002F
#define WM_SETFONT 0x0030
#define WM_GETFONT 0x0031
!!
#define WM_QUERYDRAGICON 0x0037
#define WM_COMPAREITEM 0x0039
#define WM_COMPACTING 0x0041
#define WM_NCCREATE 0x0081
#define WM_NCDESTROY 0x0082
#define WM_NCCALCSIZE 0x0083
#define WM_NCHITTEST 0x0084
#define WM_NCPAINT 0x0085
#define WM_NCACTIVATE 0x0086
#define WM_GETDLGCODE 0x0087
#define WM_NCMOUSEMOVE 0x00A0
#define WM_NCLBUTTONDOWN 0x00A1
#define WM_NCLBUTTONUP 0x00A2
#define WM_NCLBUTTONDBLCLK 0x00A3
#define WM_NCRBUTTONDOWN 0x00A4
#define WM_NCRBUTTONUP 0x00A5
#define WM_NCRBUTTONDBLCLK 0x00A6
#define WM_NCMBUTTONDOWN 0x00A7
#define WM_NCMBUTTONUP 0x00A8
#define WM_NCMBUTTONDBLCLK 0x00A9
!!
#define WM_KEYFIRST 0x0100
#define WM_KEYDOWN 0x0100
#define WM_KEYUP 0x0101
#define WM_CHAR 0x0102
#define WM_DEADCHAR 0x0103
#define WM_SYSKEYDOWN 0x0104
#define WM_SYSKEYUP 0x0105
#define WM_SYSCHAR 0x0106
#define WM_SYSDEADCHAR 0x0107
#define WM_KEYLAST 0x0108
!!
#define WM_INITDIALOG 0x0110
#define WM_COMMAND 0x0111
#define WM_SYSCOMMAND 0x0112
#define WM_TIMER 0x0113
#define WM_HSCROLL 0x0114
#define WM_VSCROLL 0x0115
#define WM_INITMENU 0x0116
#define WM_INITMENUPOPUP 0x0117
#define WM_MENUSELECT 0x011F
#define WM_MENUCHAR 0x0120
#define WM_ENTERIDLE 0x0121
!!
#define WM_MOUSEFIRST 0x0200
#define WM_MOUSEMOVE 0x0200
#define WM_LBUTTONDOWN 0x0201
#define WM_LBUTTONUP 0x0202
#define WM_LBUTTONDBLCLK 0x0203
#define WM_RBUTTONDOWN 0x0204
#define WM_RBUTTONUP 0x0205
#define WM_RBUTTONDBLCLK 0x0206
#define WM_MBUTTONDOWN 0x0207
#define WM_MBUTTONUP 0x0208
#define WM_MBUTTONDBLCLK 0x0209
#define WM_MOUSELAST 0x0209
!!
#define WM_PARENTNOTIFY 0x0210
#define WM_MDICREATE 0x0220
#define WM_MDIDESTROY 0x0221
#define WM_MDIACTIVATE 0x0222
#define WM_MDIRESTORE 0x0223
#define WM_MDINEXT 0x0224
#define WM_MDIMAXIMIZE 0x0225
#define WM_MDITILE 0x0226
#define WM_MDICASCADE 0x0227
#define WM_MDIICONARRANGE 0x0228
#define WM_MDIGETACTIVE 0x0229
#define WM_MDISETMENU 0x0230
!!
#define WM_CUT 0x0300
#define WM_COPY 0x0301
#define WM_PASTE 0x0302
#define WM_CLEAR 0x0303
#define WM_UNDO 0x0304
#define WM_RENDERFORMAT 0x0305
#define WM_RENDERALLFORMATS 0x0306
#define WM_DESTROYCLIPBOARD 0x0307
#define WM_DRAWCLIPBOARD 0x0308
#define WM_PAINTCLIPBOARD 0x0309
#define WM_VSCROLLCLIPBOARD 0x030A
#define WM_SIZECLIPBOARD 0x030B
#define WM_ASKCBFORMATNAME 0x030C
#define WM_CHANGECBCHAIN 0x030D
#define WM_HSCROLLCLIPBOARD 0x030E
#define WM_QUERYNEWPALETTE 0x030F
#define WM_PALETTEISCHANGING 0x0310
#define WM_PALETTECHANGED 0x0311
!!
/* NOTE: All Message Numbers below 0x0400 are RESERVED. */
/* Private Window Messages Start Here: */
#define WM_USER 0x0400
/* WM_SYNCTASK Commands */
#define ST_BEGINSWP 0
#define ST_ENDSWP 1
/* WinWhere() Area Codes */
#define HTERROR -2
#define HTTRANSPARENT -1
#define HTNOWHERE 0
#define HTCLIENT 1
#define HTCAPTION 2
#define HTSYSMENU 3
#define HTGROWBOX 4
#define HTSIZE HTGROWBOX
#define HTMENU 5
#define HTHSCROLL 6
#define HTVSCROLL 7
#define HTREDUCE 8
#define HTZOOM 9
#define HTLEFT 10
#define HTRIGHT 11
#define HTTOP 12
#define HTTOPLEFT 13
#define HTTOPRIGHT 14
#define HTBOTTOM 15
#define HTBOTTOMLEFT 16
#define HTBOTTOMRIGHT 17
#define HTSIZEFIRST HTLEFT
#define HTSIZELAST HTBOTTOMRIGHT
!!
/* WM_MOUSEACTIVATE Return Codes */
#define MA_ACTIVATE 1
#define MA_ACTIVATEANDEAT 2
#define MA_NOACTIVATE 3
!!
/* Size Message Commands */
#define SIZENORMAL 0
#define SIZEICONIC 1
#define SIZEFULLSCREEN 2
#define SIZEZOOMSHOW 3
#define SIZEZOOMHIDE 4
!!
/* Key State Masks for Mouse Messages */
#define MK_LBUTTON 0x0001
#define MK_RBUTTON 0x0002
#define MK_SHIFT 0x0004
#define MK_CONTROL 0x0008
#define MK_MBUTTON 0x0010
!!
/* Window Styles */
#define WS_OVERLAPPED 0x00000000L
#define WS_POPUP 0x80000000L
#define WS_CHILD 0x40000000L
#define WS_MINIMIZE 0x20000000L
#define WS_VISIBLE 0x10000000L
#define WS_DISABLED 0x08000000L
#define WS_CLIPSIBLINGS 0x04000000L
#define WS_CLIPCHILDREN 0x02000000L
#define WS_MAXIMIZE 0x01000000L
#define WS_CAPTION 0x00C00000L /* WS_BORDER | WS_DLGFRAME */
#define WS_BORDER 0x00800000L
#define WS_DLGFRAME 0x00400000L
#define WS_VSCROLL 0x00200000L
#define WS_HSCROLL 0x00100000L
#define WS_SYSMENU 0x00080000L
#define WS_THICKFRAME 0x00040000L
#define WS_GROUP 0x00020000L
#define WS_TABSTOP 0x00010000L
!!
#define WS_MINIMIZEBOX 0x00020000L
#define WS_MAXIMIZEBOX 0x00010000L
!!
#define WS_TILED WS_OVERLAPPED
#define WS_ICONIC WS_MINIMIZE
#define WS_SIZEBOX WS_THICKFRAME
!!
/* Common Window Styles */
#define WS_OVERLAPPEDWINDOW 0x21CC0000L
#define WS_POPUPWINDOW 0x80880000L
#define WS_CHILDWINDOW WS_CHILD
#define WS_TILEDWINDOW WS_OVERLAPPEDWINDOW
!!
/* Extended Window Styles */
#define WS_EX_DLGMODALFRAME 0x00000001L
#define WS_EX_NOPARENTNOTIFY 0x00000004L
!!
/* Class styles */
#define CS_VREDRAW 0x0001
#define CS_HREDRAW 0x0002
#define CS_KEYCVTWINDOW 0x0004
#define CS_DBLCLKS 0x0008
/* 0x0010 -- no longer used */
#define CS_OWNDC 0x0020
#define CS_CLASSDC 0x0040
#define CS_PARENTDC 0x0080
#define CS_NOKEYCVT 0x0100
#define CS_NOCLOSE 0x0200
#define CS_SAVEBITS 0x0800
#define CS_BYTEALIGNCLIENT 0x1000
#define CS_BYTEALIGNWINDOW 0x2000
#define CS_GLOBALCLASS 0x4000 /* Global window class */
!!
/* Predefined Clipboard Formats */
#define CF_TEXT 1
#define CF_BITMAP 2
#define CF_METAFILEPICT 3
#define CF_SYLK 4
#define CF_DIF 5
#define CF_TIFF 6
#define CF_OEMTEXT 7
#define CF_DIB 8
#define CF_PALETTE 9
!!
#define CF_OWNERDISPLAY 0x0080
#define CF_DSPTEXT 0x0081
#define CF_DSPBITMAP 0x0082
#define CF_DSPMETAFILEPICT 0x0083
!!
/* "Private" formats don't get GlobalFree()'d */
#define CF_PRIVATEFIRST 0x0200
#define CF_PRIVATELAST 0x02FF
!!
/* "GDIOBJ" formats do get DeleteObject()'d */
#define CF_GDIOBJFIRST 0x0300
#define CF_GDIOBJLAST 0x03FF
!!
/* Owner draw control types */
#define ODT_MENU 1
#define ODT_LISTBOX 2
#define ODT_COMBOBOX 3
#define ODT_BUTTON 4
!!
/* Owner draw actions */
#define ODA_DRAWENTIRE 0x0001
#define ODA_SELECT 0x0002
#define ODA_FOCUS 0x0004
!!
/* Owner draw state */
#define ODS_SELECTED 0x0001
#define ODS_GRAYED 0x0002
#define ODS_DISABLED 0x0004
#define ODS_CHECKED 0x0008
#define ODS_FOCUS 0x0010
!!
/* PeekMessage() Options */
#define PM_NOREMOVE 0x0000
#define PM_REMOVE 0x0001
#define PM_NOYIELD 0x0002
!!
#define READ 0 /* Flags for _lopen */
#define WRITE 1
#define READ_WRITE 2
/* SetWindowPos Flags */
#define SWP_NOSIZE 0x0001
#define SWP_NOMOVE 0x0002
#define SWP_NOZORDER 0x0004
#define SWP_NOREDRAW 0x0008
#define SWP_NOACTIVATE 0x0010
#define SWP_DRAWFRAME 0x0020
#define SWP_SHOWWINDOW 0x0040
#define SWP_HIDEWINDOW 0x0080
#define SWP_NOCOPYBITS 0x0100
#define SWP_NOREPOSITION 0x0200
!!
/* GetSystemMetrics() codes */
#define SM_CXSCREEN 0
#define SM_CYSCREEN 1
#define SM_CXVSCROLL 2
#define SM_CYHSCROLL 3
#define SM_CYCAPTION 4
#define SM_CXBORDER 5
#define SM_CYBORDER 6
#define SM_CXDLGFRAME 7
#define SM_CYDLGFRAME 8
#define SM_CYVTHUMB 9
#define SM_CXHTHUMB 10
#define SM_CXICON 11
#define SM_CYICON 12
#define SM_CXCURSOR 13
#define SM_CYCURSOR 14
#define SM_CYMENU 15
#define SM_CXFULLSCREEN 16
#define SM_CYFULLSCREEN 17
#define SM_CYKANJIWINDOW 18
#define SM_MOUSEPRESENT 19
#define SM_CYVSCROLL 20
#define SM_CXHSCROLL 21
#define SM_DEBUG 22
#define SM_SWAPBUTTON 23
#define SM_RESERVED1 24
#define SM_RESERVED2 25
#define SM_RESERVED3 26
#define SM_RESERVED4 27
#define SM_CXMIN 28
#define SM_CYMIN 29
#define SM_CXSIZE 30
#define SM_CYSIZE 31
#define SM_CXFRAME 32
#define SM_CYFRAME 33
#define SM_CXMINTRACK 34
#define SM_CYMINTRACK 35
#define SM_CMETRICS 36
!!
/* MessageBox() Flags */
#define MB_OK 0x0000
#define MB_OKCANCEL 0x0001
#define MB_ABORTRETRYIGNORE 0x0002
#define MB_YESNOCANCEL 0x0003
#define MB_YESNO 0x0004
#define MB_RETRYCANCEL 0x0005
!!
#define MB_ICONHAND 0x0010
#define MB_ICONQUESTION 0x0020
#define MB_ICONEXCLAMATION 0x0030
#define MB_ICONASTERISK 0x0040
!!
#define MB_ICONINFORMATION MB_ICONASTERISK
#define MB_ICONSTOP MB_ICONHAND
!!
#define MB_DEFBUTTON1 0x0000
#define MB_DEFBUTTON2 0x0100
#define MB_DEFBUTTON3 0x0200
!!
#define MB_APPLMODAL 0x0000
#define MB_SYSTEMMODAL 0x1000
#define MB_TASKMODAL 0x2000
!!
#define MB_NOFOCUS 0x8000
!!
#define MB_TYPEMASK 0x000F
#define MB_ICONMASK 0x00F0
#define MB_DEFMASK 0x0F00
#define MB_MODEMASK 0x3000
#define MB_MISCMASK 0xC000
!!
/* Color Types */
#define CTLCOLOR_MSGBOX 0
#define CTLCOLOR_EDIT 1
#define CTLCOLOR_LISTBOX 2
#define CTLCOLOR_BTN 3
#define CTLCOLOR_DLG 4
#define CTLCOLOR_SCROLLBAR 5
#define CTLCOLOR_STATIC 6
#define CTLCOLOR_MAX 8 /* three bits max */
!!
#define COLOR_SCROLLBAR 0
#define COLOR_BACKGROUND 1
#define COLOR_ACTIVECAPTION 2
#define COLOR_INACTIVECAPTION 3
#define COLOR_MENU 4
#define COLOR_WINDOW 5
#define COLOR_WINDOWFRAME 6
#define COLOR_MENUTEXT 7
#define COLOR_WINDOWTEXT 8
#define COLOR_CAPTIONTEXT 9
#define COLOR_ACTIVEBORDER 10
#define COLOR_INACTIVEBORDER 11
#define COLOR_APPWORKSPACE 12
#define COLOR_HIGHLIGHT 13
#define COLOR_HIGHLIGHTTEXT 14
#define COLOR_BTNFACE 15
#define COLOR_BTNSHADOW 16
#define COLOR_GRAYTEXT 17
#define COLOR_BTNTEXT 18
#define COLOR_ENDCOLORS COLOR_BTNTEXT
!!
/* GetWindow() Constants */
#define GW_HWNDFIRST 0
#define GW_HWNDLAST 1
#define GW_HWNDNEXT 2
#define GW_HWNDPREV 3
#define GW_OWNER 4
#define GW_CHILD 5
!!
/* Menu flags for Add/Check/EnableMenuItem() */
#define MF_INSERT 0x0000
#define MF_CHANGE 0x0080
#define MF_APPEND 0x0100
#define MF_DELETE 0x0200
#define MF_REMOVE 0x1000
#define MF_BYCOMMAND 0x0000
#define MF_BYPOSITION 0x0400
!!
#define MF_SEPARATOR 0x0800
#define MF_ENABLED 0x0000
#define MF_GRAYED 0x0001
#define MF_DISABLED 0x0002
#define MF_UNCHECKED 0x0000
#define MF_CHECKED 0x0008
#define MF_USECHECKBITMAPS 0x0200
#define MF_STRING 0x0000
#define MF_BITMAP 0x0004
#define MF_OWNERDRAW 0x0100
#define MF_POPUP 0x0010
#define MF_MENUBARBREAK 0x0020
#define MF_MENUBREAK 0x0040
!!
#define MF_UNHILITE 0x0000
#define MF_HILITE 0x0080
#define MF_SYSMENU 0x2000
#define MF_HELP 0x4000
#define MF_MOUSESELECT 0x8000
#define MF_END 0x0080
!!
/* System Menu Command Values */
#define SC_SIZE 0xF000
#define SC_MOVE 0xF010
#define SC_MINIMIZE 0xF020
#define SC_MAXIMIZE 0xF030
#define SC_NEXTWINDOW 0xF040
#define SC_PREVWINDOW 0xF050
#define SC_CLOSE 0xF060
#define SC_VSCROLL 0xF070
#define SC_HSCROLL 0xF080
#define SC_MOUSEMENU 0xF090
#define SC_KEYMENU 0xF100
#define SC_ARRANGE 0xF110
#define SC_RESTORE 0xF120
#define SC_TASKLIST 0xF130
#define SC_ICON SC_MINIMIZE
#define SC_ZOOM SC_MAXIMIZE
!!
/* Standard Cursor IDs */
#define IDC_ARROW 32512
#define IDC_IBEAM 32513
#define IDC_WAIT 32514
#define IDC_CROSS 32515
#define IDC_UPARROW 32516
#define IDC_SIZE 32640
#define IDC_ICON 32641
#define IDC_SIZENWSE 32642
#define IDC_SIZENESW 32643
#define IDC_SIZEWE 32644
#define IDC_SIZENS 32645
!!
#define ORD_LANGDRIVER 1 /* The ordinal number for the entry point of
** language drivers.
*/
/* Standard Icon IDs */
#define IDI_APPLICATION 32512
#define IDI_HAND 32513
#define IDI_QUESTION 32514
#define IDI_EXCLAMATION 32515
#define IDI_ASTERISK 32516
!!
#define CP_HWND 0
#define CP_OPEN 1
#define CP_DIRECT 2
!!
/* VK from the keyboard driver */
#define VK_KANA 0x15
#define VK_ROMAJI 0x16
#define VK_ZENKAKU 0x17
#define VK_HIRAGANA 0x18
#define VK_KANJI 0x19
/* VK to send to Applications */
#define VK_CONVERT 0x1C
#define VK_NONCONVERT 0x1D
#define VK_ACCEPT 0x1E
#define VK_MODECHANGE 0x1F
!!
/* Conversion function numbers */
#define KNJ_START 0x01
#define KNJ_END 0x02
#define KNJ_QUERY 0x03
#define KNJ_LEARN_MODE 0x10
#define KNJ_GETMODE 0x11
#define KNJ_SETMODE 0x12
#define KNJ_CODECONVERT 0x20
#define KNJ_CONVERT 0x21
#define KNJ_NEXT 0x22
#define KNJ_PREVIOUS 0x23
#define KNJ_ACCEPT 0x24
#define KNJ_LEARN 0x30
#define KNJ_REGISTER 0x31
#define KNJ_REMOVE 0x32
#define KNJ_CHANGE_UDIC 0x33
!!
/* NOTE: DEFAULT = 0
* JIS1 = 1
* JIS2 = 2
* SJIS2 = 3
* JIS1KATAKANA = 4
* SJIS2HIRAGANA = 5
* SJIS2KATAKANA = 6
* OEM = F
*/
#define KNJ_JIS1toJIS1KATAKANA 0x14
#define KNJ_JIS1toSJIS2 0x13
#define KNJ_JIS1toSJIS2HIRAGANA 0x15
#define KNJ_JIS1toSJIS2KATAKANA 0x16
#define KNJ_JIS1toDEFAULT 0x10
#define KNJ_JIS1toSJIS2OEM 0x1F
#define KNJ_JIS2toSJIS2 0x23
#define KNJ_SJIS2toJIS2 0x32
!!
#define KNJ_MD_ALPHA 0x01
#define KNJ_MD_HIRAGANA 0x02
#define KNJ_MD_HALF 0x04
#define KNJ_MD_JIS 0x08
#define KNJ_MD_SPECIAL 0x10
!!
#define KNJ_CVT_NEXT 0x01
#define KNJ_CVT_PREV 0x02
#define KNJ_CVT_KATAKANA 0x03
#define KNJ_CVT_HIRAGANA 0x04
#define KNJ_CVT_JIS1 0x05
#define KNJ_CVT_SJIS2 0x06
#define KNJ_CVT_DEFAULT 0x07
#define KNJ_CVT_TYPED 0x08
!!
/* Dialog Box Command IDs */
#define IDOK 1
#define IDCANCEL 2
#define IDABORT 3
#define IDRETRY 4
#define IDIGNORE 5
#define IDYES 6
#define IDNO 7
!!
/* Control Manager Structures and Definitions */
/* Edit Control Styles */
#define ES_LEFT 0x0000L
#define ES_CENTER 0x0001L
#define ES_RIGHT 0x0002L
#define ES_MULTILINE 0x0004L
#define ES_UPPERCASE 0x0008L
#define ES_LOWERCASE 0x0010L
#define ES_PASSWORD 0x0020L
#define ES_AUTOVSCROLL 0x0040L
#define ES_AUTOHSCROLL 0x0080L
#define ES_NOHIDESEL 0x0100L
#define ES_OEMCONVERT 0x0400L
!!
/* Edit Control Notification Codes */
#define EN_SETFOCUS 0x0100
#define EN_KILLFOCUS 0x0200
#define EN_CHANGE 0x0300
#define EN_UPDATE 0x0400
#define EN_ERRSPACE 0x0500
#define EN_MAXTEXT 0x0501
#define EN_HSCROLL 0x0601
#define EN_VSCROLL 0x0602
!!
/* Edit Control Messages */
#define EM_GETSEL 0x0400
#define EM_SETSEL 0x0401
#define EM_GETRECT 0x0402
#define EM_SETRECT 0x0403
#define EM_SETRECTNP 0x0404
#define EM_SCROLL 0x0405
#define EM_LINESCROLL 0x0406
#define EM_GETMODIFY 0x0408
#define EM_SETMODIFY 0x0409
#define EM_GETLINECOUNT 0x040A
#define EM_LINEINDEX 0x040B
#define EM_SETHANDLE 0x040C
#define EM_GETHANDLE 0x040D
#define EM_GETTHUMB 0x040E
#define EM_LINELENGTH 0x0411
#define EM_REPLACESEL 0x0412
#define EM_SETFONT 0x0413
#define EM_GETLINE 0x0414
#define EM_LIMITTEXT 0x0415
#define EM_CANUNDO 0x0416
#define EM_UNDO 0x0417
#define EM_FMTLINES 0x0418
#define EM_LINEFROMCHAR 0x0419
#define EM_SETWORDBREAK 0x041A
#define EM_SETTABSTOPS 0x041B
#define EM_SETPASSWORDCHAR 0x041C
#define EM_EMPTYUNDOBUFFER 0x041D
#define EM_MSGMAX 0x041E
!!
/* Button Control Styles */
#define BS_PUSHBUTTON 0x00L
#define BS_DEFPUSHBUTTON 0x01L
#define BS_CHECKBOX 0x02L
#define BS_AUTOCHECKBOX 0x03L
#define BS_RADIOBUTTON 0x04L
#define BS_3STATE 0x05L
#define BS_AUTO3STATE 0x06L
#define BS_GROUPBOX 0x07L
#define BS_USERBUTTON 0x08L
#define BS_AUTORADIOBUTTON 0x09L
#define BS_PUSHBOX 0x0AL
#define BS_OWNERDRAW 0x0BL
#define BS_LEFTTEXT 0x20L
!!
/* User Button Notification Codes */
#define BN_CLICKED 0
#define BN_PAINT 1
#define BN_HILITE 2
#define BN_UNHILITE 3
#define BN_DISABLE 4
#define BN_DOUBLECLICKED 5
!!
/* Button Control Messages */
#define BM_GETCHECK 0x0400
#define BM_SETCHECK 0x0401
#define BM_GETSTATE 0x0402
#define BM_SETSTATE 0x0403
#define BM_SETSTYLE 0x0404
!!
/* Static Control Constants */
#define SS_LEFT 0x00L
#define SS_CENTER 0x01L
#define SS_RIGHT 0x02L
#define SS_ICON 0x03L
#define SS_BLACKRECT 0x04L
#define SS_GRAYRECT 0x05L
#define SS_WHITERECT 0x06L
#define SS_BLACKFRAME 0x07L
#define SS_GRAYFRAME 0x08L
#define SS_WHITEFRAME 0x09L
#define SS_USERITEM 0x0AL
#define SS_SIMPLE 0x0BL
#define SS_LEFTNOWORDWRAP 0x0CL
#define SS_NOPREFIX 0x80L /* Don't do "&" character translation */
!!
/* Dialog Styles */
#define DS_ABSALIGN 0x01L
#define DS_SYSMODAL 0x02L
#define DS_LOCALEDIT 0x20L /* Edit items get Local storage. */
#define DS_SETFONT 0x40L /* User specified font for Dlg controls */
#define DS_MODALFRAME 0x80L /* Can be combined with WS_CAPTION */
#define DS_NOIDLEMSG 0x100L /* WM_ENTERIDLE message will not be sent */
!!
#define DM_GETDEFID 0x0400
#define DM_SETDEFID 0x0401
#define DC_HASDEFID 0x534B
!!
/* Dialog Codes */
#define DLGC_WANTARROWS 0x0001 /* Control wants arrow keys */
#define DLGC_WANTTAB 0x0002 /* Control wants tab keys */
#define DLGC_WANTALLKEYS 0x0004 /* Control wants all keys */
#define DLGC_WANTMESSAGE 0x0004 /* Pass message to control */
#define DLGC_HASSETSEL 0x0008 /* Understands EM_SETSEL message */
#define DLGC_DEFPUSHBUTTON 0x0010 /* Default pushbutton */
#define DLGC_UNDEFPUSHBUTTON 0x0020 /* Non-default pushbutton */
#define DLGC_RADIOBUTTON 0x0040 /* Radio button */
#define DLGC_WANTCHARS 0x0080 /* Want WM_CHAR messages */
#define DLGC_STATIC 0x0100 /* Static item: don't include */
#define DLGC_BUTTON 0x2000 /* Button item: can be checked */
!!
#define LB_CTLCODE 0L
/* Listbox Return Values */
#define LB_OKAY 0
#define LB_ERR -1
#define LB_ERRSPACE -2
!!
/*
** The idStaticPath parameter to DlgDirList can have the following values
** ORed if the list box should show other details of the files along with
** the name of the files;
*/
/* all other details also will be returned */
/* Listbox Notification Codes */
#define LBN_ERRSPACE -2
#define LBN_SELCHANGE 1
#define LBN_DBLCLK 2
#define LBN_SELCANCEL 3
#define LBN_SETFOCUS 4
#define LBN_KILLFOCUS 5
!!
/* Listbox messages */
#define LB_ADDSTRING 0x0401
#define LB_INSERTSTRING 0x0402
#define LB_DELETESTRING 0x0403
#define LB_RESETCONTENT 0x0405
#define LB_SETSEL 0x0406
#define LB_SETCURSEL 0x0407
#define LB_GETSEL 0x0408
#define LB_GETCURSEL 0x0409
#define LB_GETTEXT 0x040A
#define LB_GETTEXTLEN 0x040B
#define LB_GETCOUNT 0x040C
#define LB_SELECTSTRING 0x040D
#define LB_DIR 0x040E
#define LB_GETTOPINDEX 0x040F
#define LB_FINDSTRING 0x0410
#define LB_GETSELCOUNT 0x0411
#define LB_GETSELITEMS 0x0412
#define LB_SETTABSTOPS 0x0413
#define LB_GETHORIZONTALEXTENT 0x0414
#define LB_SETHORIZONTALEXTENT 0x0415
#define LB_SETCOLUMNWIDTH 0x0416
#define LB_SETTOPINDEX 0x0418
#define LB_GETITEMRECT 0x0419
#define LB_GETITEMDATA 0x041A
#define LB_SETITEMDATA 0x041B
#define LB_SELITEMRANGE 0x041C
#define LB_MSGMAX 0x0421
!!
/* Listbox Styles */
#define LBS_NOTIFY 0x0001L
#define LBS_SORT 0x0002L
#define LBS_NOREDRAW 0x0004L
#define LBS_MULTIPLESEL 0x0008L
#define LBS_OWNERDRAWFIXED 0x0010L
#define LBS_OWNERDRAWVARIABLE 0x0020L
#define LBS_HASSTRINGS 0x0040L
#define LBS_USETABSTOPS 0x0080L
#define LBS_NOINTEGRALHEIGHT 0x0100L
#define LBS_MULTICOLUMN 0x0200L
#define LBS_WANTKEYBOARDINPUT 0x0400L
#define LBS_EXTENDEDSEL 0x0800L
#define LBS_STANDARD 0x00A00003L
!!
/* Combo Box return Values */
#define CB_OKAY 0
#define CB_ERR -1
#define CB_ERRSPACE -2
!!
/* Combo Box Notification Codes */
#define CBN_ERRSPACE -1
#define CBN_SELCHANGE 1
#define CBN_DBLCLK 2
#define CBN_SETFOCUS 3
#define CBN_KILLFOCUS 4
#define CBN_EDITCHANGE 5
#define CBN_EDITUPDATE 6
#define CBN_DROPDOWN 7
!!
/* Combo Box styles */
#define CBS_SIMPLE 0x0001L
#define CBS_DROPDOWN 0x0002L
#define CBS_DROPDOWNLIST 0x0003L
#define CBS_OWNERDRAWFIXED 0x0010L
#define CBS_OWNERDRAWVARIABLE 0x0020L
#define CBS_AUTOHSCROLL 0x0040L
#define CBS_OEMCONVERT 0x0080L
#define CBS_SORT 0x0100L
#define CBS_HASSTRINGS 0x0200L
#define CBS_NOINTEGRALHEIGHT 0x0400L
!!
/* Combo Box messages */
#define CB_GETEDITSEL 0x0400
#define CB_LIMITTEXT 0x0401
#define CB_SETEDITSEL 0x0402
#define CB_ADDSTRING 0x0403
#define CB_DELETESTRING 0x0404
#define CB_DIR 0x0405
#define CB_GETCOUNT 0x0406
#define CB_GETCURSEL 0x0407
#define CB_GETLBTEXT 0x0408
#define CB_GETLBTEXTLEN 0x0409
#define CB_INSERTSTRING 0x040A
#define CB_RESETCONTENT 0x040B
#define CB_FINDSTRING 0x040C
#define CB_SELECTSTRING 0x040D
#define CB_SETCURSEL 0x040E
#define CB_SHOWDROPDOWN 0x040F
#define CB_GETITEMDATA 0x0410
#define CB_SETITEMDATA 0x0411
#define CB_GETDROPPEDCONTROLRECT 0x0412
#define CB_MSGMAX 0x0413
!!
/* Scroll Bar Styles */
#define SBS_HORZ 0x0000L
#define SBS_VERT 0x0001L
#define SBS_TOPALIGN 0x0002L
#define SBS_LEFTALIGN 0x0002L
#define SBS_BOTTOMALIGN 0x0004L
#define SBS_RIGHTALIGN 0x0004L
#define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
#define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
#define SBS_SIZEBOX 0x0008L
!!
/* WaitSoundState() Constants */
#define S_QUEUEEMPTY 0
#define S_THRESHOLD 1
#define S_ALLTHRESHOLD 2
!!
/* Accent Modes */
#define S_NORMAL 0
#define S_LEGATO 1
#define S_STACCATO 2
!!
/* SetSoundNoise() Sources */
#define S_PERIOD512 0 /* Freq = N/512 high pitch, less coarse hiss */
#define S_PERIOD1024 1 /* Freq = N/1024 */
#define S_PERIOD2048 2 /* Freq = N/2048 low pitch, more coarse hiss */
#define S_PERIODVOICE 3 /* Source is frequency from voice channel (3) */
#define S_WHITE512 4 /* Freq = N/512 high pitch, less coarse hiss */
#define S_WHITE1024 5 /* Freq = N/1024 */
#define S_WHITE2048 6 /* Freq = N/2048 low pitch, more coarse hiss */
#define S_WHITEVOICE 7 /* Source is frequency from voice channel (3) */
!!
#define S_SERDVNA -1 /* Device not available */
#define S_SEROFM -2 /* Out of memory */
#define S_SERMACT -3 /* Music active */
#define S_SERQFUL -4 /* Queue full */
#define S_SERBDNT -5 /* Invalid note */
#define S_SERDLN -6 /* Invalid note length */
#define S_SERDCC -7 /* Invalid note count */
#define S_SERDTP -8 /* Invalid tempo */
#define S_SERDVL -9 /* Invalid volume */
#define S_SERDMD -10 /* Invalid mode */
#define S_SERDSH -11 /* Invalid shape */
#define S_SERDPT -12 /* Invalid pitch */
#define S_SERDFQ -13 /* Invalid frequency */
#define S_SERDDR -14 /* Invalid duration */
#define S_SERDSR -15 /* Invalid source */
#define S_SERDST -16 /* Invalid state */
!!
#define NOPARITY 0
#define ODDPARITY 1
#define EVENPARITY 2
#define MARKPARITY 3
#define SPACEPARITY 4
!!
#define ONESTOPBIT 0
#define ONE5STOPBITS 1
#define TWOSTOPBITS 2
!!
#define IGNORE 0 /* Ignore signal */
#define INFINITE 0xFFFF /* Infinite timeout */
!!
/* Error Flags */
#define CE_RXOVER 0x0001 /* Receive Queue overflow */
#define CE_OVERRUN 0x0002 /* Receive Overrun Error */
#define CE_RXPARITY 0x0004 /* Receive Parity Error */
#define CE_FRAME 0x0008 /* Receive Framing error */
#define CE_BREAK 0x0010 /* Break Detected */
#define CE_CTSTO 0x0020 /* CTS Timeout */
#define CE_DSRTO 0x0040 /* DSR Timeout */
#define CE_RLSDTO 0x0080 /* RLSD Timeout */
#define CE_TXFULL 0x0100 /* TX Queue is full */
#define CE_PTO 0x0200 /* LPTx Timeout */
#define CE_IOE 0x0400 /* LPTx I/O Error */
#define CE_DNS 0x0800 /* LPTx Device not selected */
#define CE_OOP 0x1000 /* LPTx Out-Of-Paper */
#define CE_MODE 0x8000 /* Requested mode unsupported */
!!
#define IE_BADID -1 /* Invalid or unsupported id */
#define IE_OPEN -2 /* Device Already Open */
#define IE_NOPEN -3 /* Device Not Open */
#define IE_MEMORY -4 /* Unable to allocate queues */
#define IE_DEFAULT -5 /* Error in default parameters */
#define IE_HARDWARE -10 /* Hardware Not Present */
#define IE_BYTESIZE -11 /* Illegal Byte Size */
#define IE_BAUDRATE -12 /* Unsupported BaudRate */
!!
/* Events */
#define EV_RXCHAR 0x0001 /* Any Character received */
#define EV_RXFLAG 0x0002 /* Received certain character */
#define EV_TXEMPTY 0x0004 /* Transmitt Queue Empty */
#define EV_CTS 0x0008 /* CTS changed state */
#define EV_DSR 0x0010 /* DSR changed state */
#define EV_RLSD 0x0020 /* RLSD changed state */
#define EV_BREAK 0x0040 /* BREAK received */
#define EV_ERR 0x0080 /* Line status error occurred */
#define EV_RING 0x0100 /* Ring signal detected */
#define EV_PERR 0x0200 /* Printer error occured */
!!
/* Escape Functions */
#define SETXOFF 1 /* Simulate XOFF received */
#define SETXON 2 /* Simulate XON received */
#define SETRTS 3 /* Set RTS high */
#define CLRRTS 4 /* Set RTS low */
#define SETDTR 5 /* Set DTR high */
#define CLRDTR 6 /* Set DTR low */
#define RESETDEV 7 /* Reset device if possible */
!!
#define LPTx 0x80 /* Set if ID is for LPT device */
/* Help engine section. */
/* Commands to pass WinHelp() */
#define HELP_CONTEXT 0x0001 /* Display topic in ulTopic */
#define HELP_QUIT 0x0002 /* Terminate help */
#define HELP_INDEX 0x0003 /* Display index */
#define HELP_HELPONHELP 0x0004 /* Display help on using help */
#define HELP_SETINDEX 0x0005 /* Set the current Index for multi index help */
#define HELP_KEY 0x0101 /* Display topic for keyword in offabData */
#define HELP_MULTIKEY 0x0201
!!
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/