Commit Graph
2 Commits
Author SHA1 Message Date
Claude f78668d41b Close the MFC 7-10 gaps: CImage, CFileTime, Wizard97, CDialogEx, CTaskDialog
atltime.h: CTime and CTimeSpan move into the headers, as in MFC 7 (afx.h
includes it, and ATL::CTime names them too), with CFileTime and
CFileTimeSpan. Programs without MFC have them.

atlimage.h: CImage. DIB sections made (any depth, bottom-up or
top-down, bit fields), attached and detached; drawn with BitBlt,
StretchBlt, AlphaBlend, TransparentBlt, MaskBlt, PlgBlt and Draw;
pixels, color tables and a transparent color; BMP, GIF, JPEG, PNG and
TIFF loaded and saved through GDI+ (files and streams, the format by
GUID or extension), with the file dialogs' filter strings. GDI+ starts
on first use.

afxdlgs.h: CPrintDialogEx over PrintDlgEx; Wizard97 headers and
watermarks through CPropertySheetEx and CPropertyPageEx and MFC 7's
constructors on CPropertySheet and CPropertyPage (each page in its
own structure size). afxdllx.h for AppWizard's extension DLLs.

afxdialogex.h: CDialogEx with a background color or bitmap.
afxtaskdialog.h (from afxwin.h): CTaskDialog over TaskDialogIndirect,
found at run time, so programs still start on 2000 and XP, where
DoModal shows a message box.

The portable layer gains PrintDlgEx (over its print dialog), the
property sheet V2 sizes and ShellExecute (open or xdg-open).

atlutiltest covers the times and CImage; dlgtest a Wizard97 wizard,
CPrintDialogEx, CDialogEx's background read back from the screen, and
a CTaskDialog that drives itself from its timer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
2026-11-18 19:04:26 +00:00
Claude 5e589b8b0f Add the shared library (mfc.dll) and MFC extension DLLs
make now also builds mfc.dll and mfcu.dll for programs built with
_AFXDLL, with import libraries (libmfcdll.a, libmfcudll.a) and the small
per-module libraries libmfcs.a and libmfcus.a (WinMain, and an operator
delete that hands DEBUG_NEW blocks back to the DLL). The DLL uses the
program's own C library, so it needs no msvcrt.dll: picolibc's malloc
takes its blocks from the process heap, so memory crosses modules on all
three toolchains. For picolibc, whose startup does not fix a module's
references to DLL data, libmfcs.a supplies _pei386_runtime_relocator.

Extension DLLs: AFX_EXTENSION_MODULE, AfxInitExtensionModule,
AfxTermExtensionModule, CDynLinkLibrary and AFX_EXT_CLASS/API/DATA.
AfxFindResourceHandle and the new AfxFindStringResourceHandle search the
program and then its extension DLLs, and CString::LoadString and the
remaining resource loads use them.

Tests: exttest, an extension DLL used by a program through mfc.dll, and
core, sditest and dlgtest run a second time against mfc.dll
(SHARED_TESTS).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
2026-11-08 12:24:49 +00:00