mirror of
https://github.com/clang-retro/mfc.git
synced 2026-11-28 21:29:33 -08:00
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>
8 lines
267 B
C
8 lines
267 B
C
// objbase.h - for 16-bit Windows: the OLE 2 interfaces of this header are in
|
|
// the OLE 2 headers of the win16-sdk.
|
|
//
|
|
// Part of clang-retro MFC, an independent implementation of the MFC API.
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
#pragma once
|
|
#include <ole2.h>
|