Scott_Arm said:
Interesting ... two replies at completely opposite ends of the spectrum
Whether this book is useful to you or not will depend on what level of Win32 programming you've already learned. For a beginner, it will surely help getting the baby steps done, though for that purpose the book is too expensive IMO. There are just so many good programming resources available for free on the net. If you prefer having a physical book to read anywhere, then grab this.
The gripe I have about the book is that it
will leave you wanting once you need to know things more specifically. The Win32 API has some quirky design choices and the book was written from the perspective of someone who never questions them and probably thinks they are logical, obvious and the only way there is. The quirks are never mentioned or explained in the book, and that's the huge problem with it.
1)On Win32 windows are owned by the threads that created them. There are many things you might want to do to a window that will fail if attempted from a different thread. DestroyWindow will fail. SendMessage will hang your process. I've had to learn these things the hard way. You will find it mentioned on MSDN, but you will not know anything about these pitfalls if all you have is this one book, no matter how often you read it.
2)As you probably know, Win32 requires "message pump" code to be executed for a window. What happens to messages passed to a fresh window after creation but before entering the message pump? Will the messages sent by CreateWindow bypass the message pump and immediately dispatch to the Window procedure, or are they all queued up until the message pump starts?
You will not find this question answered in the book.
And the list could go on and on.
If you're looking for a technical reference, look elsewhere. This book is prose.