Commit Graph
4 Commits
Author SHA1 Message Date
Claude a41764081b Portable layer: status bar, toolbar and tooltips
The common control classes msctls_statusbar32, ToolbarWindow32 and
tooltips_class32 with their messages and notifications, plus
CreateStatusWindow, DrawStatusText, CreateToolbarEx, MenuHelp,
GetEffectiveClientRect, ShowHideMenuCtl, the drag list functions, and
the window subclassing helpers (SetWindowSubclass and the rest).

The SDI and MDI test programs now run natively up to print preview.
Their logs print LONG values with %d, which fits LONG on Windows and on
LP64 systems alike.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRw4kkFHrrHRhkcuLw
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-11 17:30:56 +00:00
Claude 3098c969e5 Floating and re-docking control bars
EnableDocking now creates a dock bar on each allowed side. Docked bars
are children of a dock bar, which lays them out in rows and keeps each
bar where it was dropped. FloatControlBar puts a bar in a
CMiniDockFrameWnd (a tool window owned by the frame). CDockContext drags
bars with an outline, docks or floats them on release (Ctrl keeps them
floating, Esc cancels) and toggles on double click. Floating toolbars
with CBRS_SIZE_DYNAMIC wrap into rows and snap while resized.
CDockState, SaveBarState and LoadBarState save and restore the layout.

Toolbar buttons that change TBSTATE_WRAP are reinserted so the control
lays them out again, which vertical docking needs.

Adds a docking test, and _ttoi/_ttol to afxtchar.h.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
2026-11-06 17:24:21 +00:00
Claude ffc4ccff8f Print preview and the printing progress dialog
CPreviewDC draws with the printer's DC for layout and the window's for
output, scaled to the page on the screen; CPreviewView shows one or two
pages, zooms, scrolls and pages; the frame hides its menu, bars and main
pane while preview is on. The preview toolbar and the printing dialog
come from the program's resources when it has them (afxprint.rc) and
are built in memory otherwise.

The tests run in a Wine prefix of their own, which gets a PostScript
printer, and the SDI test now previews several pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
2026-11-06 16:48:17 +00:00
Claude d22d540309 GUI tests under Wine: dialog/property sheet and SDI programs
Adds self-driving test programs (dialog with DDX and common controls,
property sheet, SDI frame with toolbar, status bar and edit view) and a
script that builds them in ANSI and Unicode and runs them under Wine.

Fixes found by the tests: views fill the frame's leftover space exactly,
flat toolbars paint their own background, property sheets return IDOK
when applied, and the Unicode library also provides WinMain.

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