Files
TeslaRel410/BORLAND/BC45/INCLUDE/BWCC.H
T
CydandClaude Fable 5 63312e07f9 source410: literal 4.10 source reconstruction + BC++ 4.52 fleet toolchain archived
- BORLAND/: Borland C++ 4.52 (chosen over 4.5 by byte-match: CODE/RP/CW32.LIB
  is identical to 4.52's install lib). BCC32/TLINK32/TLIB/MAKE run natively on
  Win11; CODE/BT/OPT.MAK is the shipped BTL4OPT.EXE's exact flag recipe
  (extender = Borland PowerPack DPMI32, not Phar Lap TNT).
- restoration/source410/: the literal 1995-form reconstruction of the missing
  BT game source (never mixed into CODE/). Round 1-3 state:
  * 6 of 10 surviving original TUs COMPILE CLEAN under the period toolchain
    (BTMSSN, BTCNSL, BTSCNRL, BTTEAM, BTL4MODE, BTL4ARND) - first builds
    since 1996.
  * BT_L4/BTL4APP.CPP pilot reconstruction: 12/12 functions, Fail() lands on
    its binary-recorded line 400 exactly.
  * BT/BTCNSL.HPP: console wire IDs recovered from the binary's ctors
    (Killed=9, Damaged=10, ScoreUpdate=13, DeathWithoutHonor=15 [T1];
    TeamScore=12 flagged [T4]).
  * MUNGA/: 8 engine-header backfills back-dated from the BT412 WinTesla tree
    (VDATA numbering decomp-verified; AUDREND's OpenAL-era virtual removed -
    the period compiler is the drift detector).
  * Tooling: backdate.py (WinTesla->1995 header transform), compile410.sh
    (per-TU verification sweep under authentic OPT.MAK flags).
  * README: corrected roadmap - MECH.HPP is the capstone grown with the mech
    TU reconstructions; BTREG.CPP green = the header-family milestone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 07:33:26 -05:00

198 lines
4.8 KiB
C++

// Borland Windows Custom Controls
// (C) Copyright 1991-1993 by Borland International
//
// BWCC.H
//
// Purpose: Borland Windows Custom Controls (BWCC)
#if !defined(__BWCC_H)
#define __BWCC_H
#ifndef RC_INVOKED
#pragma warn -nak /* Ignore non-ansi keywords */
#endif
#if !defined(WORKSHOP_INVOKED)
#if !defined(__WINDOWS_H)
#include <windows.h>
#endif
#endif
#define BWCCVERSION 0x0200 // version 2.00
// from version 1.02 onward BWCCGetversion returns a DWORD
// The low-order word contains the version number
// and the high-order word contains the locale
#define BWCC_LOCALE_US 1
#define BWCC_LOCALE_JAPAN 2
#define BORDLGPROP "FB" // Borland dialog window uses
// this property for instance data
// users should not use a property
// with this name!
#if !defined( IDHELP)
#define IDHELP 998 // Id of help button
#endif
#define BORDLGCLASS "BorDlg" // Our Custom Dialog class
#define BORGRAYCLASS "BorDlg_Gray" // Our Custom Dialog class - gray background
#define BUTTON_CLASS "BorBtn" // Our Bitmap Buttons
#define RADIO_CLASS "BorRadio" // Our Radio Buttons
#define CHECK_CLASS "BorCheck" // Our Check Boxes
#define STATIC_CLASS "BorStatic" // Our statics
#define SHADE_CLASS "BorShade" // Our Group Boxes and Dividers
#if !defined(EXPORT)
#define EXPORT _export
#endif
// The class names for Win32 are appended with "32" to distinguish
// them from the Windows-16 classes in case we are running in Win32s
#if !defined(__FLAT__) && !defined(WIN32)
#define BWCCAPI FAR EXPORT PASCAL
#else
#define BWCCAPI APIENTRY EXPORT
#endif
// button style definitions:
// the Borland buttons use Windows button styles for button
// type: i.e. BS_PUSHBUTTON/BS_DEFPUSHBUTTON
// styles
#define BBS_BITMAP 0x8000L // this is a bitmap static
#define BBS_PARENTNOTIFY 0x2000L // Notify parent of TAB keys and focus
#define BBS_OWNERDRAW 0x1000L // let parent paint via WM_DRAWITEM
// messages
#define BBM_SETBITS ( BM_SETSTYLE + 10)
// notifications
#define BBN_SETFOCUS ( BN_DOUBLECLICKED + 10)
#define BBN_SETFOCUSMOUSE ( BN_DOUBLECLICKED + 11)
#define BBN_GOTATAB ( BN_DOUBLECLICKED + 12)
#define BBN_GOTABTAB ( BN_DOUBLECLICKED + 13)
#define BBN_MOUSEENTER ( BN_DOUBLECLICKED + 14)
#define BBN_MOUSELEAVE ( BN_DOUBLECLICKED + 14)
// The following is the name of the window message passed to
// RegisterWindowMessage for CtlColor processing for group box shades:
#define BWCC_CtlColor_Shade "BWCC_CtlColor_Shade"
#define BSS_GROUP 1L // recessed group box
#define BSS_HDIP 2L // horizontal border
#define BSS_VDIP 3L // vertical border
#define BSS_HBUMP 4L // horizontal speed bump
#define BSS_VBUMP 5L // vertical speed bump
#define BSS_RGROUP 6L // raised group box
#define BSS_CAPTION 0x8000L // Set off the caption
#define BSS_CTLCOLOR 0x4000L // Send WM_CTLCOLOR messages to parent of control
#define BSS_NOPREFIX 0x2000L // & in caption does not underline following letter
#define BSS_LEFT 0x0000L // Caption is left-justified
#define BSS_CENTER 0x0100L // Caption is centered
#define BSS_RIGHT 0x0200L // Caption is right-justified
#define BSS_ALIGNMASK 0x0300L
#if defined( __cplusplus )
extern "C" {
#endif /* __cplusplus */
extern HGLOBAL BWCCAPI SpecialLoadDialog
(
HINSTANCE hResMod,
LPCSTR lpResName,
DLGPROC fpDlgProc
);
extern HGLOBAL BWCCAPI MangleDialog
(
HGLOBAL hDlg,
HINSTANCE hResources,
DLGPROC fpDialogProc
);
extern LRESULT BWCCAPI BWCCDefDlgProc
(
HWND hWnd,
UINT message,
WPARAM wParam,
LPARAM lParam
);
extern LRESULT BWCCAPI BWCCDefGrayDlgProc
(
HWND hWnd,
UINT message,
WPARAM wParam,
LPARAM lParam
);
extern LRESULT BWCCAPI BWCCDefWindowProc
(
HWND hWnd,
UINT message,
WPARAM wParam,
LPARAM lParam
);
extern LRESULT BWCCAPI BWCCDefMDIChildProc
(
HWND hWnd,
UINT message,
WPARAM wParam,
LPARAM lParam
);
extern int BWCCAPI BWCCMessageBox
(
HWND hWndParent,
LPCSTR lpText,
LPCSTR lpCaption,
UINT wType
);
extern HBRUSH BWCCAPI BWCCGetPattern( void );
extern DWORD BWCCAPI BWCCGetVersion( void);
extern BOOL BWCCAPI BWCCIntlInit (UINT language);
extern BOOL BWCCAPI BWCCIntlTerm ( VOID );
extern BOOL BWCCAPI BWCCRegister(HINSTANCE hInsta);
#if defined( __cplusplus )
}
#endif /* __cplusplus */
#ifndef RC_INVOKED
#pragma warn .nak /* Ignore non-ansi keywords */
#endif
#endif /* __BWCC_H */