- 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>
64 lines
2.2 KiB
C++
64 lines
2.2 KiB
C++
//----------------------------------------------------------------------------
|
|
// ObjectWindows
|
|
// (C) Copyright 1992, 1994 by Borland International, All Rights Reserved
|
|
//
|
|
// Class TFloatingFrame.
|
|
//----------------------------------------------------------------------------
|
|
#if !defined(OWL_FLOATFRA_H)
|
|
#define OWL_FLOATFRA_H
|
|
|
|
#if !defined(OWL_FRAMEWIN_H)
|
|
# include <owl/framewin.h>
|
|
#endif
|
|
#if !defined(OWL_TINYCAPT_H)
|
|
# include <owl/tinycapt.h>
|
|
#endif
|
|
|
|
//
|
|
// class TFloatingFrame
|
|
// ----- --------------
|
|
//
|
|
// implements a floating frame (owned popup frame w/ tiny caption)
|
|
//
|
|
// if there is a client window then the floating frame shrinks to fit
|
|
// the client window leaving room for margins on the left, top, right, and
|
|
// bottom
|
|
//
|
|
// if there is a client window then the floating palette expects the window
|
|
// to paint its own background (and hence does nothing in response to the
|
|
// WM_ERASEBKGND). if there is no client window then the floating palette
|
|
// erases the client area background using COLOR_BTNFACE
|
|
//
|
|
class _OWLCLASS TFloatingFrame : public TFrameWindow, public TTinyCaption {
|
|
public:
|
|
TFloatingFrame(TWindow* parent,
|
|
char* title = 0,
|
|
TWindow* clientWnd = 0,
|
|
bool shrinkToClient = false,
|
|
int captionHeight = DefaultCaptionHeight,
|
|
bool popupPalette = false,
|
|
TModule* module = 0);
|
|
|
|
void SetMargins(const TSize& margin) {Margin = margin;}
|
|
|
|
enum {DefaultCaptionHeight = 58};
|
|
|
|
protected:
|
|
TEventStatus DoNCHitTest(TPoint& screenPt, uint& evRes);
|
|
|
|
LRESULT EvCommand(uint id, HWND hWndCtl, uint notifyCode);
|
|
void EvSysCommand(uint cmdType, TPoint& p);
|
|
uint EvNCCalcSize(bool calcValidRects, NCCALCSIZE_PARAMS far& calcSize);
|
|
void EvNCPaint();
|
|
uint EvNCHitTest(TPoint& screenPt);
|
|
|
|
private:
|
|
TSize Margin; // left and right, top and bottom
|
|
bool FloatingPaletteEnabled;
|
|
|
|
DECLARE_RESPONSE_TABLE(TFloatingFrame);
|
|
DECLARE_STREAMABLE(_OWLCLASS, TFloatingFrame, 1);
|
|
};
|
|
|
|
#endif // OWL_FLOATFRA_H
|