100 Commits
Author SHA1 Message Date
Neo 57b1e8a47a Merge pull request #176 from clang-retro/claude/project-thread-deqtlz
Haiku: build with R1/beta5 headers, COM ports in /dev/ports, clicks on a modal dialog's owner
2026-11-28 13:17:04 -08:00
Neo-DesktopandClaude Opus 5.5 7c56025a50 Merge main: use the Haiku port of #175, keep the fixes it does not have
main now has a Haiku backend (#175). This branch takes it in place of
its own backend (haiku_be.cpp and its CI job are removed), and keeps
only these changes on top of it:

- RTLD_NOLOAD and ESOCKTNOSUPPORT are optional, so that the library
  also builds with the headers of Haiku R1/beta5 (the sysroot of
  D-Modem's haiku_sysroot.py, which the D-Modem GUI uses).
- COMn is the nth serial port in /dev/ports.
- A click on a disabled window (the owner of a modal dialog) brings
  the dialog to the front and does not go to the window.
- docs/haiku.md tells these items.

Tested with the D-Modem GUI on Haiku R1/beta6 in QEMU.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTJUdomcnCN8okhJSr
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
2026-11-28 20:46:52 +00:00
Neo 0a6e7c313e Merge pull request #175 from clang-retro/claude/project-thread-gz3j3b
Port the library to Haiku with a native Be API backend
2026-11-28 12:20:14 -08:00
Neo-DesktopandClaude Opus 5.5 afdd9072cf ci: give the Haiku packages after the sysroot, with --cache first
argparse on the runner does not take positional arguments after
--cache CACHE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTJUdomcnCN8okhJSr
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
2026-11-28 20:12:32 +00:00
Neo-DesktopandClaude Opus 5.5 3952742dcd port: add a Haiku backend and build for x86_64 Haiku
The portable layer and the library now build for x86_64-unknown-haiku
with the system's clang and a sysroot of Haiku's packages
(SYSROOT=..., STDLIB=). The Interface Kit shows the windows.

- haiku.h, haiku_be.cpp and backend_haiku.cpp: the backend, in two
  halves, as for Cocoa. The BApplication and each BWindow have their
  own threads; they queue the input for the program's thread. A click
  on a disabled window brings its modal dialog to the front.
- GetModuleFileName uses get_next_image_info (no /proc on Haiku), and
  the command line comes from __libc_argv.
- COMn is the nth device in /dev/ports. Haiku's fonts and
  ~/config/settings/libmfc are used.
- Guards for the errno values, SIOCATMARK, RTLD_NOLOAD and the CS5 to
  CS8 values that Haiku does not have or defines differently.
- The shared libraries link libbe, libnetwork and libbsd.
- docs/haiku.md, and the cross-haiku CI job, which builds the
  libraries.

Tested with the D-Modem GUI on Haiku R1/beta6 in QEMU: menus, dialogs,
modal dialogs, the keyboard, moving windows and the serial ports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTJUdomcnCN8okhJSr
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
2026-11-28 20:06:36 +00:00
Neo-DesktopandClaude Opus 5.5 a15f4258d5 iotest: give the child 30 seconds to answer
In Haiku in QEMU, the child took more than the 5 seconds that the test
waited for its output once (the first start of the program). The loop
ends as soon as the output is there, so the test takes no longer where
the child starts quickly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUCocRdmh1id7SXNMg
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
2026-11-28 20:03:32 +00:00
Neo-DesktopandClaude Opus 5.5 ff81f272a1 run-haiku-tests.sh: kill the VM when it does not take "stop"
A failure while the VM was still starting left the script waiting for
it until the CI job timed out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUCocRdmh1id7SXNMg
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
2026-11-28 19:32:25 +00:00
Neo-DesktopandClaude Opus 5.5 458bf42973 Port the library to Haiku with a native Be API backend
The portable layer and the library now build for x86_64-unknown-haiku
and i586-pc-haiku with clang and a sysroot from clang-retro/unix-sdk.

The Haiku backend has two halves, as the Cocoa one has:
backend_haiku_be.cpp uses BApplication, BWindow, BView and BBitmap,
and backend_haiku.cpp connects them to the window manager of the
layer. The windows have no app_server border; the layer draws the
frame. Menus and tooltips float and do not take the focus. Keys,
modifiers, the mouse wheel, the cursor and the clipboard are mapped.

Other Haiku changes:
- the program path and argv come from the kernel and __libc_argv,
  as Haiku has no /proc;
- the fonts come from the Haiku font folders (Noto Sans for the UI);
- the registry file is polled, as there is no inotify or kqueue;
- CSIZE, SIOCATMARK, ETOOMANYREFS, malloc.h and the tolower macro;
- CAsyncSocket::GetSockName and GetPeerName fail for an address that
  is not IPv4, as on Windows (Haiku's sockaddr_in can hold an IPv6
  address).

samples/showcase is a small SDI program with dialogs and common
controls. tests/run-haiku-tests.sh builds the tests and runs them in
Haiku in QEMU (unix-sdk's haiku-vm.py), and takes screenshots of the
sample. CI runs them in the nightly image for x86_64 and builds them
for i586. docs/haiku.md describes the port.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUCocRdmh1id7SXNMg
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
2026-11-28 18:29:35 +00:00
Neo 5de614d1f4 Merge pull request #174 from clang-retro/claude/project-thread-8px763
port: include <cstdlib> for std::abs in winhelp_file.cpp
2026-11-28 05:59:32 -08:00
Neo-DesktopandClaude Opus 5.5 ca6065c6de port: include <cstdlib> for std::abs in winhelp_file.cpp
winhelp_file.cpp uses std::abs, but it includes only <stdlib.h>. With
the libc++ of the macosx10.4 sysroot, <stdlib.h> does not declare
std::abs, so the build for Mac OS X 10.4 stopped with "no member named
'abs' in namespace 'std'".

Add a CI job that builds the libraries for i386 and PowerPC Mac OS X
10.4 against the nightly macosx10.4 sysroot, so that CI finds a missing
include of this type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTLwxzpeGPkbLpNqXL
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
2026-11-28 13:40:45 +00:00
Neo 0da0a5d171 Merge pull request #173 from clang-retro/claude/project-thread-ws9uve
Test thumb scrolling of a multiline edit control
2026-11-27 17:59:17 -08:00
Neo-DesktopandClaude Opus 5.5 9ea453002b Move the edit thumb-scroll test out of a platform-only block
TestEditThumbScroll was in a block that the mingw build leaves out, but
main calls it on every platform. Put it just before main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTDFNgD4oK9xbDsEGn
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
2026-11-28 01:42:45 +00:00
Neo-DesktopandClaude Opus 5.5 f8177b3b7c Test thumb scrolling of a multiline edit control
WM_VSCROLL with SB_THUMBTRACK and SB_THUMBPOSITION must move the first
line to the thumb position, also when the control starts away from the
top.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTDFNgD4oK9xbDsEGn
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
2026-11-28 00:48:14 +00:00
Neo afbf874c0d Merge pull request #172 from clang-retro/claude/project-thread-ws9uve
Make typing in an edit control fast on a 68000
2026-11-27 16:40:38 -08:00
Neo-DesktopandClaude Opus 5.5 7a80e483f3 Make typing in an edit control fast on a 68000
- Fill pattern brushes a row at a time: a division for each pixel was
  most of the time of each key on a 68000, which divides in software.
- An edit control draws again only the lines that a change touches,
  not all of the control.
- SetScrollInfo draws only the scroll bar whose thumb looks different.
- The Mac event loop takes all the events that wait, so that keys typed
  fast are not lost from the small Event Manager queue.

In the 68k simulator, one key in MultiPad went from about 17 million
instructions to about 0.3 million.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTDFNgD4oK9xbDsEGn
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
2026-11-28 00:15:38 +00:00
Neo ce65c2d715 Merge pull request #170 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-27 13:41:08 -08:00
Neo e4a2c14f0b Merge pull request #169 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-27 13:15:16 -08:00
Neo 0aa63a297a Merge pull request #168 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-27 12:58:11 -08:00
Neo 5d438f66e3 Merge pull request #167 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-27 12:26:42 -08:00
Neo a0d71f5346 Merge pull request #165 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-27 12:06:25 -08:00
Neo 7df1b9ebf5 Merge pull request #164 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-27 11:43:45 -08:00
Neo 76e848c516 Merge pull request #163 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-27 11:24:14 -08:00
Neo c69dd933f6 Merge pull request #162 from clang-retro/claude/project-thread-vgls68
Add the Feature Pack's list, tab, property grid and shell controls
2026-11-27 11:23:51 -08:00
Neo d6df86f763 Merge pull request #161 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-27 10:52:18 -08:00
Neo 635b8f33b0 Merge pull request #160 from clang-retro/claude/project-thread-vgls68
Add the Feature Pack's base classes and standalone controls
2026-11-27 10:32:41 -08:00
Neo 2f5fbebea5 Merge pull request #159 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-27 10:29:15 -08:00
Neo 20f970af48 Merge pull request #157 from clang-retro/claude/project-thread-vgls68
Add comdef.h's compiler COM support to the portable layer
2026-11-27 10:15:49 -08:00
Neo 7eb2f1ef3e Merge pull request #158 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-27 09:49:14 -08:00
Neo 5acb0a73aa Merge pull request #155 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-27 09:27:29 -08:00
Neo 659541fc61 Merge pull request #156 from clang-retro/claude/project-thread-vgls68
Add ATL's MMC snap-in and performance counter headers (atlsnap.h, atlperf.h)
2026-11-27 09:21:56 -08:00
Neo be53af8337 Merge pull request #154 from clang-retro/claude/project-thread-vgls68
Add ATL's mail and web clients (atlmime.h, atlsmtpconnection.h, atlhttp.h)
2026-11-27 09:02:09 -08:00
Neo 90ae91059f Merge pull request #152 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-27 08:36:50 -08:00
Neo 7dc55bd986 Merge pull request #153 from clang-retro/claude/project-thread-vgls68
Add the ATL OLE DB provider templates (atldb.h)
2026-11-27 08:27:46 -08:00
Neo 76d24c92ff Merge pull request #151 from clang-retro/claude/project-thread-vgls68
ATL: auto-thread modules, the GIT, per-user registration and small pieces
2026-11-27 07:24:36 -08:00
NeoandClaude Opus 5.5 9662e04c93 MessageBox: keep a tall box and its buttons on the screen (#150)
* MessageBox: keep a tall box and its buttons on the screen

A message box with more lines than the screen can hold was taller than
the screen. On Mac OS 9 at 800x600, its OK button was below the screen.

Now the box is never taller than the work area. When its text does not
fit, the text is in a read-only edit control with a scroll bar. The box
is centered on its owner, but kept inside the work area. wintest
checks this.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTDFNgD4oK9xbDsEGn

* wintest: check the tall message box on the portable layer only

The message box of Windows does not scroll, and the test sets the
environment with setenv, which MinGW does not have.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTDFNgD4oK9xbDsEGn

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-27 07:24:31 -08:00
NeoandClaude 19be6226a7 Add a WinHelp viewer to the portable layer (#149)
WinHelp now shows .hlp files in the layer's own viewer instead of
looking for a document of the same name.

- winhelp_file.cpp reads WinHelp 3.0, 3.1 and 4.0 files: the internal
  file system, |SYSTEM, |TOPIC (LZ77), |Phrases and Hall compression,
  |CONTEXT, |CTXOMAP, [MAP] numbers, |FONT, keywords, pictures (DDB,
  DIB, metafile, SHG hotspots) and .cnt contents files.
- winhelp_view.cpp shows topics with the scrolling and non-scrolling
  regions, tables, tabs, hotspots, popups, the button bar, help macros
  and the Help Topics dialog box (Contents, Index, Find).
- WinHelpA/W send every HELP_* command to the viewer. A file that is
  not a help file, or WINPORT_HELP, still opens the document.
- hlptest checks the viewer with a Halibut help file and two files
  from tests/winhelp/mkhlp.py (WinHelp 3.1 and 4.0).
- docs/winhelp.md tells what the viewer does and its limits.


Claude-Session: https://claude.ai/code/session_01B82eRSpPwP3yMpFkLSDiNn

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-27 06:50:19 -08:00
NeoandClaude c630961208 font: read TrueType fonts that have only a Mac Roman cmap (#148)
The TrueType fonts of System 7 have only a Mac Roman cmap subtable
(platform 1, encoding 0) and no OS/2 table. stb_truetype accepted only
Unicode subtables, so stbtt_InitFont failed for each of these fonts.
On System 7.6.1, GetOutlineTextMetrics gave 0 and 3D Text drew nothing.

stb_truetype now uses the Mac Roman subtable when the font has no
Unicode subtable. For such a font, the layer changes each Unicode
character to its Mac Roman code before it finds the glyph.


Claude-Session: https://claude.ai/code/session_01B82eRTDFNgD4oK9xbDsEGn

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-27 06:47:55 -08:00
NeoandClaude 904d32cbbf Win16: add OLE controls (COleControl and the control container) (#147)
Build the OLE control sources for 16-bit Windows: COleControl,
COlePropertyPage, the stock property pages, CWnd::CreateControl and
COleControlSite. Add the OLE control interfaces, IIDs and CLSIDs to the
Win16 headers. Add src/win16olepro.cpp with the OLEPRO32 functions that
16-bit Windows does not have: the stock font and picture objects, the
property frame and OleTranslateColor.

Parse and write 16-bit dialog templates in the control container and
the property pages. Use OLESTR and CStringOle for OLE strings, and
64-bit arithmetic for the HIMETRIC conversions.

16-bit Windows has no OLE DB, so data binding causes a
CNotSupportedException. Add tests/win16ctl.cpp and the docs.


Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-27 06:29:07 -08:00
NeoandClaude eb02b5bdce CEditView: implement InitializeReplace (#146)
afxext.h declared CEditView::InitializeReplace, but src did not define
it. It now prepares a replace with the find text, direction and case
of the last find or replace. If the selection is not the find text, it
selects the next occurrence. It gives FALSE, after OnTextNotFound, if
the find text is empty or not in the text.

OnReplaceSel uses it, as in MFC: with no match selected, Replace finds
the next occurrence and replaces it. sditest checks Replace and
Replace All.


Claude-Session: https://claude.ai/code/session_01B82eRTDFNgD4oK9xbDsEGn

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-27 06:19:44 -08:00
NeoandClaude 5bab5983da Mac: make Command-Q choose Exit from the menu bar (#145)
The Exit item now has the key equivalent Command-Q. A keyDown event
with the Command key goes to MenuKey first. If MenuKey finds an item,
the layer chooses it. Other Command keys go to the program as before.


Claude-Session: https://claude.ai/code/session_01B82eRTDFNgD4oK9xbDsEGn

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-27 06:00:24 -08:00
NeoandClaude c9a39c2480 Auto-assign new issues to Neo-Desktop (#144)
Add a workflow that adds Neo-Desktop as an assignee when an issue
is opened.


Claude-Session: https://claude.ai/code/session_01B82eRQqxennD6yGZo4WkoY

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 18:40:34 -08:00
NeoandClaude Opus 5.5 114257cce2 Classic look of the portable controls; Win16 OLE dialogs and all the common controls (#141)
* port: finish the classic look of the controls

- Scroll bars: the trough is the checker of the face and highlight
  colors, as DefWindowProc gives it for WM_CTLCOLORSCROLLBAR. A scroll
  bar control asks its parent for the brush. Disabled arrows are
  embossed, and a scroll bar control made with WS_DISABLED draws as
  disabled from the start.
- List boxes: a scroll bar that SetScrollInfo hid shows again when the
  items no longer fit. Before, a list box made empty lost WS_VSCROLL
  and never got its bar back.
- Trackbars: without TBS_BOTH, the thumb has a point toward the ticks.
  A thumb that is dragged or disabled has the checker face.
- Tabs: the two outer corners of each tab are cut.

wintest checks the trough, the list box's bar and the thumb's point.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF

* urlmon.h: define __WINPORT_EXTERN_C for the 16-bit build

The 16-bit build takes the OLE headers of the win16-sdk, which do not
include the windef.h of the portable layer. Since urlmon.h became C
compatible, afxole.h did not compile for i8086-pc-win16. The library and
the 16-bit tests build again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF

* win16: show the tooltips of the toolbar

16-bit Windows has no tooltip control, so a toolbar with CBRS_TOOLTIPS
showed no tooltip. The 16-bit toolbar window now shows them itself:
when the mouse stays on a button for half a second, it sends
TTN_NEEDTEXTA to its owner and shows the text below the mouse in a
small window. A timer finds when the mouse leaves the button. win16bar
checks the tip of a button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF

* win16: the Insert Object, Paste Special, Links and Server Busy dialogs

16-bit OLE 2 has no OLE dialog DLL. The dialogs are now templates in
memory in src/win16oleui.cpp, with the same rules as the dialogs of the
portable layer. Change Icon, Convert, Change Source and Object
Properties still fail. tests/win16oledoc.cpp runs each dialog with a
hook that closes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF

* win16: the progress bar, trackbar, up-down and tab control windows

16-bit Windows has no comctl32.dll. src/win16ctl.cpp registers four
window classes that do the messages of the common controls in ANSI,
with the 16-bit packing of WM_HSCROLL and WM_VSCROLL, and draws them in
the 3D style of the system colors. CProgressCtrl, CSliderCtrl,
CSpinButtonCtrl and CTabCtrl now make their windows. tests/win16cmn.cpp
checks each control and its notifications.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF

* win16: image lists, and the afxcmn.h class members

src/win16imgl.cpp gives the ImageList_ functions with 16-bit GDI: the
images side by side in one screen bitmap, the masks in one monochrome
bitmap, the draw styles, the overlays, the icons and the drag image.
cmnctls.cpp is now in the 16-bit library, so CImageList and the other
classes of afxcmn.h link. win16ctl.h has what the control windows share.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF

* Win16: add the header control and the list view

The library draws the header control (AfxHeader16, also SysHeader32) and
the list view (AfxListView16, also SysListView32) on 16-bit Windows. The
list view has the four views, virtual lists, callbacks, label editing,
check boxes, custom draw, sorting and find. The win16cmn test checks a
report view. The Win16 code is built and linked; Wine cannot run it in
this container.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF

* Win16: add the tree view

The library draws the tree view (AfxTreeView16, also SysTreeView32) on
16-bit Windows: lines, buttons, check boxes, image lists, callbacks,
label editing, custom draw, sorting, the drop highlight, the insert
mark, drag notifications and the incremental search. The win16cmn test
checks the links, the expansion, the selection and the sort of a tree.
The Win16 code is built and linked; Wine cannot run it in this
container.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF

* Win16: add the tooltip control

The library draws the tooltip (AfxToolTip16, also tooltips_class32) on
16-bit Windows: window and rectangle tools, TTM_RELAYEVENT and
TTF_SUBCLASS, the text callback, string resources, TTN_SHOW and
TTN_POP, tracking tips, titles, delay times, colors, margins and word
wrap. AFX_WNDCOMMCTL_BAR_REG registers it, as ICC_BAR_CLASSES does. The
win16cmn test checks the tools, the text, a hit test, the show and the
pop. The Win16 code is built and linked; Wine cannot run it in this
container.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF

* Win16: add the hot key, IP address, pager and link controls

The library draws the hot key control, the IP address control, the
pager and the link control (SysLink) on 16-bit Windows, with their
messages and notifications. The win16cmn test checks each of them. The
Win16 code is built and linked; Wine cannot run it in this container.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF

* Win16: add the extended combo box

The library draws the extended combo box (AfxComboBoxEx16, also
ComboBoxEx32) on 16-bit Windows with an owner-drawn combo box: indents,
images, callbacks and the CBEN_ notifications. The 16-bit CB_ messages
have the numbers of the CBEM_ messages, so afxwin16u.h moves the CBEM_
messages above them. The win16cmn test checks the items, the data and
the notifications. The Win16 code is built and linked; Wine cannot run
it in this container.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF

* Win16: draw the month calendar and the date and time picker

src/win16date.cpp registers AfxMonthCal16 and AfxDateTime16 (and the
comctl32 names). The calendar does the MCM_ messages, several months,
the selection, the range, today, week numbers and day states. The
picker reads the WIN.INI [intl] formats, does custom formats with
callback fields, the keys, the up-down button, the drop-down calendar,
DTS_SHOWNONE and DTS_APPCANPARSE, and sends the DTN_ notifications.

afxwin16u.h moves the MCHT_ flags into 16 bits. win16cmn tests both
controls. The code is built and linked, but not run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF

* Win16: draw the rebar, and build CReBar

src/win16rebar.cpp registers AfxReBar16 (and ReBarWindow32). It does
the RB_ messages: bands in rows, grippers, images, text, background
bitmaps, chevrons, drags between rows and along a row, the smallest and
largest width of a band, and CCS_VERT. It sends the RBN_ notifications
and gives the notifications of the child windows to its parent.

rebar.cpp (CReBar) is now in the Win16 library. win16cmn tests the
rebar and a CReBar. The code is built and linked, but not run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF

* Win16: draw the animation control

src/win16anim.cpp registers AfxAnimate16 (and SysAnimate32). It plays
the first video stream of an AVI clip from an AVI resource or a file,
with uncompressed or BI_RLE8 frames. It reads each frame when it shows
it, so a clip can be larger than a segment. A timer plays the clip, and
the parent gets ACN_START and ACN_STOP. ACS_CENTER, ACS_AUTOPLAY and
ACS_TRANSPARENT work.

Now the library draws all the common controls on Win16. win16cmn writes
a small RLE8 clip and checks its frames. The code is built and linked,
but not run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRV6wfb9PKGryxuRrjF

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 13:57:32 -08:00
NeoandClaude d165527791 Bump port/softgl to the NVIDIA TNT Glide driver (#143)
Moves port/softgl to 4ac3dfb (clang-retro/softgl#23), which adds the
Glide driver for the NVIDIA TNT family on 32-bit DOS (not tested).


Claude-Session: https://claude.ai/code/session_01B82eRQsZdxGFrvneupPSAK

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 12:51:52 -08:00
NeoandClaude e49370406d Bump port/softgl to the S3 Savage4 Glide driver (#142)
Claude-Session: https://claude.ai/code/session_01B82eRQsZdxGFrvneupPSAK

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 12:29:17 -08:00
Neo 958cc991eb Merge pull request #140 from clang-retro/claude/project-thread-hd700l
Classic Mac OS screen saver host and After Dark modules; Mac OS X 10.0 notes
2026-11-26 12:13:50 -08:00
Neo 86ab10e7a4 Merge pull request #139 from clang-retro/claude/project-thread-c0rbyt
Update softgl: the Permedia 2 Glide driver for DOS
2026-11-26 12:10:27 -08:00
Neo a3b25626a2 Merge pull request #138 from clang-retro/claude/project-thread-c0rbyt
Update softgl: Rage 128, SiS 530/620 and Matrox G200-G550 Glide drivers for DOS
2026-11-26 11:48:52 -08:00
Neo 41e4eb0a05 Merge pull request #137 from clang-retro/claude/project-thread-495cz9
docs: clang-retro's llvm-rc compiles TOOLBAR
2026-11-26 11:10:50 -08:00
NeoandClaude 8ff0ef2baa Bump port/softgl to the Banshee and Voodoo3 Glide driver (#136)
Claude-Session: https://claude.ai/code/session_01B82eRQsZdxGFrvneupPSAK

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 10:44:21 -08:00
Neo 4182860bd1 Merge pull request #134 from clang-retro/claude/project-thread-hd700l
Run the OpenGL screen savers as Mac OS X .saver bundles, 10.0 to 10.5
2026-11-26 10:29:15 -08:00
NeoandClaude 6f336dcd79 Bump port/softgl to the PowerVR PCX2 Glide driver (#135)
Claude-Session: https://claude.ai/code/session_01B82eRQsZdxGFrvneupPSAK

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 10:27:44 -08:00
Neo 74e125a166 Merge pull request #133 from clang-retro/claude/project-thread-c0rbyt
Bump port/softgl to the ATI Rage Pro and Rage II drivers for DOS
2026-11-26 09:36:29 -08:00
Neo 1f96694033 Merge pull request #132 from clang-retro/claude/project-thread-c0rbyt
Bump port/softgl to the Matrox Glide driver for DOS
2026-11-26 09:09:37 -08:00
Neo adedd8067c Merge pull request #131 from clang-retro/claude/project-thread-c0rbyt
Bump port/softgl to 5b6e470 (S3 ViRGE Glide driver for DOS)
2026-11-26 08:50:18 -08:00
Neo 45c082fc76 Merge pull request #130 from clang-retro/claude/project-thread-c0rbyt
Update softgl: Voodoo Graphics driver for 32-bit DOS
2026-11-26 08:15:09 -08:00
Neo a2284c3b19 Merge pull request #129 from clang-retro/claude/project-thread-c0rbyt
Port to 32-bit DOS (i386-pc-msdos)
2026-11-26 05:26:47 -08:00
NeoandClaude 413eb28246 Hide the pointer on the first SetCursor(NULL) (#128)
SetCursor told the backend about a new cursor only when the cursor
changed. The current cursor starts as NULL, so the first SetCursor(NULL)
from a program did nothing, and the system pointer stayed on the screen.
The screen savers call SetCursor(NULL) to hide the pointer.

The layer now keeps the cursor that the backend shows. At the start this
is the system pointer, which is not NULL. SetCursor and ShowCursor give
the backend a new cursor only when it is different from that cursor.


Claude-Session: https://claude.ai/code/session_01B82eRTDFNgD4oK9xbDsEGn

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 02:52:23 -08:00
Neo af36428f85 Merge pull request #127 from clang-retro/claude/project-thread-c0rbyt
Bump softgl: Glide and Atari back ends, Warp3D mipmaps, unit 1 and fog
2026-11-26 00:58:29 -08:00
Neo 1db06365a2 Merge pull request #126 from clang-retro/claude/project-thread-c0rbyt
Bump softgl to OpenGL 1.5, the back-end interface and the Amiga back ends
2026-11-25 23:46:43 -08:00
Neo 97805f49d5 Merge pull request #125 from clang-retro/claude/project-thread-c0rbyt
Bump softgl to OpenGL 1.4
2026-11-25 23:05:54 -08:00
Neo d561f57a26 Merge pull request #124 from clang-retro/claude/project-thread-c0rbyt
Bump softgl to OpenGL 1.3
2026-11-25 22:46:20 -08:00
NeoandClaude f099543d54 Hide the Mac pointer for a NULL cursor on classic Mac OS (#123)
ShowCursor(FALSE) and SetCursor(NULL) now hide the pointer with
HideCursor, as the screen savers expect. The pointer shows again on a
suspend event and at exit.


Claude-Session: https://claude.ai/code/session_01B82eRTDFNgD4oK9xbDsEGn

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-25 22:38:27 -08:00
Neo 17ae45a773 Merge pull request #122 from clang-retro/claude/project-thread-c0rbyt
Bump softgl to OpenGL 1.2
2026-11-25 22:26:19 -08:00
Neo 7b2735a654 Merge pull request #121 from clang-retro/claude/project-thread-c0rbyt
Update softgl: multitexture, GL_ADD, edge clamp, transpose matrices
2026-11-25 22:05:44 -08:00
Neo c96fd4286d Merge pull request #119 from clang-retro/claude/project-thread-c0rbyt
Use softgl from its own repository as a submodule
2026-11-25 21:45:41 -08:00
NeoandClaude a7fbb2fe09 Hide the menu bar and Control Strip behind full-screen windows (#120)
On the classic Mac OS the program's screen is now the whole Mac screen,
and the work area is the screen below the menu bar, as on Windows with
the taskbar. While a visible window covers the whole screen (a screen
saver), the backend hides the menu bar and the Control Strip. It shows
them again when no window covers the screen, on a suspend event, and at
exit.

A program that the Finder opens gets the name of its file as its
command line, not its path: MULTIPAD skips its name up to the first
space and tried to open "Desktop Folder/MultiPad".


Claude-Session: https://claude.ai/code/session_01B82eRTDFNgD4oK9xbDsEGn

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-25 21:37:48 -08:00
NeoandClaude Opus 5.5 7e99c8cebd Read the live pointer position and the System Folder fonts on classic Mac OS (#118)
* Read the pointer's position from the classic Mac OS in GetCursorPos

GetCursorPos gave the position of the last mouse input. Before the
first one, that was not where the pointer was. A screen saver reads the
position when it starts and quits when it changes, so it quit when the
first mouse input came. Backends can now read the pointer (ReadCursor);
the classic Mac OS backend asks the Event Manager.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTDFNgD4oK9xbDsEGn

* Read the TrueType fonts of the classic Mac OS Fonts folder

The layer had only its built-in bitmap font on the classic Mac OS, so
GetOutlineTextMetrics and wglUseFontOutlines failed and the SDK's 3D Text
screen saver drew nothing. FontDirs now gives the Fonts folder of the
System Folder (FindFolder), and suitcases are read through
/..namedfork/rsrc, as on Mac OS X (clang-retro/mac-sdk#30).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTDFNgD4oK9xbDsEGn

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-25 20:40:42 -08:00
Neo 3cda86801f Merge pull request #117 from clang-retro/claude/project-thread-8qcwxr
Add a software OpenGL renderer as the generic implementation
2026-11-25 20:37:31 -08:00
Neo 3242c239af Merge pull request #116 from clang-retro/claude/project-thread-l9txmx
Mac OS X: windows below the menu bar, Exit, and screen savers opened from the Finder
2026-11-25 19:49:33 -08:00
Neo 77fb7912ac Merge pull request #115 from clang-retro/claude/project-thread-ws9uve
Name the classic Mac program menu after the program, with Exit
2026-11-25 19:25:12 -08:00
Neo fde8b5b851 Merge pull request #114 from clang-retro/claude/project-thread-ws9uve
Run the SDK samples on the classic Mac OS: Toolbox start-up and glaux for the screen savers
2026-11-25 18:53:34 -08:00
Neo 0a841494c9 Merge pull request #113 from clang-retro/claude/project-thread-l9txmx
Build the SDK samples as universal (Intel + Apple silicon) programs for macOS
2026-11-25 15:48:46 -08:00
Neo 99f02132ab Merge pull request #112 from clang-retro/claude/project-thread-l9txmx
Fix the maze textures and build the SDK samples for Intel and fat Mac OS X 10.4
2026-11-25 14:45:58 -08:00
Neo 633a498f30 Merge pull request #111 from clang-retro/claude/project-thread-ws9uve
OpenGL through wgl on the classic Mac OS for PowerPC
2026-11-25 12:34:30 -08:00
NeoandClaude Opus 5.5 fde0a21f9d Mac OS X 10.4 and 10.5 on PowerPC, OpenGL through wgl, and the Win32 SDK samples (#110)
* Mac OS X 10.4 and 10.5 on PowerPC, OpenGL through wgl, and the Win32 SDK samples

The portable layer and the library build for PowerPC Mac OS X 10.4 and
10.5 with the Cocoa backend:

- port/compat/macosx and compat_macosx.cpp add the C library functions
  that 10.4 does not have. backend_cocoa.mm uses only the Cocoa API of
  10.4 with the 10.4 SDK. Without audio queues there is no sound device.
- font.cpp reads .dfont files and font suitcases.
- resource_order.cpp puts the numbers of compiled resources in the byte
  order of a big-endian processor, so menus, dialogs, strings, icons and
  bitmaps load on PowerPC and 68k.
- PeekMessage lets the backend take input and show what was drawn, so
  animation loops update the screen.

OpenGL: opengl.cpp gives the wgl functions over CGL (pixel formats,
contexts, SwapBuffers, wglUseFontBitmaps and wglUseFontOutlines), and
libglaux.a gives the aux functions of the Windows SDK. GDI gains
GetGlyphOutline and GetOutlineTextMetrics, and more of the Win32 API that
old programs use (OpenFile, display settings, priority classes, IMM stubs,
windowsx.h, io.h and others), with C-compatible headers.

tools/build-sdk-samples.py builds MULTIPAD and the OpenGL screen savers
from a Win32 SDK of your own. See docs/macosx-10.4.md and
docs/sdk-samples.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSSz5czpTdGQpDYmAk

* Show OpenGL animations on Tiger, and fixes for the SDK samples

- GetMessage and PeekMessage let the backend take input and show the
  windows at most every 10 ms, so loops that always find a message
  (paint, timers) or only peek update the screen.
- SwapBuffers and glFlush copy the picture straight into the DC's
  surface. glFlush copies it at most every 20 ms. PutPixels works out
  the source columns once.
- build-sdk-samples.py makes the release build (NDEBUG) and gives rand
  the range of Visual C++ (0x7FFF). HOST_CXX names a compiler for the
  host for res2cpp.py.
- malloc.h uses the classic Mac OS C library's own header.
- winbase.h and winuser.h declare two structures before C uses them in
  a prototype.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSSz5czpTdGQpDYmAk

* Fix the pixel-format count type for newer macOS SDKs

CGLChoosePixelFormat writes a long in the 10.4 SDK and a GLint in later
SDKs. Take the type from the function signature.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSSz5czpTdGQpDYmAk

* Link the macOS tests with OpenGL, and test the CGL pixel format

libwinport now uses CGL on Mac OS X, so the tests link OpenGL.framework,
and wintest expects a pixel format there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSSz5czpTdGQpDYmAk

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-25 12:10:21 -08:00
Neo c91fb7e5e1 Merge pull request #109 from clang-retro/claude/project-thread-ws9uve
Toolbox windows, sockets and screen savers on the classic Mac OS
2026-11-25 10:28:42 -08:00
Neo 6677ba2172 Merge pull request #108 from clang-retro/claude/project-thread-ws9uve
Build MFC for the classic Mac OS (68k and PowerPC)
2026-11-25 07:31:57 -08:00
Neo 916755b33f Merge pull request #107 from clang-retro/claude/project-thread-4rnjt7
OLE 2 for 16-bit Windows: automation, documents, containers, servers, drag and drop
2026-11-25 07:03:52 -08:00
Neo 3eedd50d5b Merge pull request #106 from clang-retro/claude/project-thread-4rnjt7
Win16: build without -fno-threadsafe-statics
2026-11-25 05:56:06 -08:00
NeoandClaude 1a0b5d69b8 Draw the toolbar and status bar on 16-bit Windows (#105)
16-bit Windows has no comctl32.dll, so CToolBar and CStatusBar had no
window. src/win16bar.cpp registers two window classes that do the
toolbar and status bar messages that the MFC classes send, and draws
them in the 3D style of the system colors.

- The classes have their own names (AfxToolbar16, AfxStatusBar16).
  Wine can also have the 32-bit comctl32 classes, which do not read
  the 16-bit structures.
- A UINT has 16 bits on Win16. The TBBS_ button styles now put the
  state in the high byte, as in MFC 2.5, and SBPS_DISABLED and
  SBPS_STRETCH fit in 16 bits.
- tests/win16bar.cpp tests the layout, clicks, idle updates, the
  message pane, docking, floating and ShowControlBar in Wine.


Claude-Session: https://claude.ai/code/session_01B82eRRTV4u8c9f3gQUmqvq

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-24 23:38:24 -08:00
NeoandClaude dd357a6564 Build the window classes for 16-bit Windows (#104)
The Win16 library now has CWinApp, CWnd, the frames (SDI, MDI, mini
frames and splitters), CDialog with DDX, the common dialogs, the
controls, the GDI classes and document/view with printing.

- afxwin16u.h gives the Win32 USER, GDI and KERNEL declarations that
  the window classes use; src/win16u.cpp does them with the nearest
  16-bit calls, or fails as Win32 fails. include/win16 sends the OLE
  headers to the OLE 2 headers of the SDK; the common control types
  come from port/include, last on the include path.
- The ON_WM_ macros, OnCommand, the reflection and the MDI code read
  the 16-bit packing of WM_COMMAND, WM_ACTIVATE, the scroll, menu,
  list box and MDI messages, and WM_CTLCOLOR. GET_WM_COMMAND_* are in
  afxwin.h for each target.
- CAfxDlgTemplate writes the 16-bit dialog template. The File New type
  dialog keeps the chosen template in its state, not in the dialog
  result, which has no room for a far pointer on Win16.
- Registered message entries keep a DWORD_PTR, which holds a far
  pointer. The handle maps use a word key on Win16.
- The registry functions use the HKEY_CLASSES_ROOT tree of shell.dll;
  profiles go to the INI file. Events, mutexes and semaphores are task
  objects. The OLE virtuals are stubs (src/win16ole.cpp).
- tests/run-win16-tests.sh (make check) runs core, memtest and three
  window tests (frame and dialog, SDI, MDI) at -O0, -Os and -O2 in
  Wine: 15 of 15 pass.


Claude-Session: https://claude.ai/code/session_01B82eRRTV4u8c9f3gQUmqvq

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-24 20:44:18 -08:00
Neo 49af92bc25 Merge pull request #103 from clang-retro/claude/project-thread-4rnjt7
Build the core classes for 16-bit Windows
2026-11-23 21:39:03 -08:00
Neo 372c613b5d Merge pull request #102 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-21 09:25:09 -08:00
Neo b06cef4cf9 Merge pull request #101 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-21 09:10:53 -08:00
Neo eb8718b510 Merge pull request #100 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-21 08:54:05 -08:00
Neo 1ff2682263 Merge pull request #99 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-21 08:33:49 -08:00
Neo ebfc974e85 Merge pull request #98 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-21 08:19:51 -08:00
Neo a907e6f64c Merge pull request #97 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-21 08:01:51 -08:00
Neo cd3c02e243 Merge pull request #96 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-21 07:42:46 -08:00
Neo 8cd7ee68c2 Merge pull request #95 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-21 07:08:50 -08:00
Neo 63dcf0807a Merge pull request #94 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-20 13:26:51 -08:00
Neo 9bad750910 Merge pull request #93 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-20 12:45:08 -08:00
Neo 14dc215af3 Merge pull request #92 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-20 12:18:05 -08:00
Neo 5f0a4525d5 Merge pull request #91 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-20 12:01:30 -08:00
Neo dc35056e49 Merge pull request #90 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-20 11:14:27 -08:00
Neo 2290a33663 Merge pull request #88 from clang-retro/claude/project-thread-k1lrxd
ci: cache the installed Wine, Xvfb and MinGW-w64, and WTL
2026-11-20 10:51:08 -08:00
Neo bd32d5259c Merge pull request #89 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-20 10:13:38 -08:00
Neo 579f14285d Merge pull request #87 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-20 09:02:59 -08:00
Neo 3b17f5057e Merge pull request #85 from clang-retro/claude/project-thread-jmt4ab
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-20 08:15:49 -08:00
Neo 312dcd35ba Merge pull request #86 from clang-retro/claude/project-thread-vgls68
Add the OLE DB consumer templates and COleDBRecordView
2026-11-20 06:32:00 -08:00