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>
Visual C++ 6 code names a handler plainly (ON_COMMAND(ID_X, OnX)), later
code with a member pointer (ON_COMMAND(ID_X, &CMyView::OnX)), and no
standard C++ expression takes both. clang-retro's compiler has
__starts_with_ampersand, which tells the two apart in the preprocessor:
with it, the message map macros call a plain name directly and a member
pointer through ->*, and _AFX_PMF does the same for the dispatch, event
sink and DHTML maps, so code of either age builds unchanged and with
nothing to define. Elsewhere the maps behave as before.
docktest and autotest name some handlers with member pointers where
the compiler has the builtin.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
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