The Old New Thing
Practical development throughout the evolution of Windows.
Latest posts
Jan 12, 2026
Post comments count
0
Post likes count
1
Clipping the focus item when looking for its on-screen location
Preventing the cursor from pointing to nothing.
Jan 9, 2026
Post comments count
1
Post likes count
1
Using Active Accessibility to find out where the focus item is
Looking at child objects.
Jan 8, 2026
Post comments count
4
Post likes count
2
Using Active Accessibility to find out where the Windows caret is
It's old and rather simple, but we like simple.
Jan 7, 2026
Post comments count
1
Post likes count
1
How can I find out where the Windows caret is?
You'll have go to a larger scope.
Jan 6, 2026
Post comments count
1
Post likes count
2
Swapping two blocks of memory that reside inside a larger block, in constant memory, refinement
Could do with a little less rotating.
Jan 5, 2026
Post comments count
0
Post likes count
2
How can you swap two non-adjacent blocks of memory using only forward iterators?
Applying the rotation trick to our new problem.
Jan 2, 2026
Post comments count
0
Post likes count
2
How can you swap two adjacent blocks of memory using only forward iterators?
A different algorithm, employing a different kind of cleverness.
Jan 1, 2026
Post comments count
9
Post likes count
2
Swapping two blocks of memory that reside inside a larger block, in constant memory
A variation on the constant-memory rotation.
Dec 31, 2025
Post comments count
5
Post likes count
2
2025 year-end link clearance
Another year gets relegated to history.