Fair warning, if'n you do get the book buy new so you get the CD that should come with the book. The source code for the games has lots of extras that aren't part of the book text. Like the graphics, etc.
Another warning, the WinAPI/C++ code is outdated. Especially the WinAPI code. It requires some tweaks to get it to work in my experience.
The C++ code could/should be updated to better reflect the changes to the C++ standard since the book was released.
I learned lots just trying to get the code to work on Win10 using Visual Studio 2017/2019.
The games the book creates, using a custom rudimentary game engine, can be addicting even for windowed games. Since the games use GDI full screen isn't an option.
A book that is a couple of years older than the book I linked earlier is "Teach Yourself Game Programming with DirectX in 21 Days" - https://www.amazon.com/Sams-Teach-Yourself-Programming-DirectX/dp/0672324199/
I haven't really done much playing around with that book's source code. DX has radically altered since 2002, and using Direct3D to create a 2D game IMO seems rather heavy-handed.
Just keeping up with self-teaching all of the changes to C++ can be hard to do.
Some day I might set aside a couple of weeks/months for prolonged frustration as I try to get old code to work with a modern Win API. :)
Occasionally I have dabbled at taking the GDI games from the first book and adapting the GDI calls to GDI+.